fix: Fixed workspace tests having an extra tab, b=(no-bug), c=common, compact-mode, workspaces, tests

This commit is contained in:
mr. m
2025-05-09 19:29:53 +02:00
parent 7df278f7ed
commit 1fc2299801
4 changed files with 20 additions and 16 deletions

View File

@@ -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);
});