Skip to content

Commit

Permalink
revert duplicate fn
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Dec 3, 2024
1 parent 26fab54 commit 3e9cd6e
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions e2e/tests/ui-driven/src/helpers/addComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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,
Expand Down

0 comments on commit 3e9cd6e

Please sign in to comment.