Skip to content

Commit

Permalink
more e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
benhammondmusic committed Jan 10, 2025
1 parent f237e7a commit bb4c20a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
6 changes: 5 additions & 1 deletion frontend/playwright-tests/ami.ci.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ test('PHRMA: Medicare AMI', async ({ page }) => {
await page
.getByRole('button', { name: 'Population vs. distribution' })
.click()
await page.getByLabel('Comparison bar chart showing').getByRole('img').click()
await page
.getByLabel('Comparison bar chart showing')
.getByRole('img')
.nth(1)
.click()
await page.getByRole('heading', { name: 'Summary for acute' }).click()
await page.getByText('Gender: The Medicare source').click()
await page.getByText('Sexual Orientation:').click()
Expand Down
6 changes: 5 additions & 1 deletion frontend/playwright-tests/black_men_gun_homicides.ci.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ test('Black Men Homicide Test: Bottom Half of Cards', async ({ page }) => {
.locator('#population-vs-distribution')
.getByRole('heading', { name: 'Black (NH) Men' })
.click()
await page.getByLabel('Comparison bar chart showing').getByRole('img').click()
await page
.getByLabel('Comparison bar chart showing')
.getByRole('img')
.nth(1)
.click()
await page.getByRole('button', { name: 'Data table' }).click()
await page.getByRole('heading', { name: 'Summary of Black male gun' }).click()
await page
Expand Down
1 change: 0 additions & 1 deletion frontend/playwright-tests/cawp.ci.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ test('CAWP: Congress', async ({ page }) => {
.getByLabel(
'Comparison bar chart showing Population vs. distribution of total women in US congress in the United States',
)
.getByRole('img')
.click()
await page
.getByLabel(
Expand Down
1 change: 0 additions & 1 deletion frontend/playwright-tests/drinking.nightly.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ test('Excessive Drinking Flow', async ({ page }) => {
.getByLabel(
'Comparison bar chart showing Population vs. distribution of total adult excessive drinking cases in the United States',
)
.getByRole('img')
.click()
await page
.getByRole('heading', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ test('Maternal Mortality', async ({ page }) => {
.locator('#population-vs-distribution')
.getByRole('heading', { name: 'New Mothers, Ages 10-' })
.click()
await page.getByLabel('Comparison bar chart showing').getByRole('img').click()
await page.getByLabel('Comparison bar chart showing').click()
await page.getByRole('heading', { name: 'Summary for maternal' }).click()
await page
.getByRole('figure', { name: 'Summary for maternal' })
Expand Down

0 comments on commit bb4c20a

Please sign in to comment.