Skip to content

Commit e95c9c2

Browse files
committed
fix test
1 parent bb03e75 commit e95c9c2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ui-tests/tests/jupyter_projspec.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ test('should activate and register the projspec sidebar panel', async ({
55
}) => {
66
// The extension registers a panel with id "projspec-panel" in the right sidebar.
77
// Verify the panel tab is present, which confirms the extension activated.
8-
const panelTab = page.locator('#tab-bar-projspec-panel');
8+
// In JupyterLab 4 (Lumino 2), sidebar tabs use data-id attributes, not HTML id.
9+
const panelTab = page.locator(
10+
'.lm-TabBar.jp-SideBar .lm-TabBar-tab[data-id="projspec-panel"]'
11+
);
912
await expect(panelTab).toHaveCount(1);
1013
});

0 commit comments

Comments
 (0)