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.
12 lines
No EOL
354 B
TypeScript
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.`)
|
|
} |