diff --git a/ui-tests/test/mobile.spec.ts b/ui-tests/test/mobile.spec.ts index 7817171a76..c5c98fa3e9 100644 --- a/ui-tests/test/mobile.spec.ts +++ b/ui-tests/test/mobile.spec.ts @@ -38,10 +38,8 @@ test.describe('Mobile', () => { // wait for the kernel status animations to be finished await waitForKernelReady(notebook); - // force switching back to command mode to avoid capturing the cursor in the screenshot - await notebook.evaluate(async () => { - await window.jupyterapp.commands.execute('notebook:enter-command-mode'); - }); + // click to make the blue border around the cell disappear + await page.click('.jp-WindowedPanel-outer'); // TODO: remove if (browserName === 'firefox') {