Skip to content

Commit

Permalink
Try an experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
georgegevoian committed Sep 13, 2023
1 parent f38cd67 commit a3d0cfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/nbrowser/CodeEditor.ntest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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');
});
Expand Down
6 changes: 6 additions & 0 deletions test/nbrowser/ColumnOps.ntest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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
Expand Down

0 comments on commit a3d0cfd

Please sign in to comment.