mirror of
https://github.com/zen-browser/desktop
synced 2026-04-26 01:25:02 +02:00
fix: Fixed workspace tests having an extra tab, b=(no-bug), c=common, compact-mode, workspaces, tests
This commit is contained in:
@@ -21,8 +21,8 @@ add_task(async function test_Check_Creation() {
|
||||
|
||||
await ZenWorkspaces.removeWorkspace(ZenWorkspaces.activeWorkspace);
|
||||
const workspacesAfterRemove = await ZenWorkspaces._workspaces();
|
||||
ok(workspacesAfterRemove.workspaces.length, 1);
|
||||
ok(workspacesAfterRemove.workspaces.length === 1, 'One workspace should exist.');
|
||||
ok(workspacesAfterRemove.workspaces[0].uuid === currentWorkspaceUUID, 'The workspace should be the one we started with.');
|
||||
|
||||
ok(gBrowser.tabs.length, 1);
|
||||
ok(gBrowser.tabs.length === 2, 'There should be one tab.');
|
||||
BrowserTestUtils.removeTab(gBrowser.selectedTab);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user