From 55da54d11981dec114118a9494c19ab32cdc08ca Mon Sep 17 00:00:00 2001 From: Jon Vanausdeln Date: Mon, 18 Nov 2024 13:33:55 -0800 Subject: [PATCH] Expand console area for gradio test (#5408) ### Intent Due to https://github.com/posit-dev/positron/issues/5407 , the console pane needs to be bigger for windows CI Tests ### Approach In gradio test, added minimizing both sidebars before running app, then bringing them back before viewer is checked. ### QA Notes Python app test should pass. https://github.com/posit-dev/positron/actions/runs/11900458691 --- test/smoke/src/areas/positron/apps/python-apps.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/smoke/src/areas/positron/apps/python-apps.test.ts b/test/smoke/src/areas/positron/apps/python-apps.test.ts index f55a997526c..4b3ce2c889f 100644 --- a/test/smoke/src/areas/positron/apps/python-apps.test.ts +++ b/test/smoke/src/areas/positron/apps/python-apps.test.ts @@ -54,10 +54,14 @@ describe('Python Applications #pr', () => { const viewer = app.workbench.positronViewer; await app.workbench.quickaccess.openFile(join(app.workspacePathOrFolder, 'workspaces', 'python_apps', 'gradio_example', 'gradio_example.py')); + await app.workbench.quickaccess.runCommand('workbench.action.toggleSidebarVisibility'); + await app.workbench.quickaccess.runCommand('workbench.action.toggleAuxiliaryBar'); await app.workbench.positronEditor.pressPlay(); + await app.workbench.quickaccess.runCommand('workbench.action.toggleAuxiliaryBar'); await expect(async () => { await expect(viewer.getViewerFrame().getByRole('button', { name: 'Submit' })).toBeVisible({ timeout: 30000 }); }).toPass({ timeout: 60000 }); + await app.workbench.quickaccess.runCommand('workbench.action.toggleSidebarVisibility'); }); it('Python - Verify Basic Streamlit App [C903308] #web #win', async function () {