wip
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { describe, it, expect, beforeEach, afterEach } from 'vitest';
|
||||
import type { StepHarness } from '../support/StepHarness';
|
||||
import { createStepHarness } from '../support/StepHarness';
|
||||
import { IRACING_SELECTORS } from 'packages/infrastructure/adapters/automation/dom/IRacingSelectors';
|
||||
|
||||
describe('Step 13 – track options', () => {
|
||||
let harness: StepHarness;
|
||||
@@ -19,10 +20,16 @@ describe('Step 13 – track options', () => {
|
||||
const page = harness.adapter.getPage();
|
||||
expect(page).not.toBeNull();
|
||||
|
||||
const sidebarTrackOptions = await page!.textContent(
|
||||
'#wizard-sidebar-link-set-track-options',
|
||||
);
|
||||
expect(sidebarTrackOptions).toContain('Track Options');
|
||||
const sidebarTrackOptions = await page!
|
||||
.locator(IRACING_SELECTORS.wizard.sidebarLinks.trackOptions)
|
||||
.first()
|
||||
.innerText();
|
||||
expect(sidebarTrackOptions).toMatch(/Track Options/i);
|
||||
|
||||
const trackOptionsContainer = page!
|
||||
.locator(IRACING_SELECTORS.wizard.stepContainers.trackOptions)
|
||||
.first();
|
||||
expect(await trackOptionsContainer.count()).toBeGreaterThan(0);
|
||||
|
||||
const bodyText = await page!.textContent('body');
|
||||
expect(bodyText).toContain('Create Starting Grid');
|
||||
|
||||
Reference in New Issue
Block a user