You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
579 B

import { remove } from 'fs-extra';
import { join } from 'path';
import { homedir } from 'os';
import { ClientFunction } from 'testcafe';
export const pageUrl = '../build/index.html';
export const getPageUrl = ClientFunction(() => window.location.href);
export const getPageTitle = ClientFunction(() => document.title);
export const assertNoConsoleErrors = async (t: TestController) => {
const { error } = await t.getBrowserConsoleMessages();
await t.expect(error).eql([]);
};
export const cleanup = async () => {
await remove(join(homedir(), '.polar', 'networks'));
};