diff --git a/.changeset/lovely-deers-cross.md b/.changeset/lovely-deers-cross.md new file mode 100644 index 00000000000..f1d7c1a2524 --- /dev/null +++ b/.changeset/lovely-deers-cross.md @@ -0,0 +1,5 @@ +--- +"saleor-dashboard": patch +--- + +Manipulating timeouts of Playwright tests diff --git a/playwright.config.ts b/playwright.config.ts index 4dae581e47d..4343e998583 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -31,9 +31,9 @@ export default defineConfig({ ], ] : [["html"], ["list"]], - expect: { timeout: 10000 }, - maxFailures: 5, - timeout: env.CI ? 45000 : 60000, + expect: { timeout: 5000 }, + maxFailures: 2, + timeout: 30000, use: { baseURL: env.BASE_URL || "", trace: env.CI ? "on-all-retries" : "on", diff --git a/playwright/tests/giftCards.spec.ts b/playwright/tests/giftCards.spec.ts index 57d018daaaf..55b98d4d777 100644 --- a/playwright/tests/giftCards.spec.ts +++ b/playwright/tests/giftCards.spec.ts @@ -15,6 +15,7 @@ test.beforeEach(async ({ page, request }) => { await giftCardsPage.waitForDOMToFullyLoad(); }); test("TC: SALEOR_105 Issue gift card @e2e @gift", async () => { + test.slow(); await giftCardsPage.clickIssueCardButton(); await giftCardsPage.issueGiftCardDialog.typeAmount("50"); await giftCardsPage.issueGiftCardDialog.typeTag("super ultra automation discount"); @@ -42,6 +43,7 @@ test("TC: SALEOR_105 Issue gift card @e2e @gift", async () => { .waitFor({ state: "attached", timeout: 30000 }); }); test("TC: SALEOR_106 Issue gift card with specific customer and expiry date @e2e @gift", async () => { + test.slow(); await giftCardsPage.clickIssueCardButton(); await giftCardsPage.issueGiftCardDialog.clickSendToCustomerCheckbox(); await giftCardsPage.issueGiftCardDialog.typeCustomer("Allison Freeman"); diff --git a/playwright/tests/orders.spec.ts b/playwright/tests/orders.spec.ts index 26d3cb7df9f..59f30d6c773 100644 --- a/playwright/tests/orders.spec.ts +++ b/playwright/tests/orders.spec.ts @@ -85,6 +85,8 @@ test("TC: SALEOR_78 Capture partial amounts by manual transactions and fulfill o const firstManualTransactionAmount = "100"; const secondManualTransactionAmount = "20"; + test.slow(); + await ordersPage.goToExistingOrderPage( ORDERS.ordersWithinTransactionFlow.captureManualTransactionOrder.orderId, ); @@ -230,6 +232,7 @@ test("TC: SALEOR_83 Draft orders bulk delete @e2e @draft", async () => { }); test("TC: SALEOR_84 Create draft order @e2e @draft", async () => { + test.slow(); await draftOrdersPage.goToDraftOrdersListView(); await draftOrdersPage.clickCreateDraftOrderButton(); await draftOrdersPage.draftOrderCreateDialog.completeDraftOrderCreateDialogWithFirstChannel(); diff --git a/playwright/tests/singlePermissions/readonly_app_access.spec.ts b/playwright/tests/singlePermissions/readonlyAppAccess.spec.ts similarity index 100% rename from playwright/tests/singlePermissions/readonly_app_access.spec.ts rename to playwright/tests/singlePermissions/readonlyAppAccess.spec.ts