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', state: 'detached',
}); });
await expect await expect(
.poll(() => readVisibleSidebarCategoryNames(app.mainWindow), { app.mainWindow.locator(
timeout: 15000, 'app-workspace-context-panel .category-item:visible'
}) )
.toEqual([]); ).toHaveCount(0, { timeout: 15000 });
await expect(
app.mainWindow.locator(
'app-workspace-context-panel .category-empty-state'
)
).toContainText('No categories available');
await expect( await expect(
app.mainWindow.getByRole('button', { app.mainWindow.getByRole('button', {