Skip to content

Commit

Permalink
test: remove redundant actions from fillColonyNameStep helper
Browse files Browse the repository at this point in the history
  • Loading branch information
olgapod committed Oct 30, 2024
1 parent 2f5a7ce commit 3ae7579
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions playwright/utils/create-colony.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,13 @@ export const fillColonyNameStep = async (
urlFieldValue,
}: { nameFieldValue: string; urlFieldValue: string },
) => {
const continueButton = page.getByRole('button', { name: /continue/i });

await page.getByLabel(/colony Name/i).fill(nameFieldValue);

await page.getByLabel(/custom colony URL/i).fill(urlFieldValue);

await page.getByText(/URL available/i).waitFor({ state: 'visible' });

await page.getByLabel(/custom colony URL/i).blur();

await page.getByText(/URL available/i).waitFor({ state: 'visible' });

await continueButton.click();
await page
.getByRole('button', { name: /continue/i })
.click({ timeout: 10000 });
};

export const fillNativeTokenStepWithExistingToken = async (
Expand Down

0 comments on commit 3ae7579

Please sign in to comment.