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

Commit bf28fc2

Browse files
committed
fixing a broken link test
1 parent f5c4d29 commit bf28fc2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/browser/browser_discovery_render.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ async function before({ pushPrefs }) {
1414
test_newtab({
1515
before,
1616
test: async function test_render_hardcoded() {
17-
const topSites = await ContentTaskUtils.waitForCondition(() =>
18-
content.document.querySelector(".ds-top-sites")
17+
const learnMoreLink = await ContentTaskUtils.waitForCondition(() =>
18+
content.document.querySelector(".ds-layout a[href$=new_tab_learn_more]")
1919
);
20-
ok(topSites, "Got the discovery stream top sites section");
20+
ok(learnMoreLink, "Got the discovery stream learn more link");
2121

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

0 commit comments

Comments
 (0)