Skip to content

Commit

Permalink
Fixing playwright tests (#3969)
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 authored and metroid-samus committed Nov 29, 2023
1 parent 0f84c0c commit f14bd1e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/static/e2e/pages/auth-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class AuthPage {
this.registerButton = page.getByRole("button", { name: "Register" })
// Shared Components
this.emailLabel = page.getByLabel("Email")
this.passwordLabel = page.getByLabel("Password")
this.passwordLabel = page.getByLabel("Password", { exact: true })
}

async gotoLogin() {
Expand Down
2 changes: 1 addition & 1 deletion tests/static/e2e/pages/incident-edit-sheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class IncidentsPage {
this.CloseButton = page.getByRole("button", { name: "Close" })

this.CostsTab = page.getByRole("tab", { name: "Costs" })
this.CostsAmount = page.getByLabel("Amount")
this.CostsAmount = page.getByLabel("Amount", { exact: true })
}

async goto(incident: string) {
Expand Down
8 changes: 4 additions & 4 deletions tests/static/e2e/pages/incidents-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ export class IncidentsPage {
.getByRole("button")
.nth(2)
this.EditMenu = page.getByTestId("incident-table-edit")
this.EditViewEdit = page.getByRole("menuitem", { name: "View / Edit" })
this.EditCreateReport = page.getByRole("menuitem", { name: "Create Report" })
this.EditRunWorkflow = page.getByRole("menuitem", { name: "Run Workflow" })
this.EditDelete = page.getByRole("menuitem", { name: "Delete" })
this.EditViewEdit = page.getByText("View / Edit", { exact: true })
this.EditCreateReport = page.getByText("Create Report", { exact: true })
this.EditRunWorkflow = page.getByText("Run Workflow", { exact: true })
this.EditDelete = page.getByText("Delete", { exact: true })
}

async goto() {
Expand Down
4 changes: 2 additions & 2 deletions tests/static/e2e/pages/report-incident-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export class ReportIncidentPage {
this.page = page
this.route = orgSlug + Routes.ReportIncident
this.reportHeader = page.getByText("Report Incident").first()
this.titleTextBox = page.getByLabel("Title")
this.descriptionTextBox = page.getByLabel("Description")
this.titleTextBox = page.getByLabel("Title", { exact: true })
this.descriptionTextBox = page.getByLabel("Description", { exact: true })
this.projectDropdown = page.getByRole("combobox").filter({ hasText: "Project" }).locator("i")
this.typeDropdown = page.getByRole("button", { name: "Type" })
this.priorityDropdown = page.getByRole("button", { name: "Priority" })
Expand Down

0 comments on commit f14bd1e

Please sign in to comment.