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 \*$/ })