Skip to content

Commit f966202

Browse files
committed
Use a lower level API to find the view section.
1 parent f463c98 commit f966202

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ export async function findViewSection(name: ViewSectionType) {
4343
(await (await control?.openView())?.getContent()?.getSections()) ?? [];
4444
console.log("Views:", views.length);
4545
for (const v of views) {
46-
const title = await v.getTitle();
46+
const title = await v.elem.getText();
4747
console.log("View title:", title);
4848
if (title === null) {
4949
continue;
5050
}
51-
if (title.toUpperCase() === name) {
51+
if (title.toUpperCase().includes(name)) {
5252
return v;
5353
}
5454
}

0 commit comments

Comments
 (0)