Skip to content

Commit

Permalink
Update tests/fundAccountPage.test.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Iveta <[email protected]>
  • Loading branch information
jeesunikim and quietbits authored Apr 5, 2024
1 parent 60dfcea commit b483f09
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions tests/fundAccountPage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
);
Expand Down

0 comments on commit b483f09

Please sign in to comment.