Adds SFRA 6.0

This commit is contained in:
Isaac Vallee
2021-12-21 10:57:31 -08:00
parent d04eb5dd16
commit 823c7608c3
1257 changed files with 137087 additions and 0 deletions

View File

@@ -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);
});

View File

@@ -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);
});

View File

@@ -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);
});

View File

@@ -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);
});