Skip to content
This repository has been archived by the owner on Feb 29, 2020. It is now read-only.

Bug 1598876 - Fix intermittent link test failure #5390

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/browser/browser_discovery_render.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ async function before({ pushPrefs }) {
test_newtab({
before,
test: async function test_render_hardcoded() {
const topSites = await ContentTaskUtils.waitForCondition(() =>
content.document.querySelector(".ds-top-sites")
const learnMoreLink = await ContentTaskUtils.waitForCondition(() =>
content.document.querySelector(".ds-layout a[href$=new_tab_learn_more]")
);
ok(topSites, "Got the discovery stream top sites section");
ok(learnMoreLink, "Got the discovery stream learn more link");

const learnMore = content.document.querySelector(
".ds-layout a[href$=new_tab_learn_more]"
Expand Down