diff --git a/wallets-testing/browser/browser.service.ts b/wallets-testing/browser/browser.service.ts index c18700a0..106a32f5 100644 --- a/wallets-testing/browser/browser.service.ts +++ b/wallets-testing/browser/browser.service.ts @@ -120,16 +120,13 @@ export class BrowserService { } async connectWallet(): Promise<string> { - try { - const widgetPage = new WIDGET_PAGES[this.widgetConfig.name]( - await this.browserContextService.browserContext.newPage(), - this.stakeConfig || {}, - ); - await widgetPage.navigate(); - await widgetPage.connectWallet(this.walletPage); - } finally { - await this.browserContextService.closePages(); - } + const widgetPage = new WIDGET_PAGES[this.widgetConfig.name]( + await this.browserContextService.browserContext.newPage(), + this.stakeConfig || {}, + ); + await widgetPage.navigate(); + await widgetPage.connectWallet(this.walletPage); + await this.browserContextService.closePages(); return `Success. Wallet ${this.walletPage.config.COMMON.WALLET_NAME} successfully connected`; } diff --git a/wallets-testing/playwright.config.ts b/wallets-testing/playwright.config.ts index b8c7ec70..f22f8e7a 100644 --- a/wallets-testing/playwright.config.ts +++ b/wallets-testing/playwright.config.ts @@ -41,7 +41,7 @@ const config: PlaywrightTestConfig = { use: { /* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */ actionTimeout: 120000, - screenshot: 'only-on-failure', + screenshot: { fullPage: true, mode: 'only-on-failure' }, /* Base URL to use in actions like `await page.goto('/')`. */ // baseURL: 'http://localhost:3000',