From c2456e00b8f3cf015560a125197845c5db9d15cb Mon Sep 17 00:00:00 2001 From: Dennis Garding Date: Mon, 26 Jun 2023 09:24:11 +0200 Subject: [PATCH] NTR - Rename test execution and adjust acdc test --- .github/workflows/e2e-tests.yml | 2 +- Tests/E2E/test/pay_with_acdc.spec.mjs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 6022fa34..4c7ea0f7 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -75,7 +75,7 @@ jobs: npm install npx playwright install --with-deps chromium - - name: Run tests + - name: Execute E2E tests run: | cd /shopware/custom/plugins/SwagPaymentPayPalUnified/Tests/E2E npm run e2e:run diff --git a/Tests/E2E/test/pay_with_acdc.spec.mjs b/Tests/E2E/test/pay_with_acdc.spec.mjs index 635e9926..c4a47a51 100644 --- a/Tests/E2E/test/pay_with_acdc.spec.mjs +++ b/Tests/E2E/test/pay_with_acdc.spec.mjs @@ -156,6 +156,7 @@ test.describe('Pay with credit card', () => { const cancelButton = await cancelForm.locator('input[type="submit"]'); await cancelButton.scrollIntoViewIfNeeded(); + await page.waitForTimeout(1000); await cancelButton.click(); const contingencyHandlerWrapper = await page.locator('div[id~="payments-sdk-contingency-handler"]');