-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: correct e2e tests for d2c starter * feat: updated examples * chore: changeset * fix: remove mobile test check for menu
- Loading branch information
Showing
28 changed files
with
204 additions
and
186 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@elasticpath/d2c-schematics": patch | ||
--- | ||
|
||
correct e2e tests for d2c starter |
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 |
---|---|---|
|
@@ -22,25 +22,18 @@ test.describe("Checkout flow", async () => { | |
|
||
/* Enter information */ | ||
await checkoutPage.enterInformation({ | ||
Email: { value: "[email protected]", fieldType: "input" }, | ||
"Email Address": { value: "[email protected]", fieldType: "input" }, | ||
"First Name": { value: "Jim", fieldType: "input" }, | ||
"Last Name": { value: "Brown", fieldType: "input" }, | ||
"Street Address": { value: "Main Street", fieldType: "input" }, | ||
"Extended Address": { value: "Extended Address", fieldType: "input" }, | ||
Address: { value: "Main Street", fieldType: "input" }, | ||
City: { value: "Brownsville", fieldType: "input" }, | ||
County: { value: "Brownsville County", fieldType: "input" }, | ||
Region: { value: "Browns", fieldType: "input" }, | ||
Postcode: { value: "ABC 123", fieldType: "input" }, | ||
Country: { value: "Algeria", fieldType: "select" }, | ||
Country: { value: "Algeria", fieldType: "combobox" }, | ||
"Phone Number": { value: "01234567891", fieldType: "input" }, | ||
"Additional Instructions": { | ||
value: "This is some extra instructions.", | ||
fieldType: "input", | ||
}, | ||
}); | ||
|
||
await checkoutPage.checkout(); | ||
await checkoutPage.checkOrderComplete; | ||
|
||
/* Continue Shopping */ | ||
await checkoutPage.continueShopping(); | ||
|
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
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
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
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
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
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 |
---|---|---|
|
@@ -32,33 +32,30 @@ test.describe("Checkout flow", async () => { | |
"Email Address": { value: "[email protected]", fieldType: "input" }, | ||
"First Name": { value: "Jim", fieldType: "input" }, | ||
"Last Name": { value: "Brown", fieldType: "input" }, | ||
"Street Address": { value: "Main Street", fieldType: "input" }, | ||
"Extended Address": { value: "Extended Address", fieldType: "input" }, | ||
Address: { value: "Main Street", fieldType: "input" }, | ||
City: { value: "Brownsville", fieldType: "input" }, | ||
County: { value: "Brownsville County", fieldType: "input" }, | ||
Region: { value: "Browns", fieldType: "input" }, | ||
Postcode: { value: "ABC 123", fieldType: "input" }, | ||
Country: { value: "Algeria", fieldType: "select" }, | ||
Country: { value: "Algeria", fieldType: "combobox" }, | ||
"Phone Number": { value: "01234567891", fieldType: "input" }, | ||
"Additional Instructions": { | ||
value: "This is some extra instructions.", | ||
fieldType: "input", | ||
}, | ||
}); | ||
|
||
/* Move to payment */ | ||
await checkoutPage.checkout(); | ||
|
||
await checkoutPage.enterPaymentInformation({ | ||
"Card number": { value: "4242424242424242", fieldType: "input" }, | ||
Expiration: { value: "1272", fieldType: "input" }, | ||
CVC: { value: "123", fieldType: "input" }, | ||
Country: { value: "United Kingdom", fieldType: "select" }, | ||
"Postal code": { value: "ABC 123", fieldType: "input" }, | ||
"Postal code": { value: "EC2R 8AH", fieldType: "input" }, | ||
Expiration: { | ||
value: "1272", | ||
fieldType: "input", | ||
options: { exact: false }, | ||
}, | ||
}); | ||
|
||
await checkoutPage.submitPayment(); | ||
await checkoutPage.checkOrderComplete; | ||
|
||
/* Continue Shopping */ | ||
await checkoutPage.continueShopping(); | ||
|
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
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
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
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
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
Oops, something went wrong.