-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cherry pick E2E changes #28648
Cherry pick E2E changes #28648
Conversation
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. |
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', | ||
); | ||
}, | ||
); | ||
}); |
There was a problem hiding this comment.
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.
Description
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist