Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions _data/homepage_promotion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand All @@ -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/
4 changes: 2 additions & 2 deletions test/index.html.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don’t forget to update the name of this test! :)


// Assert that the view all text (including the screen reader text) is present.
expect(viewAllText).toContain(`View all questions about ${title}`);
Expand Down