From 33d24e50f6f6d074165921439358bbdff5487441 Mon Sep 17 00:00:00 2001 From: Paul Fitzpatrick Date: Wed, 24 May 2023 16:29:14 -0400 Subject: [PATCH] use gu.toggleSidePanel to open side panel (#523) This hopefully fixes a test that was occasionally failing. --- test/nbrowser/DescriptionWidget.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/nbrowser/DescriptionWidget.ts b/test/nbrowser/DescriptionWidget.ts index 09fc11bb..1c6bc3fd 100644 --- a/test/nbrowser/DescriptionWidget.ts +++ b/test/nbrowser/DescriptionWidget.ts @@ -12,9 +12,7 @@ describe('DescriptionWidget', function() { await mainSession.tempDoc(cleanup, "CardView.grist", { load: true }); const newWidgetDesc = "This is the widget description\nIt is in two lines"; - await driver.find('.test-right-opener').click(); - // Sleep 100ms to let open the right panel and make the description input clickable - await driver.sleep(100); + await gu.toggleSidePanel('right', 'open'); const rightPanelDescriptionInput = await driver.find('.test-right-panel .test-right-widget-description'); await rightPanelDescriptionInput.click(); await rightPanelDescriptionInput.sendKeys(newWidgetDesc);