@wix/design-system
Version:
@wix/design-system
39 lines (28 loc) • 941 B
Markdown
## Heading Testkit
### Import
- unidriver: `import { HeadingUniDriver } from '@wix/design-system/dist/testkit/unidriver';`
- vanilla: `import { HeadingTestkit } from '@wix/design-system/dist/testkit';`
- puppeteer: `import { HeadingTestkit } from '@wix/design-system/dist/testkit/puppeteer';`
- playwright: `import { HeadingTestkit } from '@wix/design-system/dist/testkit/playwright';`
### API
### getText
- signature: getText()
- description: Gets text content
### getAppearance
- signature: getAppearance()
- description: Gets heading appearance
### getSize
- signature: getSize()
- description: Gets heading size
### getTagName
- signature: getTagName()
- description: Gets heading tag name
### isLight
- signature: isLight()
- description: Checks whether heading is light
### isMasked
- signature: isMasked()
- description: Checks if heading has masking classNames
### getId
- signature: getId()
- description: Gets heading id