From 4ae8e8d7c0312a7585e8406b35d3e25093b0ab16 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Mon, 3 Oct 2022 08:58:30 +0200 Subject: [PATCH] Update helper to run a cell --- ui-tests/test/smoke.spec.ts | 2 +- ui-tests/test/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-tests/test/smoke.spec.ts b/ui-tests/test/smoke.spec.ts index 176236c55b..9895ed5d4c 100644 --- a/ui-tests/test/smoke.spec.ts +++ b/ui-tests/test/smoke.spec.ts @@ -32,7 +32,7 @@ test.describe('Smoke', () => { try { // we may have to select the kernel first - await notebook.click('text="Select"', { timeout: 2000 }); + await notebook.click('text="Select"', { timeout: 5000 }); } catch (e) { // The kernel is already selected } diff --git a/ui-tests/test/utils.ts b/ui-tests/test/utils.ts index d8289e307b..e48bd08c92 100644 --- a/ui-tests/test/utils.ts +++ b/ui-tests/test/utils.ts @@ -8,7 +8,7 @@ import { Page } from '@playwright/test'; export async function runAndAdvance( page: IJupyterLabPageFixture | Page ): Promise { - await page.click(".jp-Toolbar-item [data-icon='ui-components:run']"); + await page.keyboard.press('Shift+Enter'); } /**