From f9a3d69aee896131006c606d764d3869ca3dbf81 Mon Sep 17 00:00:00 2001 From: Martin Vere Cihlar Date: Fri, 20 Dec 2024 08:57:33 +0100 Subject: [PATCH] fix(e2e): Sets default resolution and reverts one locator needed by cy tests --- packages/suite-desktop-core/e2e/playwright.config.ts | 1 + packages/suite-desktop-core/e2e/support/common.ts | 1 + .../CoinmarketSelectedOffer/CoinmarketSelectedOfferInfo.tsx | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/suite-desktop-core/e2e/playwright.config.ts b/packages/suite-desktop-core/e2e/playwright.config.ts index 99790700ae5..edc25677553 100644 --- a/packages/suite-desktop-core/e2e/playwright.config.ts +++ b/packages/suite-desktop-core/e2e/playwright.config.ts @@ -27,6 +27,7 @@ const config: PlaywrightTestConfig = { testDir: 'tests', workers: 1, // to disable parallelism between test files use: { + viewport: { width: 1280, height: 720 }, headless: process.env.HEADLESS === 'true', trace: 'on', video: 'on', diff --git a/packages/suite-desktop-core/e2e/support/common.ts b/packages/suite-desktop-core/e2e/support/common.ts index e02d2d80958..3b0f8c7d2f9 100644 --- a/packages/suite-desktop-core/e2e/support/common.ts +++ b/packages/suite-desktop-core/e2e/support/common.ts @@ -50,6 +50,7 @@ export const launchSuiteElectronApp = async (params: LaunchSuiteParams = {}) => disableHashCheckArgument, showDebugMenuArgument, `--log-level=${desiredLogLevel}`, + '--window-size=1280,720', ...(options.bridgeLegacyTest ? ['--bridge-legacy', '--bridge-test'] : []), ...(options.bridgeDaemon ? ['--bridge-daemon', '--skip-new-bridge-rollout'] : []), ], diff --git a/packages/suite/src/views/wallet/coinmarket/common/CoinmarketSelectedOffer/CoinmarketSelectedOfferInfo.tsx b/packages/suite/src/views/wallet/coinmarket/common/CoinmarketSelectedOffer/CoinmarketSelectedOfferInfo.tsx index 4a6ae074273..208b05c75ef 100644 --- a/packages/suite/src/views/wallet/coinmarket/common/CoinmarketSelectedOffer/CoinmarketSelectedOfferInfo.tsx +++ b/packages/suite/src/views/wallet/coinmarket/common/CoinmarketSelectedOffer/CoinmarketSelectedOfferInfo.tsx @@ -30,7 +30,7 @@ export const CoinmarketSelectedOfferInfo = ({ const amountLabels = coinmarketGetAmountLabels({ type, amountInCrypto: true }); return ( - + {type !== 'exchange' && ( <>