UNPKG

@wix/design-system

Version:

@wix/design-system

71 lines (53 loc) 1.86 kB
## MarketingPageLayoutContent Testkit ### Import - unidriver: `import { MarketingPageLayoutContentUniDriver } from '@wix/design-system/dist/testkit/unidriver';` - vanilla: `import { MarketingPageLayoutContentTestkit } from '@wix/design-system/dist/testkit';` - puppeteer: `import { MarketingPageLayoutContentTestkit } from '@wix/design-system/dist/testkit/puppeteer';` - playwright: `import { MarketingPageLayoutContentTestkit } from '@wix/design-system/dist/testkit/playwright';` ### API ### exists - signature: exists() - returns: Promise<boolean> - description: Checks whether the component found with the given data hook ### element - signature: element() - returns: Promise<any> - description: Gets the component root element ### click - signature: click() - returns: Promise<void> - description: Clicks on the component root element ### base - signature: base() - returns: UniDriver - description: Returns UniDriver for the base element ### hasOverline - signature: hasOverline() - description: Checks whether overline exists ### getOverlineText - signature: getOverlineText() - description: Gets the overline text ### hasTitle - signature: hasTitle() - description: Checks whether title exists ### getTitleText - signature: getTitleText() - description: Gets the title text ### hasSubtitle - signature: hasSubtitle() - description: Checks whether subtitle exists ### getSubtitleText - signature: getSubtitleText() - description: Gets the subtitle text ### hasContent - signature: hasContent() - description: Checks whether content exists ### getContentText - signature: getContentText() - description: Gets the content text ### hasActions - signature: hasActions() - description: Checks whether actions exist ### childExists - signature: childExists(predicate) - description: Checks whether a node with the provided predicate exists