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

13 lines
460 B
JavaScript

const { I, data, pageDesigner } = inject();
Then('shopper should see the rich text component', () => {
I.waitForElement(pageDesigner.locators.richText);
I.seeElement(pageDesigner.locators.richText);
});
Then('shopper should see the title', () => {
let richTextElement = locate(pageDesigner.locators.richText).at(1);
let title = richTextElement.find(pageDesigner.locators.richTextTitle);
I.see(data.pageDesigner.richTextTitle, title);
});