Update saveViewSection test for grist-core (#323)

pull/326/head
George Gevoian 2 years ago committed by GitHub
parent 0c82b746d0
commit ace698a558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,19 +1,19 @@
import { assert, driver, Key } from 'mocha-webdriver'; import { assert, driver, Key } from 'mocha-webdriver';
import * as gu from 'test/nbrowser/gristUtils'; import * as gu from 'test/nbrowser/gristUtils';
import { server, setupTestSuite } from 'test/nbrowser/testUtils'; import { setupTestSuite } from 'test/nbrowser/testUtils';
describe("saveViewSection", function() { describe("saveViewSection", function() {
this.timeout(20000); this.timeout(20000);
setupTestSuite(); setupTestSuite();
it("should work correctly when turning a table to 'summary'", async () => { const cleanup = setupTestSuite();
// create a new document
const docId = await gu.createNewDoc('Chimpy', 'nasa', 'Horizon', 'test-updateViewSection');
// Login and open document before(async function() {
await server.simulateLogin('Chimpy', 'chimpy@getgrist.com', 'nasa'); const session = await gu.session().teamSite.login();
await driver.get(`${server.getHost()}/o/nasa/doc/${docId}`); await session.tempNewDoc(cleanup, 'test-updateViewSection');
});
it("should work correctly when turning a table to 'summary'", async () => {
// add new section // add new section
await gu.addNewSection(/Table/, /Table1/); await gu.addNewSection(/Table/, /Table1/);

Loading…
Cancel
Save