Skip to content

Commit

Permalink
actual fix for unit and cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
ailZhou committed Oct 9, 2024
1 parent 1d2e52f commit 3ed302a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion services/app-api/handlers/measures/tests/get.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ describe("Test Get Measure Handlers", () => {

const res = await getReportingYears(event, null);
expect(res.statusCode).toBe(StatusCodes.SUCCESS);
expect(res.body).toBe('["2021","2022","2023","2024", "2025]');
expect(res.body).toBe('["2021","2022","2023","2024","2025"]');
});

test("Test getMeasureListInfo works when called with an empty object", async () => {
Expand Down
4 changes: 2 additions & 2 deletions tests/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ Cypress.Commands.add("clickValidateMeasure", (timeout = 500) => {
Cypress.Commands.add("enterValidDateRange", () => {
cy.get('[data-cy="MeasurementPeriodAdhereToCoreSetSpecification1"]').click();
cy.get('[data-cy="DateRange.startDate-month"]').type("1");
cy.get('[data-cy="DateRange.startDate-year"]').type("2021");
cy.get('[data-cy="DateRange.startDate-year"]').type("2024");
cy.get('[data-cy="DateRange.endDate-month"]').type("12");
cy.get('[data-cy="DateRange.endDate-year"]').type("2021");
cy.get('[data-cy="DateRange.endDate-year"]').type("2024");
});

const _description = `New Measure ${Date.now()}`;
Expand Down

0 comments on commit 3ed302a

Please sign in to comment.