Files
web2.0-frontend/tests/testcafe/utils.ts
T
2021-01-13 21:56:16 +02:00

6 lines
292 B
TypeScript

import { ClientFunction } from "testcafe";
export const getSiteRoot = (): string => process.env.SITE_URL || "http://localhost:3000";
// export const getPageUrl = ClientFunction(() => window.location.href.toString());
export const getPageUrl = ClientFunction(() => window.location.pathname);