mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
12 lines
418 B
TypeScript
12 lines
418 B
TypeScript
import { expect, Page } from '@playwright/test';
|
|
import { HomeUtil } from "./playwrightHomeUtil";
|
|
import * as testUtils from "../server/testUtils";
|
|
import { server } from "./testServer";
|
|
|
|
export const homeUtil = new HomeUtil(testUtils.fixturesRoot, server);
|
|
|
|
export async function checkForErrors(page: Page) {
|
|
const errors = await page.evaluate(() => (window as any).getAppErrors());
|
|
expect(errors).toEqual([]);
|
|
}
|