LearningSalesForceCommerceC.../storefront-reference-architecture/test/acceptance/steps/accountPage/addAddress.steps.js
2021-12-21 10:57:31 -08:00

11 lines
416 B
JavaScript

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