test(e2e): assert the empty sidebar with web-first checks (#1751)

This commit is contained in:
4gray authored and GitHub committed 2026-09-30 08:50:57 +02:00
1 parent 388fa9e29d
commit 0bdad04356
1 file changed
+10 -5
@@ -448,11 +448,16 @@ test.describe('Electron Xtream Category Management', () => {
state: 'detached',
});
await expect
.poll(() => readVisibleSidebarCategoryNames(app.mainWindow), {
timeout: 15000,
})
.toEqual([]);
await expect(
app.mainWindow.locator(
'app-workspace-context-panel .category-item:visible'
)
).toHaveCount(0, { timeout: 15000 });
await expect(
app.mainWindow.locator(
'app-workspace-context-panel .category-empty-state'
)
).toContainText('No categories available');
await expect(
app.mainWindow.getByRole('button', {