Skip to content

Commit

Permalink
Update e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
david-mears-2 committed Sep 11, 2024
1 parent 508b69a commit 87b613d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/e2e/runAnalysis.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ test("Can request a scenario analysis run", async ({ page, baseURL }) => {
// Reduce flakeyness of tests by waiting for evidence that the page has mounted.
await expect(page.getByTitle(/Web app version: 0.0.1/)).toHaveCount(1);

await page.selectOption('select[id="pathogen"]', { label: "Influenza 1957" });
await page.selectOption('select[id="response"]', { label: "Elimination" });
await page.selectOption('select[id="country"]', { label: "United States" });
await page.selectOption('select[aria-label="Disease"]', { label: "Influenza 1957" });
await page.selectOption('select[aria-label="Response"]', { label: "Elimination" });
await page.selectOption('select[aria-label="Country"]', { label: "United States" });
await page.click('div[aria-label="Global vaccine investment"] label[for="low"]');
await page.fill('input[aria-label="Hospital capacity"]', "50000");

await page.click('button:has-text("Run")');

Expand Down

0 comments on commit 87b613d

Please sign in to comment.