LearningSalesForceCommerceC.../storefront-reference-architecture/test/acceptance/steps/accountPage/changePassword.steps.js

10 lines
258 B
JavaScript
Raw Normal View History

2021-12-21 10:57:31 -08:00
const { data, accountPage } = inject();
Then('shopper clicks edit password', () => {
accountPage.clickEditPassword();
});
Then('shopper changes their password', () => {
accountPage.changePassword(data.login.password, data.account.newPassword);
});