Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
georgegevoian committed Sep 14, 2023
1 parent a4fa3d0 commit 5bd0a6e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/nbrowser/CopyPasteColumnOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import {safeJsonParse} from 'app/common/gutil';
import {GristObjCode} from 'app/plugin/GristData';
import {assert, driver} from 'mocha-webdriver';
import {assert, Key} from 'mocha-webdriver';
import * as gu from 'test/nbrowser/gristUtils';
import {setupTestSuite} from 'test/nbrowser/testUtils';

Expand Down Expand Up @@ -49,12 +49,11 @@ describe('CopyPasteColumnOptions', function() {
});

// Copy all the data from Table1 to Table2, which will copy the column options
await gu.selectSectionByTitle("TABLE1");
await gu.getCell({section: 'TABLE1', col: 0, rowNum: 1}).click();
await gu.sendKeys(Key.chord(Key.SHIFT, Key.RIGHT), Key.chord(Key.SHIFT, Key.RIGHT));
await gu.withSafeClipboard(async (cb) => {
await gu.sendKeys(await gu.selectAllKey());
assert.equal(await driver.executeScript(() => window.getSelection()!.toString()), 'CodeEditor_test');
await cb.copy();
await gu.selectSectionByTitle("TABLE2");
await gu.getCell({section: 'TABLE2', col: 0, rowNum: 1}).click();
await cb.paste();
});
await gu.waitForServer();
Expand Down

0 comments on commit 5bd0a6e

Please sign in to comment.