Adds SFRA 6.0
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
const { data, accountPage } = inject();
|
||||
|
||||
Then('shopper clicks add new address', () => {
|
||||
accountPage.clickAddAddress();
|
||||
});
|
||||
|
||||
Then('shopper fills out address information', () => {
|
||||
accountPage.addAddress(data.account.addressTitle, data.checkout.fName, data.checkout.lName, data.checkout.address1,
|
||||
data.checkout.country, data.checkout.state, data.checkout.city, data.checkout.zip, data.login.phone);
|
||||
});
|
@@ -0,0 +1,17 @@
|
||||
const { data, accountPage } = inject();
|
||||
|
||||
Then('shopper clicks add new payment', () => {
|
||||
accountPage.clickAddPayment();
|
||||
});
|
||||
|
||||
Then('shopper fills out their payment information', () => {
|
||||
accountPage.addPayment(data.account.name, data.checkout.ccNum, data.checkout.expMonth, data.checkout.expYear);
|
||||
});
|
||||
|
||||
Then('shopper clicks view payments', () => {
|
||||
accountPage.viewAllPayments();
|
||||
});
|
||||
|
||||
Then('shopper removes a saved credit card', () => {
|
||||
accountPage.removePayment(data.account.deletePaymentModalText);
|
||||
});
|
@@ -0,0 +1,9 @@
|
||||
const { data, accountPage } = inject();
|
||||
|
||||
Then('shopper clicks edit password', () => {
|
||||
accountPage.clickEditPassword();
|
||||
});
|
||||
|
||||
Then('shopper changes their password', () => {
|
||||
accountPage.changePassword(data.login.password, data.account.newPassword);
|
||||
});
|
@@ -0,0 +1,9 @@
|
||||
const { data, accountPage } = inject();
|
||||
|
||||
Then('shopper clicks edit profile', () => {
|
||||
accountPage.clickEditProfile();
|
||||
});
|
||||
|
||||
Then('shopper edits phone number', () => {
|
||||
accountPage.editProfile(data.login.phone, data.login.email, data.login.password);
|
||||
});
|
Reference in New Issue
Block a user