Skip to content

Commit d6c098f

Browse files
committed
Merge remote-tracking branch 'origin/master' into psi-deployment-gamma-release
2 parents 7a22ca7 + 519f1de commit d6c098f

File tree

13 files changed

+332
-259
lines changed

13 files changed

+332
-259
lines changed

cypress/e2e/datasets/datasets-general.cy.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,22 @@ describe("Datasets general", () => {
402402
});
403403
});
404404

405+
describe("Dataset filter end date auto-set", () => {
406+
it("should set end date to today if only start date is provided", () => {
407+
cy.createDataset({
408+
type: "raw",
409+
creationTime: "2025-10-08T15:00:00.000Z",
410+
});
411+
cy.visit("/datasets");
412+
413+
cy.get('[data-cy="creation-time-begin"]').type("2025-10-07");
414+
415+
cy.get('[data-cy="filter-search-button"]').click();
416+
417+
cy.get(".dataset-table mat-row").contains("Cypress Dataset").should("exist");
418+
});
419+
});
420+
405421
describe("Scientific notation in condition panel test", () => {
406422
beforeEach(() => {
407423
cy.login(Cypress.env("username"), Cypress.env("password"));

cypress/e2e/proposals/proposals-general.cy.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,4 +577,25 @@ describe("Proposals general", () => {
577577
});
578578
});
579579
});
580+
581+
describe("Proposals filter end date auto-set", () => {
582+
it("should auto-set end date when start date is set and end date is empty", () => {
583+
const newProposal = {
584+
...testData.proposal,
585+
proposalId: Math.floor(100000 + Math.random() * 900000).toString(),
586+
startTime: "2025-10-08T15:00:00.000Z",
587+
};
588+
589+
cy.createProposal(newProposal);
590+
591+
cy.visit("/proposals");
592+
593+
cy.get('[data-cy="creation-time-begin"]').type("2025-10-08");
594+
595+
cy.get('[data-cy="apply-button-filter"]').click();
596+
597+
cy.get("mat-table mat-row").should("contain", newProposal.proposalId);
598+
599+
});
600+
});
580601
});

cypress/fixtures/testData.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,29 @@ export const testConfig = {
314314
enabled: true,
315315
},
316316
],
317-
filters: [],
317+
filters: [
318+
{
319+
key: "instrumentIds",
320+
label: "Instrument",
321+
type: "checkbox",
322+
description: "Filter by instrument name",
323+
enabled: true,
324+
},
325+
{
326+
key: "pi_lastname",
327+
label: "PI Last Name",
328+
type: "checkbox",
329+
description: "Filter by dataset start time",
330+
enabled: true,
331+
},
332+
{
333+
key: "startTime",
334+
label: "Start Time",
335+
type: "dateRange",
336+
description: "Filter by dataset start time",
337+
enabled: true,
338+
},
339+
],
318340
conditions: [],
319341
},
320342
},

0 commit comments

Comments
 (0)