gristlabs_grist-core/test/nbrowser/playwrightGristUtils.ts
2024-07-16 15:39:19 +01:00

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([]);
}