-
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.
Frontend: Phrma brfss cancer screening setup (#3585)
# Description and Motivation <!--- bulleted, high level items. use keywords (eg "closes #144" or "fixes #4323") --> - [x] updates metric config, provider, metadata, and madlib with PHRMA BRFSS Cancer screening topics - [x] put new topics behind a flag, which is enabled on local, netlify deploy preview, and dev staging, but not prod. - [x] comparison population (for eligible subpopulation) is working once generated on the backend ## Has this been tested? How? - [x] tests passing ## Screenshots (if appropriate) ## Types of changes (leave all that apply) - New content or feature ## New frontend preview link is below in the Netlify comment 😎
- Loading branch information
1 parent
ba98992
commit 489604b
Showing
55 changed files
with
1,653 additions
and
748 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
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
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 |
---|---|---|
|
@@ -185,6 +185,7 @@ | |
"domcontentloaded", | ||
"Donrie", | ||
"dont", | ||
"DOTENV", | ||
"downloadjs", | ||
"dpf", | ||
"dreamhost", | ||
|
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
VITE_DEPLOY_CONTEXT=staging | ||
# VITE_BASE_API_URL does not need to be set because API calls will be | ||
# relative to the frontend domain. | ||
|
||
VITE_FORCE_STATIC=geographies.json | ||
VITE_SHOW_PHRMA_MENTAL_HEALTH=1 | ||
VITE_SHOW_CANCER_SCREENINGS=1 |
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 |
---|---|---|
@@ -1,20 +1,40 @@ | ||
import { test } from '@playwright/test'; | ||
import { test } from '@playwright/test' | ||
|
||
test('PHRMA: Medicare AMI', async ({ page }) => { | ||
await page.goto('/exploredata?mls=1.medicare_cardiovascular-3.12&group1=85PLUS&dt1=medicare_ami&demo=age'); | ||
await page.locator('#rate-map').getByRole('heading', { name: 'Rates of Acute MI in Florida' }).click(); | ||
await page.getByRole('heading', { name: 'Medicare Beneficiaries diagnosed with AMI, Ages 85+' }).click(); | ||
await page.getByLabel('Legend for rate map').getByRole('img').click(); | ||
await page.locator('li').filter({ hasText: 'Total population of Medicare Beneficiaries diagnosed with AMI, Ages 18+:' }).click(); | ||
await page.locator('#rate-chart').getByText('Medicare Administrative Data (data from 2020) ').click(); | ||
await page.locator('#unknown-demographic-map').getByRole('note').click(); | ||
await page.getByRole('button', { name: 'Population vs. distribution' }).click(); | ||
await page.getByLabel('Comparison bar chart showing').getByRole('img').click(); | ||
await page.getByRole('heading', { name: 'Breakdown summary for acute' }).click(); | ||
await page.getByText('Gender: The Medicare source').click(); | ||
await page.getByText('Sexual Orientation:').click(); | ||
await page.getByText('Sexual Orientation: The').click(); | ||
await page.getByText('Disability:').click(); | ||
await page.getByText('Disability: Although').click(); | ||
await page.getByText('Social and Political').click(); | ||
}); | ||
await page.goto( | ||
'/exploredata?mls=1.medicare_cardiovascular-3.12&group1=85PLUS&dt1=medicare_ami&demo=age', | ||
) | ||
await page | ||
.locator('#rate-map') | ||
.getByRole('heading', { name: 'Rates of Acute MI in Florida' }) | ||
.click() | ||
await page | ||
.getByRole('heading', { | ||
name: 'Medicare Beneficiaries diagnosed with AMI, Ages 85+', | ||
}) | ||
.click() | ||
await page.getByLabel('Legend for rate map').getByRole('img').click() | ||
await page | ||
.locator('li') | ||
.filter({ | ||
hasText: | ||
'Total population of Medicare Beneficiaries diagnosed with AMI, Ages 18+:', | ||
}) | ||
.click() | ||
await page | ||
.locator('#rate-chart') | ||
.getByText('Medicare Administrative Data (data from 2020) ') | ||
.click() | ||
await page.locator('#unknown-demographic-map').getByRole('note').click() | ||
await page | ||
.getByRole('button', { name: 'Population vs. distribution' }) | ||
.click() | ||
await page.getByLabel('Comparison bar chart showing').getByRole('img').click() | ||
await page.getByRole('heading', { name: 'Summary for acute' }).click() | ||
await page.getByText('Gender: The Medicare source').click() | ||
await page.getByText('Sexual Orientation:').click() | ||
await page.getByText('Sexual Orientation: The').click() | ||
await page.getByText('Disability:').click() | ||
await page.getByText('Disability: Although').click() | ||
await page.getByText('Social and Political').click() | ||
}) |
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.