mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) Summaries test doesn't work in a browser mode
Summary: Summaries test works only in a headless mode. In browser mode it failes as section is to narrow. Test Plan: n/a Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2859
This commit is contained in:
parent
b740028e8f
commit
30bbb6fa94
@ -7,7 +7,7 @@ import * as fse from 'fs-extra';
|
||||
import escapeRegExp = require('lodash/escapeRegExp');
|
||||
import noop = require('lodash/noop');
|
||||
import startCase = require('lodash/startCase');
|
||||
import { assert, driver, error, Key, WebElement, WebElementPromise } from 'mocha-webdriver';
|
||||
import { assert, driver, error, IRectangle, Key, WebElement, WebElementPromise } from 'mocha-webdriver';
|
||||
import { stackWrapFunc, stackWrapOwnMethods } from 'mocha-webdriver';
|
||||
import * as path from 'path';
|
||||
|
||||
@ -1467,6 +1467,20 @@ export async function addColumn(name: string) {
|
||||
await waitForServer();
|
||||
}
|
||||
|
||||
/**
|
||||
* Changes browser window dimension to FullHd for a test suit.
|
||||
*/
|
||||
export function bigScreen() {
|
||||
let oldRect!: IRectangle;
|
||||
before(async function () {
|
||||
oldRect = await driver.manage().window().getRect();
|
||||
await driver.manage().window().setRect({ width: 1920, height: 1080 });
|
||||
});
|
||||
after(async function () {
|
||||
await driver.manage().window().setRect(oldRect);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
} // end of namespace gristUtils
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user