feat(KAN-55): support app links, file selection and clipboard
This commit is contained in:
@@ -82,6 +82,25 @@ try {
|
||||
),
|
||||
true,
|
||||
);
|
||||
await page.evaluate(() => {
|
||||
window.savedClipboard = navigator.clipboard;
|
||||
Object.defineProperty(navigator, 'clipboard', {
|
||||
configurable: true,
|
||||
value: undefined,
|
||||
});
|
||||
});
|
||||
await button('Copy key').click();
|
||||
assert.equal(
|
||||
await page.evaluate(() => window.savedClipboard.readText()),
|
||||
'MANUALSETUPTESTKEY',
|
||||
);
|
||||
assert.equal(await dialog().locator('textarea').count(), 0);
|
||||
await page.evaluate(() => {
|
||||
Object.defineProperty(navigator, 'clipboard', {
|
||||
configurable: true,
|
||||
value: window.savedClipboard,
|
||||
});
|
||||
});
|
||||
await button('Continue').click();
|
||||
const code = page.getByLabel('Authentication code', {
|
||||
exact: true,
|
||||
|
||||
Reference in New Issue
Block a user