Skip to content

Commit

Permalink
remove switching to 'mainnet' from 'testnet' for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeesun Kim authored and Jeesun Kim committed Apr 10, 2024
1 parent 23223ae commit feca2d0
Showing 1 changed file with 28 additions and 33 deletions.
61 changes: 28 additions & 33 deletions tests/fundAccountPage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,39 +163,34 @@ test.describe("[futurenet/testnet] Fund Account Page", () => {
await expect(alertBox).toBeVisible();
});

test("if I switch to 'mainnet' network, I should see 'Not Found' page and no 'Fund account' sidebar", async ({
page,
}) => {
// Click network selector dropdown button
await page.getByTestId("networkSelector-button").click();
await expect(page.getByTestId("networkSelector-dropdown")).toBeVisible();

// Select Mainnet in the dropdown list
await page
.getByTestId("networkSelector-dropdown")
.getByTestId("networkSelector-option")
.filter({ has: page.getByText("Mainnet") })
.click();

// Network Submit button
const submitButton = page.getByTestId("networkSelector-submit-button");

// Select 'Mainnet' in the network dropdown list
await expect(submitButton).toHaveText("Switch to Mainnet");
await expect(submitButton).toBeEnabled();

// Click 'Switch to Mainnet' button
await submitButton.click();

await expect(page.getByTestId("networkSelector-button")).toHaveText(
"Mainnet",
);
await expect(page.locator("h2")).toHaveText("Not Found");

await expect(page.getByTestId("endpoints-sidebar-section")).toHaveText(
"Create Account Create Muxed Account Parse Muxed Account",
);
});
// @TODO when we work on the button disabled for funding account from mainnet
// test("if I switch to 'mainnet' network, I should see 'Not Found' page and no 'Fund account' sidebar", async ({
// page,
// }) => {
// // Click network selector dropdown button
// await page.getByTestId("networkSelector-button").click();
// await expect(page.getByTestId("networkSelector-dropdown")).toBeVisible();

// // Select Mainnet in the dropdown list
// await page
// .getByTestId("networkSelector-dropdown")
// .getByTestId("networkSelector-option")
// .filter({ has: page.getByText("Mainnet") })
// .click();

// // Network Submit button
// const submitButton = page.getByTestId("networkSelector-submit-button");

// // Select 'Mainnet' in the network dropdown list
// await expect(submitButton).toHaveText("Switch to Mainnet");
// await expect(submitButton).toBeEnabled();

// // Click 'Switch to Mainnet' button
// await submitButton.click();

// await expect(page.getByTestId("networkSelector-button")).toHaveText(
// "Mainnet",
// );
});

test.describe("[mainnet] Fund Account Page", () => {
Expand Down

0 comments on commit feca2d0

Please sign in to comment.