6 lines
292 B
TypeScript
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);
|