From 3e9cd6e300be9ff9e9f84cdd59f5c7343a2475b5 Mon Sep 17 00:00:00 2001 From: Rory Doak Date: Tue, 3 Dec 2024 19:06:18 +0000 Subject: [PATCH] revert duplicate fn --- e2e/tests/ui-driven/src/helpers/addComponent.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/e2e/tests/ui-driven/src/helpers/addComponent.ts b/e2e/tests/ui-driven/src/helpers/addComponent.ts index 09e2cd95ad..0ad8f252d1 100644 --- a/e2e/tests/ui-driven/src/helpers/addComponent.ts +++ b/e2e/tests/ui-driven/src/helpers/addComponent.ts @@ -364,7 +364,7 @@ async function createComponentOptions( await page.getByPlaceholder("Option").nth(index).fill(option); index++; } - + await page.getByPlaceholder("Flags (up to one per category)").nth(1).click(); await page.getByRole("option", { name: selectedFlag, exact: true }).click(); } @@ -382,19 +382,6 @@ async function createComponentOptionsWithDataValues( } } -async function createComponentOptionsWithDataValues( - page: Page, - options: OptionWithDataValues[], -) { - let index = 0; - for (const option of options) { - await page.locator("button").filter({ hasText: "add new" }).click(); - await page.getByPlaceholder("Option").nth(index).fill(option.optionText); - await page.getByPlaceholder("Data Value").nth(index).fill(option.dataValue); - index++; - } -} - export const createList = async ( page: Page, locatingNode: Locator,