-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
}) |