Skip to content
This repository was archived by the owner on Jul 2, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 17 additions & 9 deletions src/testing/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export async function runTestCaseFromSideBar(
Duration.TEN_MINUTES
);

testResult = await attemptToFindOutputPanelText('Apex', '=== Test Results', 10);
testResult = await attemptToFindOutputPanelText('Apex Testing', '=== Test Results', 10);
} else if (testSuite === 'LWC Tests') {
testResult = await getTerminalViewText(workbench, 15);
}
Expand Down Expand Up @@ -165,22 +165,30 @@ export async function verifyTestItemsInSideBar(
}

export async function continueDebugging(times: number, seconds = 5): Promise<void> {
const bar = await retryOperation(async () => {
const bar = await retryOperation(
async () => {
log('Creating debug toolbar...');
await pause(Duration.seconds(10));
return await DebugToolbar.create();
}, 5, 'Failed to create debug toolbar after retries');
},
5,
'Failed to create debug toolbar after retries'
);

// Continue with the debug session
for (let i = 0; i < times; i++) {
await retryOperation(async () => {
// Continue with the debug session
for (let i = 0; i < times; i++) {
await retryOperation(
async () => {
log('Waiting for debug toolbar to be ready...');
await pause(Duration.seconds(10));
await bar.wait();
log('Continuing debugging...');
await bar.continue();
log('Continued debugging...');
}, 5, 'Failed to continue debugging - continue button not found');
await pause(Duration.seconds(seconds));
}
},
5,
'Failed to continue debugging - continue button not found'
);
await pause(Duration.seconds(seconds));
}
}