Skip to content

Commit

Permalink
locator fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wojteknowacki committed Jan 23, 2024
1 parent c5892ee commit 5874e01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion playwright/pages/taxesPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ export class TaxesPage extends BasePage {
readonly exceptionCountryGrossPriceCheckbox = page.getByTestId(
"display-gross-prices-checkbox",
),
readonly checkBoxCheckedState = page.locator("[class*='Mui-checked']"),
readonly checkBoxCheckedState = page.locator("Mui-checked"),
readonly exceptionCountriesCheckBoxCheckedState = page.locator(
"[class*='Mui-checked']",
),
readonly searchTaxClassInput = page
.getByTestId("search-tax-class-input")
.locator("input"),
Expand Down
2 changes: 1 addition & 1 deletion playwright/tests/taxes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test("TC: SALEOR_116 Change taxes in channel: enter prices without tax, do not s
await expect(taxesPage.exceptionCountryRows).toContainText("Canada");
expect(
await taxesPage.exceptionCountryRows
.locator(taxesPage.checkBoxCheckedState)
.locator(taxesPage.exceptionCountriesCheckBoxCheckedState)
.count(),
).toEqual(1);
await taxesPage.clickSaveButton();
Expand Down

0 comments on commit 5874e01

Please sign in to comment.