Skip to content

Commit

Permalink
adds statins nightly e2e (#2626)
Browse files Browse the repository at this point in the history
  • Loading branch information
JDemlow authored Dec 2, 2023
1 parent 8306866 commit ae98081
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions frontend/playwright-tests/statins.nightly.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { test } from '@playwright/test'

test('Statin Adherence', async ({ page }) => {
await page.goto(
'/exploredata?mls=1.medicare_cardiovascular-3.00&group1=All&dt1=statins_adherence'
)
await page.getByLabel('Race and Ethnicity:').click()
await page.locator('.MuiBackdrop-root').click()
await page
.locator('#rate-map')
.getByRole('heading', {
name: 'Population adherent to statins in the United States',
})
.click()
await page.getByText('Compare mode').nth(2).click()
await page.getByText('Off').nth(1).click()
await page.locator('#menu- div').first().click()
await page
.locator('#rate-chart')
.getByRole('heading', {
name: 'Population adherent to statins in the United States',
})
.click()
await page
.getByRole('heading', {
name: 'Adherent beneficiary population with unknown race and ethnicity in the United States',
})
.click()
await page
.getByRole('heading', { name: 'Breakdown Summary in the United States' })
.click()
await page.locator('#data-table').getByLabel('Card export options').click()
await page.locator('.MuiBackdrop-root').first().click()
await page.getByText('Share this report:').click()
await page.getByRole('heading', { name: 'Definitions:' }).click()
await page.getByText('Adherence to statins', { exact: true }).click()
await page
.getByText(
'Do you have information that belongs on the Health Equity Tracker? We would love'
)
.click()
})

0 comments on commit ae98081

Please sign in to comment.