chore(popup): fix flaky test
This commit is contained in:
parent
af3a7c074e
commit
25912788eb
1 changed files with 2 additions and 3 deletions
|
|
@ -22,12 +22,11 @@ describe('lion-popup', () => {
|
|||
</lion-popup>
|
||||
`);
|
||||
const invoker = el.querySelector('[slot="invoker"]');
|
||||
const eventOnClick = new Event('click');
|
||||
invoker.dispatchEvent(eventOnClick);
|
||||
invoker.click();
|
||||
await el.updateComplete;
|
||||
|
||||
expect(el.querySelector('[slot="content"]').style.display).to.be.equal('inline-block');
|
||||
invoker.dispatchEvent(eventOnClick);
|
||||
invoker.click();
|
||||
await el.updateComplete;
|
||||
expect(el.querySelector('[slot="content"]').style.display).to.be.equal('none');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue