Skip to content

Commit

Permalink
Fix cypress-01 e2e test (#10362)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn authored Feb 26, 2024
1 parent f8972ec commit e2d3683
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/e2e-tests/tests/cypress-01_basic-panel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ test("cypress-01: Basic Test Suites panel functionality", async ({

// Relative dates can change over time.
// Check for either the "X units ago" text, or the literal date.
expect(await getTestSuiteDate(page).textContent()).toMatch(/ ago|(2\/12\/2023)/);
// But in order to account for timezone differences, we just check the year.
expect(await getTestSuiteDate(page).textContent()).toMatch(/ ago|\/2024/);
expect(await getTestSuiteUser(page).textContent()).toMatch("ryanjduffy");
expect(await getTestSuiteBranch(page).textContent()).toMatch("main");
expect(await getTestSuiteDuration(page).textContent()).toMatch("0:11");
Expand Down

0 comments on commit e2d3683

Please sign in to comment.