-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sanyi
committed
Jun 30, 2024
1 parent
7528550
commit a925e31
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,12 +71,15 @@ describe('Web extend scripts', function () { | |
cy.get('#product-addtocart-button').click(); | ||
cy.get('.counter-number').should('contain', '2'); | ||
|
||
// Wait for the cart to update | ||
cy.wait(100); | ||
cy.get('.action.showcart').click(); | ||
cy.wait(300); | ||
cy.get('#top-cart-btn-checkout').click(); | ||
|
||
cy.wait(1000); | ||
|
||
// Check if we are on the checkout page (if not, reload the page) | ||
cy.url().then(url => { | ||
cy.log(url); | ||
|
||
|
@@ -85,6 +88,7 @@ describe('Web extend scripts', function () { | |
cy.visit('/checkout'); | ||
} | ||
}); | ||
|
||
cy.wait(1000); | ||
|
||
cy.get('#checkout-step-shipping input.input-text[name="username"]').type('[email protected]'); | ||
|