File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,8 +127,7 @@ add_task(async function test_UnloadAllOtherWorkspace_essentials() {
127127 true ,
128128 { skipAnimation : true }
129129 ) ;
130- tab . setAttribute ( "zen-workspace-id" , inactiveWorkspaceId ) ;
131- tab . setAttribute ( "zen-essential" , "true" ) ;
130+ gZenPinnedTabManager . addToEssentials ( tab ) ;
132131 inactiveWorkspaceTabs . push ( tab ) ;
133132 }
134133
@@ -155,6 +154,13 @@ add_task(async function test_UnloadAllOtherWorkspace_essentials() {
155154 "Essential Tab in inactive workspace should have linked panel"
156155 ) ;
157156 }
157+ for ( const tab of inactiveWorkspaceTabs ) {
158+ gZenPinnedTabManager . removeEssentials ( tab ) ;
159+
160+ }
161+ for ( const tab of activeWorkspaceTabs ) {
162+ gZenPinnedTabManager . removeEssentials ( tab ) ;
163+ }
158164 await gZenWorkspaces . removeWorkspace ( inactiveWorkspaceId ) ;
159165 await gZenWorkspaces . removeWorkspace ( activeWorkspaceId ) ;
160166} ) ;
You can’t perform that action at this time.
0 commit comments