wip
This commit is contained in:
@@ -13,7 +13,7 @@ describe('Step 18 – track conditions (manual stop)', () => {
|
||||
await harness.dispose();
|
||||
});
|
||||
|
||||
it('does not automate Track Conditions and surfaces unknown-step result', async () => {
|
||||
it('treats Track Conditions as manual stop without invoking automation step 18', async () => {
|
||||
await harness.navigateToFixtureStep(18);
|
||||
|
||||
const page = harness.adapter.getPage();
|
||||
@@ -24,9 +24,10 @@ describe('Step 18 – track conditions (manual stop)', () => {
|
||||
);
|
||||
expect(sidebarTrackConditions).toContain('Track Conditions');
|
||||
|
||||
const result = await harness.executeStep(18, {});
|
||||
const trackConditionsContainer = page!.locator('#set-track-conditions').first();
|
||||
expect(await trackConditionsContainer.count()).toBeGreaterThan(0);
|
||||
|
||||
expect(result.success).toBe(false);
|
||||
expect(result.error).toContain('Unknown step: 18');
|
||||
const bodyText = await page!.textContent('body');
|
||||
expect(bodyText).toMatch(/Track Conditions|Starting Track State/i);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user