@shellygo/cypress-test-utils - v4.1.10 / Modules / CypressLitComponentHelper
Class: CypressLitComponentHelper
Classdes
CypressLitComponentHelper exposes the following public properties:
Table of contents
Constructors
Properties
Constructors
constructor
• new CypressLitComponentHelper()
Properties
get
• get: Object
= {}
given
• given: Object
= {}
when
• when: Object
enables mounting of a li component
Type declaration
Name | Type |
---|---|
mount |
<T>(template : TemplateResult <ResultType >, constructor? : (...args : any []) => T ) => Chainable <JQuery <HTMLElement >> |
unmount |
() => Chainable <JQuery <HTMLElement >> |
mount: <T>(template
: TemplateResult
<ResultType
>, constructor?
: (...args
: any
[]) => T
) => Chainable
<JQuery
<HTMLElement
>>
Mount a LitElement web component
Example
litComponentHelper.when.mount<SpinnerElement>(
html`<edf-spinner size="${this.props.size}" type="${this.props.type}" label="${this.props.label}"></edf-spinner>`
SpinnerElement,
);
unmount: () => Chainable
<JQuery
<HTMLElement
>>
-