From b483f090730376147e3c8a172ecd3e4e67f84d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?jeesun=20=EC=A7=80=EC=84=A0?= Date: Fri, 5 Apr 2024 20:59:33 +0200 Subject: [PATCH] Update tests/fundAccountPage.test.ts Co-authored-by: Iveta --- tests/fundAccountPage.test.ts | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/tests/fundAccountPage.test.ts b/tests/fundAccountPage.test.ts index 054ba35df..2b683a02c 100644 --- a/tests/fundAccountPage.test.ts +++ b/tests/fundAccountPage.test.ts @@ -17,30 +17,8 @@ test.describe("Fund Account Page", () => { test("Shows futurenet network in the title if I change my network to futurenet", async ({ page, }) => { - // Click network selector dropdown button - await page.getByTestId("networkSelector-button").click(); - await expect(page.getByTestId("networkSelector-dropdown")).toBeVisible(); - - // Select Futurenet in the dropdown list - await page - .getByTestId("networkSelector-dropdown") - .getByTestId("networkSelector-option") - .filter({ has: page.getByText("Futurenet") }) - .click(); - - // Network Submit button - const submitButton = page.getByTestId("networkSelector-submit-button"); - - // Select 'Futurenet' in the network dropdown list - await expect(submitButton).toHaveText("Switch to Futurenet"); - await expect(submitButton).toBeEnabled(); - - // Click 'Switch to Futurenet' button - await submitButton.click(); - - await expect(page.getByTestId("networkSelector-button")).toHaveText( - "Futurenet", - ); + await page.goto("http://localhost:3000/account/muxed-create?||=network$id=futurenet&label=Futurenet&horizonUrl=https:////horizon-futurenet.stellar.org&rpcUrl=https:////rpc-futurenet.stellar.org&passphrase=Test%20SDF%20Future%20Network%20/;%20October%202022;;") +` await expect(page.locator("h1")).toHaveText( "Friendbot: fund a futurenet network account", );