From 719add521ce4c9d44e2fa0b4b3e8bdac0dc41130 Mon Sep 17 00:00:00 2001 From: Dinwy Date: Wed, 17 Jul 2024 20:04:28 +0900 Subject: [PATCH] Fix sign in timing issue --- tests/cypress/e2e/checkout.cy.js | 7 ++++--- tests/cypress/e2e/refunded-webhook.cy.js | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/cypress/e2e/checkout.cy.js b/tests/cypress/e2e/checkout.cy.js index 958e824..221a1e2 100644 --- a/tests/cypress/e2e/checkout.cy.js +++ b/tests/cypress/e2e/checkout.cy.js @@ -3,9 +3,10 @@ describe('KOMOJU for WooCommerce: Checkout', () => { beforeEach(() => { cy.installWordpress(); - cy.signinToWordpress(); - cy.installWooCommerce(); - cy.installKomoju(); + cy.signinToWordpress().then(() => { + cy.installWooCommerce(); + cy.installKomoju(); + }); }) it('lets me make a payment using the specialized konbini gateway', () => { diff --git a/tests/cypress/e2e/refunded-webhook.cy.js b/tests/cypress/e2e/refunded-webhook.cy.js index b73d54a..0953d26 100644 --- a/tests/cypress/e2e/refunded-webhook.cy.js +++ b/tests/cypress/e2e/refunded-webhook.cy.js @@ -3,9 +3,10 @@ describe("KOMOJU for WooCommerce: Refunded webhook", () => { beforeEach(() => { cy.installWordpress(); - cy.signinToWordpress(); - cy.installWooCommerce(); - cy.installKomoju(); + cy.signinToWordpress().then(() => { + cy.installWooCommerce(); + cy.installKomoju(); + }); }); it("sets an order as a refunded based on incoming refunded webhook", () => {