Skip to content

Commit

Permalink
chore: add screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizAsFight committed Oct 31, 2024
1 parent d6025bc commit 5bbfd85
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/app/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const playwrightConfig: PlaywrightTestConfig = {
headless: false,
trace: 'on-first-retry',
actionTimeout: 5000,
screenshot: 'only-on-failure',
},
// ignore lock test because it takes too long and it will be tested in a separate config
testIgnore: [join(__dirname, './playwright/crx/lock.test.ts')],
Expand Down
1 change: 1 addition & 0 deletions packages/e2e-contract-tests/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const config: PlaywrightTestConfig = defineConfig({
baseURL: `http://localhost:${process.env.PORT}`,
permissions: ['clipboard-read', 'clipboard-write'],
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
projects: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { test, useLocalCRX } from './test';
import {
checkAddresses,
checkAriaLabelsContainsText,
checkFee,
connect,
waitSuccessTransaction,
} from './utils';
Expand Down Expand Up @@ -93,11 +92,6 @@ test.describe('Deposit Half ETH', () => {

// test gas fee is shown and correct
await hasText(walletNotificationPage, 'Fee (network)');
// const fee = bn.parseUnits('0.000002616');
// await checkFee(walletNotificationPage, {
// minFee: fee.sub(100),
// maxFee: fee.add(100),
// });

// test to and from addresses
await checkAddresses(
Expand Down

0 comments on commit 5bbfd85

Please sign in to comment.