Skip to content

Commit c523c77

Browse files
committed
Bug 1975980 - fix browser_newtab_header.js, r=jmaher,home-newtab-reviewers,mconley.
Differential Revision: https://phabricator.services.mozilla.com/D256283
1 parent e4c55fb commit c523c77

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

browser/extensions/newtab/test/browser/browser_newtab_header.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -52,29 +52,5 @@ test_newtab({
5252
pocketHeader && !pocketHeader.style.visibility,
5353
"Pocket header should be visible"
5454
);
55-
56-
// Highlights (Recent activity) section.
57-
await ContentTaskUtils.waitForCondition(
58-
() =>
59-
content.document.querySelector("section[data-section-id='highlights']"),
60-
"Wait for the highlights section to load"
61-
);
62-
let highlightsSection = content.document.querySelector(
63-
"section[data-section-id='topstories']"
64-
);
65-
let isHighlightsSectionCollapsed =
66-
highlightsSection.className.includes("collapsed");
67-
ok(
68-
!isHighlightsSectionCollapsed,
69-
"Highlights section should not be collapsed on load"
70-
);
71-
72-
let highlightsHeader = content.document.querySelector(
73-
"section[data-section-id='highlights'] .section-title"
74-
);
75-
ok(
76-
highlightsHeader && !highlightsHeader.style.visibility,
77-
"Highlights header should be visible"
78-
);
7955
},
8056
});

0 commit comments

Comments
 (0)