Skip to content

Conversation

@jonybur
Copy link
Contributor

@jonybur jonybur commented Nov 22, 2024

Description

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@jonybur jonybur requested a review from a team as a code owner November 22, 2024 12:20
@metamaskbot metamaskbot added the team-core-extension-ux Core Extension UX team label Nov 22, 2024
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

Comment on lines +124 to +148
it('switches networks when clicking on swap for a token on another network', async function () {
await withFixtures(
buildFixtures(this.test?.fullTitle() as string),
async ({
driver,
ganacheServer,
}: {
driver: Driver;
ganacheServer?: Ganache;
}) => {
await loginWithBalanceValidation(driver, ganacheServer);
const assetListPage = new AssetListPage(driver);
await assetListPage.waitUntilAssetListHasItems(4);
await assetListPage.clickOnAsset('LineaETH');
await driver.clickElement('[data-testid="token-overview-button-swap"]');
const toastTextElement = await driver.findElement('.toast-text');
const toastText = await toastTextElement.getText();
assert.equal(
toastText,
"You're now using Linea Sepolia",
'Toast text is correct',
);
},
);
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we do end up doing a try/catch, or some sort of error handling on the client to prevent the "network switch failure" case, I'd imagine that we'd probably add some additional e2e tests here as well.

@jonybur jonybur changed the base branch from feat/mmassets-432_network-filter-extension--integration-balances to develop November 25, 2024 21:08
@jonybur jonybur requested a review from a team as a code owner November 25, 2024 21:08
@jonybur jonybur changed the base branch from develop to feat/mmassets-432_network-filter-extension--integration-balances November 25, 2024 21:10
@jonybur jonybur closed this Nov 25, 2024
@jonybur jonybur deleted the feat/mmassets-432_network-filter-extension--integration-balances--e2e-tests branch November 25, 2024 23:14
@github-actions github-actions bot locked and limited conversation to collaborators Nov 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

team-core-extension-ux Core Extension UX team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants