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

16 lines
505 B
JavaScript

const { I, data, homePage } = inject();
Then('shopper goes to store locator page', () => {
I.amOnPage(data.storeLocator.pageURL);
});
Then('shopper searches for a store', () => {
homePage.searchForStore(data.storeLocator.zipCode);
homePage.verifyStoreResults(data.storeLocator.numStores);
});
Then('shopper searches for a store with different radius', () => {
homePage.changeStoreRadius(data.storeLocator.radius);
homePage.verifyStoreResults(data.storeLocator.numStoresRadius);
});