Skip to content

Commit

Permalink
[ADM-887] fix: adjust the aria-label selector to fix the e2e test. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcuriosity-tw authored Apr 26, 2024
1 parent dca98d2 commit 7db10fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/e2e/pages/metrics/config-step.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ export class ConfigStep {
this.projectNameInput = page.getByLabel('Project name *');
this.regularCalendar = page.getByText('Regular Calendar(Weekend');
this.chineseCalendar = page.getByText('Calendar with Chinese Holiday');
this.fromDateInput = page.getByRole('textbox', { name: 'From *' });
this.fromDateInput = page.getByRole('textbox', { name: 'From' });
this.fromDateInputButton = page
.locator('div')
.filter({ hasText: /^From \*$/ })
.getByRole('button', { name: 'Choose date' });
this.fromDateInputValueSelect = (fromDay: Dayjs) =>
page.getByRole('dialog', { name: 'From *' }).getByRole('gridcell', { name: `${fromDay.date()}` });
this.toDateInput = page.getByRole('textbox', { name: 'To *' });
this.toDateInput = page.getByRole('textbox', { name: 'To' });
this.toDateInputButton = page
.locator('div')
.filter({ hasText: /^To \*$/ })
Expand Down

0 comments on commit 7db10fc

Please sign in to comment.