Skip to content

Commit

Permalink
[E2E] Replace Avatax app with Dummy app in taxes e2e (#4798)
Browse files Browse the repository at this point in the history
* add changeset

* replace avatax app in e2e

* lint
  • Loading branch information
szczecha authored Apr 29, 2024
1 parent e7e639b commit 7b7f222
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tricky-parrots-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": minor
---

Replace tax app in tests
2 changes: 1 addition & 1 deletion playwright/pages/taxesPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class TaxesPage extends BasePage {
await this.createClassButton.click();
}

async selectTaxCalculationMethod(method: "FLAT_RATES" | "saleor.app.avatax") {
async selectTaxCalculationMethod(method: "FLAT_RATES" | "saleor.app.dummy.tax") {
await this.clickSelectMethodField();
await this.page.getByTestId(`select-field-option-${method}`).click();
}
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 @@ -16,7 +16,7 @@ test("TC: SALEOR_115 Change taxes in channel to use tax app @taxes @e2e", async
await configurationPage.gotoConfigurationView();
await configurationPage.openTaxes();
await taxesPage.selectChannel(CHANNELS.channelForTaxEdition.name);
await taxesPage.selectTaxCalculationMethod("saleor.app.avatax");
await taxesPage.selectTaxCalculationMethod("saleor.app.dummy.tax");
await taxesPage.clickSaveButton();
await taxesPage.expectSuccessBanner();
});
Expand Down

0 comments on commit 7b7f222

Please sign in to comment.