This commit is contained in:
2025-11-30 17:37:03 +01:00
parent 65f74e124a
commit 4b8c70978f
6 changed files with 283 additions and 20 deletions

View File

@@ -41,6 +41,9 @@ import { permissionGuard, shouldSkipRealAutomationTests } from './support/Permis
const IRACING_URL = 'https://members-ng.iracing.com/web/racing/hosted/browse-sessions';
const WINDOW_TITLE_PATTERN = 'iRacing';
const RUN_REAL_AUTOMATION_SMOKE = process.env.RUN_REAL_AUTOMATION_SMOKE === '1';
const describeSmoke = RUN_REAL_AUTOMATION_SMOKE ? describe : describe.skip;
let skipReason: string | null = null;
let browserProcess: ChildProcess | null = null;
@@ -85,7 +88,7 @@ async function closeBrowser(): Promise<void> {
browserProcess = null;
}
describe('E2E Real Automation Tests - REAL iRacing Website', () => {
describeSmoke('Real automation smoke REAL iRacing Website', () => {
beforeAll(async () => {
// Check permissions first
skipReason = await shouldSkipRealAutomationTests() ?? null;