test: Fixed tests and other small QA fixes, b=no-bug, c=common, workspaces

This commit is contained in:
mr. m
2025-10-15 02:06:51 +02:00
parent 80623a8e46
commit c06de3372d
6 changed files with 24 additions and 38 deletions

View File

@@ -2473,7 +2473,10 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
const shouldHideSeparator =
pinnedContainer.children.length === 1 ||
Array.from(arrowScrollbox.children).filter(
(child) => !child.hasAttribute('hidden') && !child.hasAttribute('zen-empty-tab')
(child) =>
!child.hasAttribute('hidden') &&
!child.hasAttribute('bursting') &&
!child.hasAttribute('zen-empty-tab')
).length <= 1;
if (shouldHideSeparator) {
pinnedContainer.setAttribute('hide-separator', 'true');
@@ -2498,7 +2501,7 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
for (const entry of entries) {
let originalWorkspaceId = entry.target.getAttribute('zen-workspace-id');
if (!originalWorkspaceId) {
originalWorkspaceId = entry.target.closest('zen-workspace')?.id;
originalWorkspaceId = entry.target.closest('zen-workspace')?.id || this.activeWorkspace;
}
const workspacesIds = [];
if (entry.target.closest('#zen-essentials')) {