diff --git a/_data/homepage_promotion.yml b/_data/homepage_promotion.yml index 3bac520b5..289a9c12d 100644 --- a/_data/homepage_promotion.yml +++ b/_data/homepage_promotion.yml @@ -37,6 +37,8 @@ questions_box_1: questions: - link: /protect-yourself/am-i-at-risk-for-covid-19-in-the-united-states question: Am I at risk? + - link: /protect-yourself/why-cloth-face-coverings + question: Why do you need to wear cloth face coverings? - link: >- https://www.cdc.gov/coronavirus/2019-ncov/prepare/managing-stress-anxiety.html question: How can I manage anxiety and stress? @@ -49,5 +51,7 @@ questions_box_2: question: What are the symptoms of COVID-19? - link: "/symptoms-and-testing/should-i-be-tested-for-covid-19" question: Should I get tested? + - link: "/keeping-home-safe/if-someone-in-my-house-gets-sick" + question: What should I do if someone in my house gets sick with COVID-19? title: What to do if you feel sick view_all_link: /symptoms-and-testing/ diff --git a/test/index.html.test.js b/test/index.html.test.js index b5ff45a48..2b20f1aec 100644 --- a/test/index.html.test.js +++ b/test/index.html.test.js @@ -21,7 +21,7 @@ test('all six top questions have an icon and text', async () => { }); }); -test('both question boxes have two content links and a view all link', async () => { +test('both question boxes have three content links and a view all link', async () => { const boxes = await page.$$eval('.question-box', elements => { return elements.map(b => { const getText = (el) => el ? el.innerText.trim().replace(/\n/g, '') : null; @@ -38,7 +38,7 @@ test('both question boxes have two content links and a view all link', async () boxes.forEach(({title, questions, viewAllText}) => { expect(title).not.toEqual(''); - expect(questions).toHaveLength(2); + expect(questions).toHaveLength(3); // Assert that the view all text (including the screen reader text) is present. expect(viewAllText).toContain(`View all questions about ${title}`);