mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 09:01:03 -08:00
test(e2e): assert the empty sidebar with web-first checks (#1751)
This commit is contained in:
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', {
|
||||
|
||||
Reference in new issue
Block a user