From fbea49677973b90002fb68c661cbd50462aa3917 Mon Sep 17 00:00:00 2001 From: Chao <89126516+mrcuriosity-tw@users.noreply.github.com> Date: Fri, 26 Apr 2024 15:45:23 +0800 Subject: [PATCH] [ADM-887] fix: adjust the aria-label selector to fix the e2e test. (#1411) --- frontend/e2e/pages/metrics/config-step.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/e2e/pages/metrics/config-step.ts b/frontend/e2e/pages/metrics/config-step.ts index bc03e04b3e..678194fccd 100644 --- a/frontend/e2e/pages/metrics/config-step.ts +++ b/frontend/e2e/pages/metrics/config-step.ts @@ -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 \*$/ })