Skip to content

Commit

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

* add changeset

* replace avatax app in e2e

* lint

* update changeset
  • Loading branch information
szczecha authored May 6, 2024
1 parent 9d4fe3f commit 405cb9b
Show file tree
Hide file tree
Showing 3 changed files with 8 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": patch
---

Replace tax app in tests
3 changes: 2 additions & 1 deletion playwright/pages/taxesPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ export class TaxesPage extends BasePage {
async clickCreateClassButton() {
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 @@ -17,7 +17,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 405cb9b

Please sign in to comment.