From ace698a558d7dc3c91da4523ac320e1703f7f067 Mon Sep 17 00:00:00 2001 From: George Gevoian <85144792+georgegevoian@users.noreply.github.com> Date: Mon, 24 Oct 2022 13:19:09 -0700 Subject: [PATCH] Update saveViewSection test for grist-core (#323) --- test/nbrowser/saveViewSection.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/nbrowser/saveViewSection.ts b/test/nbrowser/saveViewSection.ts index 57a8c3a6..c76e4040 100644 --- a/test/nbrowser/saveViewSection.ts +++ b/test/nbrowser/saveViewSection.ts @@ -1,19 +1,19 @@ import { assert, driver, Key } from 'mocha-webdriver'; import * as gu from 'test/nbrowser/gristUtils'; -import { server, setupTestSuite } from 'test/nbrowser/testUtils'; +import { setupTestSuite } from 'test/nbrowser/testUtils'; describe("saveViewSection", function() { this.timeout(20000); setupTestSuite(); - it("should work correctly when turning a table to 'summary'", async () => { - // create a new document - const docId = await gu.createNewDoc('Chimpy', 'nasa', 'Horizon', 'test-updateViewSection'); + const cleanup = setupTestSuite(); - // Login and open document - await server.simulateLogin('Chimpy', 'chimpy@getgrist.com', 'nasa'); - await driver.get(`${server.getHost()}/o/nasa/doc/${docId}`); + before(async function() { + const session = await gu.session().teamSite.login(); + await session.tempNewDoc(cleanup, 'test-updateViewSection'); + }); + it("should work correctly when turning a table to 'summary'", async () => { // add new section await gu.addNewSection(/Table/, /Table1/);