Skip to content

Commit 15400aa

Browse files
fix: naviator type
1 parent 738fa52 commit 15400aa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/commands/lightning/dev/component-preview/componentError.nut.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ describe('lightning preview component error', () => {
8585
await copyButton.waitFor({ state: 'visible' });
8686
await copyButton.click();
8787

88-
const clipboardText = await page.evaluate(() => navigator.clipboard.readText());
88+
// eslint-disable-next-line
89+
const clipboardText = await page.evaluate(() => (navigator as any).clipboard.readText());
8990
expect(clipboardText).to.include(ERROR_MESSAGE);
9091
});
9192
});

0 commit comments

Comments
 (0)