Skip to content

Commit

Permalink
fix and clean
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSero committed Jun 24, 2024
1 parent c48386b commit cf89cc9
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 22 deletions.
2 changes: 1 addition & 1 deletion wallets/keplr/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { defineConfig, devices } from '@playwright/test'
*/
export default defineConfig({
// Look for test files in the "test/e2e" directory, relative to this configuration file.
testDir: './test/playwright',
testDir: './test/e2e',

// We're increasing the timeout to 60 seconds to allow all traces to be recorded.
// Sometimes it threw an error saying that traces were not recorded in the 30 seconds timeout limit.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion wallets/keplr/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"sourceMap": false
},
"include": ["src", "test"],
"files": ["environment.d.ts", "playwright.config.ts", "vitest.config.ts"]
"files": ["environment.d.ts", "playwright.config.ts"]
}
7 changes: 0 additions & 7 deletions wallets/keplr/vitetest.config.ts

This file was deleted.

4 changes: 1 addition & 3 deletions wallets/metamask/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default defineConfig({

// Opt out of parallel tests on CI since it supports only 1 worker.
workers: process.env.CI ? 1 : undefined,

// Concise 'dot' for CI, default 'html' when running locally.
// See https://playwright.dev/docs/test-reporters.
reporter: process.env.CI
Expand All @@ -34,10 +33,9 @@ export default defineConfig({
use: {
// We are using locally deployed MetaMask Test Dapp.
baseURL: 'http://localhost:9999',

// Collect all traces on CI, and only traces for failed tests when running locally.
// See https://playwright.dev/docs/trace-viewer.
trace: process.env.CI ? 'on' : 'retain-on-failure'
trace: process.env.CI ? 'on' : 'retain-on-failure',
},

// Configure projects for major browsers.
Expand Down
14 changes: 4 additions & 10 deletions wallets/metamask/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
{
"type": "commonjs",
"extends": "./tsconfig.build.json",
"compilerOptions": {
"rootDir": ".",
"exactOptionalPropertyTypes": false, // Allows for `undefined` in `playwright.config.ts`
"types": ["cypress"],
"sourceMap": false
},
"include": [
"src",
"test"
],
"files": [
"environment.d.ts",
"playwright.config.ts",
"vitest.config.ts",
]
"include": ["src", "test"],
"files": ["environment.d.ts", "playwright.config.ts"]
}

0 comments on commit cf89cc9

Please sign in to comment.