mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
fix(e2e): Fixed issues from nightly tests
This commit is contained in:
committed by
Ondřej Hájek
parent
1754ede5c3
commit
d59774ba3c
@@ -33,7 +33,6 @@ export class TradingPage {
|
||||
readonly swapBestOfferButton: Locator;
|
||||
readonly buyOffersPage: Locator;
|
||||
readonly proceedToPayButton: Locator;
|
||||
readonly findAccountButton: Locator;
|
||||
readonly backToAccountButton = (type: 'Buy' | 'Sell' | 'Swap') =>
|
||||
this.page.getByRole('button', { name: `Make another ${type}` });
|
||||
|
||||
@@ -66,7 +65,6 @@ export class TradingPage {
|
||||
this.swapBestOfferButton = this.page.getByTestId('@trading/form/exchange-button');
|
||||
this.buyOffersPage = this.page.getByTestId('@trading/buy-offers');
|
||||
this.proceedToPayButton = this.page.getByRole('button', { name: 'Proceed to pay' });
|
||||
this.findAccountButton = this.page.getByTestId('@find-account');
|
||||
|
||||
// Swap
|
||||
this.sendAddressInput = this.page.getByTestId('outputs.0.address');
|
||||
|
||||
@@ -34,7 +34,7 @@ test.describe(
|
||||
await onboardingPage.disableNecessaryFirmwareChecks();
|
||||
await page.locator('[data-testid="@analytics/toggle-switch"]').click();
|
||||
await page.locator('[data-testid="@analytics/continue-button"]').click();
|
||||
await page.locator('[data-testid="@onboarding/complete-onboarding"]').click();
|
||||
await page.locator('[data-test="@onboarding/exit-app-button"]').click();
|
||||
|
||||
await expect(page.locator('[data-testid="@suite/loading"]')).toBeHidden();
|
||||
});
|
||||
|
||||
@@ -27,7 +27,7 @@ test.describe('Global receive and send', { tag: ['@T3T1', '@T3W1'] }, () => {
|
||||
});
|
||||
|
||||
await test.step('Filter and select account', async () => {
|
||||
await tradingPage.findAccountButton.click();
|
||||
await tradingPage.receiveAccount.findAccountButton.click();
|
||||
await page.getByText('All networks').click();
|
||||
await page
|
||||
.getByTestId('undefined/select-option/eth')
|
||||
|
||||
Reference in New Issue
Block a user