Skip to content

Commit 308d894

Browse files
committed
add trace log
1 parent 7ff95b1 commit 308d894

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ui-test/utils.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,16 +247,22 @@ export async function replaceTextInCodeEditor(text: string, replacement: string)
247247
*/
248248
export async function getDebuggerSectionItem(driver: WebDriver, item: string, section: string, subsection?: string): Promise<VariableSectionItem | undefined> {
249249
const debugView = (await (await new ActivityBar().getViewControl('Run'))?.openView()) as DebugView;
250+
console.log('debug view opened');
250251
return await driver.wait(async function () {
251252
try {
252253
const variablesSection = await debugView.getVariablesSection();
254+
console.log('variables section found');
253255
if (subsection) {
256+
console.log(`will try to open subsection: ${section} -> ${subsection}`);
254257
await variablesSection?.openItem(section, subsection);
255258
} else {
259+
console.log(`will try to open section: ${section}`);
256260
await variablesSection?.openItem(section);
257261
}
262+
console.log(`will search fo rthe item ${item}`);
258263
return await variablesSection.findItem(item);
259264
} catch (e) {
265+
console.log(e);
260266
// Extra click to avoid the error: "Element is not clickable at point (x, y)"
261267
// Issue is similar to https://issues.redhat.com/browse/FUSETOOLS2-2100
262268
if (e instanceof Error && e.name === 'ElementClickInterceptedError') {

0 commit comments

Comments
 (0)