Skip to content

Commit

Permalink
CDD-2180: updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luketowell committed Jan 13, 2025
1 parent b13c579 commit a5176c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions e2e/tests/landing/landing.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,15 @@ test.describe('Landing page - desktop @desktopOnly', () => {
})

test('doesnt display the showMore button with 3 or less charts', async ({ landingPage }) => {
await landingPage.hasXCardsInSection('Outbreaks', 3)
await landingPage.hasNoShowMoreButton()
})

test('expands the region charts after clicking showMore button', async ({ landingPage }) => {
await test.step('click show more button', async () => {
await landingPage.clickShowMoreButton()
})
await test.step('All charts', async () => {
await test.step('Shows all charts', async () => {
await landingPage.hasLandingPageCard({
title: 'COVID-19',
sub_title: 'Cases Reported',
Expand Down Expand Up @@ -122,10 +123,10 @@ test.describe('Landing page - desktop @desktopOnly', () => {
await landingPage.hasShowLessButton()
await landingPage.hasXCardsInSection('Respiratory viruses', 6)
})
await test.step('click show more button', async () => {
await test.step('click show less button', async () => {
await landingPage.clickShowLessButton()
})
await test.step('All charts', async () => {
await test.step('Shows only first three charts', async () => {
await landingPage.hasLandingPageCard({
title: 'COVID-19',
sub_title: 'Cases Reported',
Expand Down

0 comments on commit a5176c7

Please sign in to comment.