From a3d0cfd682a6e57f88970f294bba36673caf633b Mon Sep 17 00:00:00 2001 From: George Gevoian Date: Wed, 13 Sep 2023 12:43:51 -0400 Subject: [PATCH] Try an experiment --- test/nbrowser/CodeEditor.ntest.js | 2 ++ test/nbrowser/ColumnOps.ntest.js | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/test/nbrowser/CodeEditor.ntest.js b/test/nbrowser/CodeEditor.ntest.js index 86c828a5929..d05c24e7f4a 100644 --- a/test/nbrowser/CodeEditor.ntest.js +++ b/test/nbrowser/CodeEditor.ntest.js @@ -4,6 +4,7 @@ import { assert, driver } from 'mocha-webdriver'; import { $, gu, test } from 'test/nbrowser/gristUtil-nbrowser'; describe('CodeEditor.ntest', function() { + this.timeout(60000); const cleanup = test.setupTestSuite(this); before(async function() { @@ -55,6 +56,7 @@ describe('CodeEditor.ntest', function() { it('should allow text selection', async function() { const textElem = $('.hljs-title:contains(CodeEditor)'); await textElem.click(); + await driver.sleep(40000); await driver.withActions(a => a.doubleClick(textElem.elem())); assert.equal(await driver.executeScript(() => window.getSelection().toString()), 'CodeEditor_test'); }); diff --git a/test/nbrowser/ColumnOps.ntest.js b/test/nbrowser/ColumnOps.ntest.js index 3bed2e28bc4..f0b157cb7df 100644 --- a/test/nbrowser/ColumnOps.ntest.js +++ b/test/nbrowser/ColumnOps.ntest.js @@ -4,6 +4,7 @@ import { $, gu, test } from 'test/nbrowser/gristUtil-nbrowser'; const colHeaderScrollOpts = {block: "start", inline: "end"}; describe('ColumnOps.ntest', function() { + this.timeout(60000); const cleanup = test.setupTestSuite(this); before(async function() { @@ -17,6 +18,11 @@ describe('ColumnOps.ntest', function() { }); it("should allow adding and deleting columns", async function() { + await gu.openSidePane('code'); + const textElem = $('.hljs-title:contains(Table1)'); + await textElem.wait().click(); + await driver.withActions(a => a.doubleClick(textElem.elem())); + await driver.sleep(40000); await gu.clickColumnMenuItem('Name', 'Insert column to the right'); await gu.waitForServer(); // Newly created columns labels become editable automatically. The next line checks that the