@tshifhiwa/ohrm-ui-automation-framework
Version:
Playwright and TypeScript–based test automation framework for validating core UI features and workflows of the OrangeHRM demo application.
13 lines (10 loc) • 379 B
text/typescript
import EnvironmentDetector from "../environment/detector/environmentDetector.js";
export default class TimeoutManager {
private static CI_MULTIPLIER = 2;
public static timeout(
timeoutInMs: number,
ciMultiplier: number = TimeoutManager.CI_MULTIPLIER,
): number {
return EnvironmentDetector.isCI() ? timeoutInMs * ciMultiplier : timeoutInMs;
}
}