Skip to content

Commit 8ec6637

Browse files
committed
test(ios): record navigation through the established Form tab
1 parent 467f5e0 commit 8ec6637

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎test/integration/ios-simulator-e2e/live-runner.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,6 @@ async function assertCapture(context: LiveContext): Promise<void> {
477477
assertPngFile(screenshotPath);
478478
verifyCommand(context, C.screenshot, 'captured fixture file has a valid PNG signature');
479479

480-
await assertWaitSelector(context, 'id="home-open-catalog" visible=true');
481480
const recordingPath = path.join(context.artifactDir, 'fixture.mp4');
482481
const recording = await runStep(context, 'start screen recording', [
483482
'record',
@@ -489,8 +488,8 @@ async function assertCapture(context: LiveContext): Promise<void> {
489488
assert.equal(recording.json?.data?.recording, 'started', JSON.stringify(recording.json));
490489
assert.equal(recording.json?.data?.recordingBackend, 'simctl recordVideo');
491490
assert.equal(recording.json?.data?.activeSessionApp?.bundleId, context.appId);
492-
await runStep(context, 'record a visible mutation', ['press', 'id="home-open-catalog"']);
493-
await assertWaitSelector(context, 'id="catalog-title" visible=true');
491+
await runStep(context, 'record a visible mutation', ['click', 'label="Form"']);
492+
await assertWaitText(context, 'Checkout form');
494493
const stopped = await runStep(context, 'stop screen recording', ['record', 'stop']);
495494
assert.equal(stopped.json?.data?.recording, 'stopped', JSON.stringify(stopped.json));
496495
await assertMp4File(recordingPath);

0 commit comments

Comments
 (0)