Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion test/e2e/tests/apps/python-apps.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test.describe('Python Applications', {
await app.workbench.viewer.clearViewer();
});

test('Python - Verify Basic Dash App', { tag: [tags.WIN] }, async function ({ app, openFile, python }) {
test('Python - Verify Basic Dash App', { tag: [tags.WIN] }, async function ({ app, openFile, python, page }) {
const viewer = app.workbench.viewer;

await openFile(join('workspaces', 'python_apps', 'dash_example', 'dash_example.py'));
Expand All @@ -46,6 +46,18 @@ test.describe('Python Applications', {
: editorFrameLocator.getByText('Hello World')
).toBeVisible({ timeout: 30000 });
});

await test.step('Verify Clear Current URL clears Viewer', async () => {
await app.page.locator('.codicon-clear-all').click();

await expect(async () => {
const iframeLocator = app.web
? viewer.viewerFrame.locator('iframe')
: viewer.getViewerFrame().locator('iframe');
const count = await iframeLocator.count();
expect(count).toBe(0);
}).toPass({ timeout: 30000 });
});
});

test('Python - Verify Basic FastAPI App', {
Expand Down
Loading