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

13 lines
367 B
JavaScript

const { I, data, homePage } = inject();
Then('shopper enters email in signup form', () => {
I.scrollPageToBottom();
homePage.subscribeList(data.home.email);
});
Then('shopper subscribes to the email list', () => {
I.click(homePage.locators.subscribeButton);
I.waitForElement(homePage.locators.emailSignup);
I.see('Email Signup successful');
});