Skip to content

Commit

Permalink
fix(test) ensure network forward test is stable WD-10196
Browse files Browse the repository at this point in the history
Signed-off-by: David Edler <[email protected]>
  • Loading branch information
edlerd committed Apr 10, 2024
1 parent 0646fa2 commit 8f83970
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/helpers/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,15 @@ export const createNetworkForward = async (page: Page, network: string) => {
await page.getByLabel("Listen address").fill(listenAddress);

await page.getByRole("button", { name: "Add port" }).click();
await page.getByLabel("Port 0 listen port").fill("80");
await page.getByLabel("Port 0 target address").fill(targetAddress);
await page.getByLabel("0 listen port").click();
await page.keyboard.type("80");
await page.getByLabel("0 target address").click();
await page.keyboard.type(targetAddress);
await page.getByRole("button", { name: "Add port" }).click();
await page.getByLabel("Port 1 listen port").fill("23,443-455");
await page.getByLabel("Port 1 target address").fill(targetAddress);
await page.getByLabel("1 listen port").click();
await page.keyboard.type("23,443-455");
await page.getByLabel("1 target address").click();
await page.keyboard.type(targetAddress);
await page.getByRole("button", { name: "Create" }).click();

await page.getByText(`Network forward ${listenAddress} created.`).click();
Expand Down

0 comments on commit 8f83970

Please sign in to comment.