(core) export WindowDimensions from gristUtils after refactor

Summary:
WindowDimensions from gristUtils needs exporting
after it got moved to another file.

Test Plan: existing tests should pass

Reviewers: georgegevoian

Reviewed By: georgegevoian

Subscribers: georgegevoian

Differential Revision: https://phab.getgrist.com/D3971
pull/590/head
Paul Fitzpatrick 10 months ago
parent 7256e0c245
commit 14b14f116e

@ -116,6 +116,7 @@ describe('TypeChange.ntest', function() {
// Revise formula to get text length and accept
await $('.test-type-transform-revise').wait().click();
await $('.test-type-transform-formula').click();
await gu.waitAppFocus(false);
await gu.sendKeys($.SELECT_ALL, $.DELETE, 'return len($F) + 1');
// Check that updating the type conversion works
@ -126,6 +127,7 @@ describe('TypeChange.ntest', function() {
// Check that applying the type conversion without first updating works
// (the weird formula keeps other tests consistent with past behaviour)
await $('.test-type-transform-formula').click();
await gu.waitAppFocus(false);
await gu.sendKeys($.SELECT_ALL, $.DELETE, 'return len($F.replace("0", "0.0"))');
await gu.waitForServer();
await gu.applyTypeConversion();

@ -22,7 +22,8 @@ import { Organization } from 'app/gen-server/entity/Organization';
import { Product } from 'app/gen-server/entity/Product';
import { create } from 'app/server/lib/create';
import { GristWebDriverUtils, PageWidgetPickerOptions, WindowDimensions } from 'test/nbrowser/gristWebDriverUtils';
import { GristWebDriverUtils, PageWidgetPickerOptions,
WindowDimensions as WindowDimensionsBase } from 'test/nbrowser/gristWebDriverUtils';
import { HomeUtil } from 'test/nbrowser/homeUtil';
import { server } from 'test/nbrowser/testServer';
import { Cleanup } from 'test/nbrowser/testUtils';
@ -85,6 +86,8 @@ export const fixturesRoot: string = testUtils.fixturesRoot;
// it is sometimes useful in debugging to turn off automatic cleanup of docs and workspaces.
export const noCleanup = Boolean(process.env.NO_CLEANUP);
export type WindowDimensions = WindowDimensionsBase;
// Most test code uses simulateLogin through the server reference. Keep them to reduce unnecessary
// code changes.
server.simulateLogin = simulateLogin;

Loading…
Cancel
Save