DigitalConsumer.FixMyGlass/playwright-tests/impl/utils/ThrowUtils.ts
maguire-arman 404dda6556 Adds Playwright test framework for FMG
Initial commit of the Playwright test framework, including:
- Configuration files for Playwright, Docker, and Sauce Labs
- Test case structure and page object models
- CI/CD pipeline configuration
- Utilities and business logic implementations

This framework will be used for end-to-end testing of the FMG application.
2025-04-07 15:40:31 -04:00

12 lines
No EOL
354 B
TypeScript

import { error } from "console";
export function throwIf(conditionFunction: () => boolean, errorMessage: string): void {
if (conditionFunction())
throw new Error(errorMessage);
}
export function throwNotYetImplemented(nameOfThingNotImplemented: string) {
throw new Error(`${nameOfThingNotImplemented} has not yet been implemented.`)
}