diff --git a/tests/shortcuts.spec.ts b/tests/shortcuts.spec.ts index 6138c5fcd..5291839be 100644 --- a/tests/shortcuts.spec.ts +++ b/tests/shortcuts.spec.ts @@ -12,7 +12,18 @@ test('shortcut downloads logs', async ({ page }) => { }); test('shortcut downloads logs in full screen error', async ({ page }) => { - await gotoPage(page, 'localhost:4010/iframe/widget'); + // Go to embed-widget page without url parameter to trigger a full screen error + await gotoPage(page, 'http://localhost:4010/'); + + const downloadPromise = page.waitForEvent('download'); + await page.keyboard.press('ControlOrMeta+Alt+Shift+KeyL'); + const download = await downloadPromise; + + expect(download).not.toBeNull(); +}); + +test('shortcut downloads logs in embeded-widget', async ({ page }) => { + await gotoPage(page, 'http://localhost:4010?name=all_types'); const downloadPromise = page.waitForEvent('download'); await page.keyboard.press('ControlOrMeta+Alt+Shift+KeyL');