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',
|
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', {
|
||||||
|
|||||||
Reference in new issue
Block a user