-
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
65c2311
commit 80f07f8
Showing
1 changed file
with
10 additions
and
2 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 |
---|---|---|
|
@@ -74,8 +74,16 @@ describe('Web extend scripts', function () { | |
cy.get('.action.showcart').click(); | ||
cy.get('#top-cart-btn-checkout').click(); | ||
|
||
// cy.wait(1000); | ||
cy.visit('/checkout'); | ||
cy.wait(1000); | ||
cy.url().then(url => { | ||
cy.log(url); | ||
|
||
if (url.includes('checkout/cart')) { | ||
cy.log('Reload checkout page'); | ||
cy.visit('/checkout'); | ||
} | ||
}); | ||
cy.wait(1000); | ||
|
||
cy.get('#checkout-step-shipping input.input-text[name="username"]').type('[email protected]'); | ||
cy.get('#checkout-step-shipping input.input-text[name="firstname"]').type('Guest'); | ||
|