From 5cd9cab665a598eda56adb6d5467544cfa7a892d Mon Sep 17 00:00:00 2001 From: Will Sheldon <114631109+wssheldon@users.noreply.github.com> Date: Thu, 14 Dec 2023 21:15:45 -0800 Subject: [PATCH] Change VSelect locators to combobox role and remove name for filterText --- tests/static/e2e/pages/report-incident-page.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/static/e2e/pages/report-incident-page.ts b/tests/static/e2e/pages/report-incident-page.ts index 673e6a0b8599..744ea90ad6ee 100644 --- a/tests/static/e2e/pages/report-incident-page.ts +++ b/tests/static/e2e/pages/report-incident-page.ts @@ -21,9 +21,9 @@ export class ReportIncidentPage { this.reportHeader = page.getByText("Report Incident").first() this.titleTextBox = page.getByLabel("Title", { exact: true }) this.descriptionTextBox = page.getByLabel("Description", { exact: true }) - this.projectDropdown = page.getByRole("button", { name: "Project" }) - this.typeDropdown = page.getByRole("button", { name: "Type" }) - this.priorityDropdown = page.getByRole("button", { name: "Priority" }) + this.projectDropdown = page.getByRole("combobox").filter({ hasText: "Project" }) + this.typeDropdown = page.getByRole("combobox").filter({ hasText: "Type" }) + this.priorityDropdown = page.getByRole("combobox").filter({ hasText: "Priority" }) this.tagsDropdown = page.getByRole("combobox").filter({ hasText: "Tags" }).locator("i") this.submitButton = page.getByRole("button", { name: "Submit" }) this.loadMore = page.getByText("Load More")