Skip to content

Commit

Permalink
e2e test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaLRussell committed Aug 30, 2023
1 parent 0d4f160 commit f76e91b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/static/tests/e2e/multiSensitivity.etest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ test.describe("Multi-sensitivity tests", () => {
const section = await page.locator(`:nth-match(.sensitivity-options-settings, ${index})`);
const listItems = await section.locator("ul li");
await expect(await listItems.nth(0).innerText()).toBe(`Parameter: ${param}`);
await expect(await listItems.nth(1).innerText()).toBe(`Scale Type: ${scale}`);
await expect(await listItems.nth(2).innerText()).toBe(`Variation Type: ${variation}`);
await expect(await listItems.nth(1).innerText()).toBe(`Variation Type: ${variation}`);
await expect(await listItems.nth(2).innerText()).toBe(`Scale Type: ${scale}`);
if (variation === SensitivityVariationType.Percentage) {
await expect(await listItems.nth(3).innerText()).toBe(`Variation (%): ${percentage}`);
await expect(await listItems.nth(4).innerText()).toBe(`Number of runs: ${runs}`);
Expand All @@ -34,8 +34,8 @@ test.describe("Multi-sensitivity tests", () => {
variation: SensitivityVariationType, percentage: number | null, from: number | null, central: number | null,
to: number | null, runs: number, values: string) => {
await expect(await page.inputValue("#edit-param-to-vary select")).toBe(param);
await expect(await page.inputValue("#edit-scale-type select")).toBe(scale);
await expect(await page.inputValue("#edit-variation-type select")).toBe(variation);
await expect(await page.inputValue("#edit-scale-type select")).toBe(scale);
if (variation === SensitivityVariationType.Percentage) {
await expect(await page.inputValue("#edit-percent input")).toBe(percentage!.toString());
} else {
Expand Down

0 comments on commit f76e91b

Please sign in to comment.