gristlabs_grist-core/test/nbrowser/playwrightGristUtils.ts

12 lines
418 B
TypeScript
Raw Normal View History

2024-06-15 03:52:04 +00:00
import { expect, Page } from '@playwright/test';
2024-07-15 17:06:17 +00:00
import { HomeUtil } from "./playwrightHomeUtil";
import * as testUtils from "../server/testUtils";
import { server } from "./testServer";
export const homeUtil = new HomeUtil(testUtils.fixturesRoot, server);
2024-06-15 03:52:04 +00:00
export async function checkForErrors(page: Page) {
const errors = await page.evaluate(() => (window as any).getAppErrors());
expect(errors).toEqual([]);
}