Skip to content

Commit

Permalink
Fix sign in timing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinwy committed Jul 17, 2024
1 parent af8cff2 commit 719add5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions tests/cypress/e2e/checkout.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
7 changes: 4 additions & 3 deletions tests/cypress/e2e/refunded-webhook.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down

0 comments on commit 719add5

Please sign in to comment.