Skip to content

Commit 8a42d0d

Browse files
committed
Lint fix, ignore collapse/expand errors
1 parent 1208d3e commit 8a42d0d

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

packages/databricks-vscode/src/test/e2e/tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
"resolveJsonModule": true,
1414
"module": "ESNext",
1515
"target": "ES2022",
16-
"lib": [
17-
"ES2022"
18-
],
16+
"lib": ["ES2022"],
1917
"isolatedModules": true,
2018
"sourceMap": true,
2119
"noImplicitAny": false,
@@ -25,4 +23,4 @@
2523
"esModuleInterop": true,
2624
"skipLibCheck": true /* Skip type checking of declaration files for WDIO v9 compatibility */
2725
}
28-
}
26+
}

packages/databricks-vscode/src/test/e2e/utils/commonUtils.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,15 @@ export async function getViewSection(
7171

7272
for (const s of ViewSectionTypes) {
7373
if (s !== name) {
74-
await (await findViewSection(s))?.collapse();
74+
try {
75+
await (await findViewSection(s))?.collapse();
76+
} catch {}
7577
}
7678
}
7779

78-
await section!.expand();
80+
try {
81+
await section!.expand();
82+
} catch {}
7983
return section;
8084
}
8185

0 commit comments

Comments
 (0)