File tree Expand file tree Collapse file tree 7 files changed +25
-5
lines changed Expand file tree Collapse file tree 7 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,14 @@ jobs:
71
71
matrix-index : ${{ matrix.index }}
72
72
matrix-total : ${{ strategy.job-total }}
73
73
74
- test-e2e-chrome-vault-decryption :
74
+ test-e2e-chrome-dist :
75
75
# This if statement is equivalent to IS_FORK
76
76
if : ${{ !(github.event.pull_request.head.repo.fork || github.event.repository.fork) }}
77
77
uses : ./.github/workflows/run-e2e.yml
78
78
with :
79
- test-suite-name : test-e2e-chrome-vault-decryption
79
+ test-suite-name : test-e2e-chrome-dist
80
80
build-artifact : build-dist-browserify
81
- test-command : yarn test:e2e:single test/e2e/vault-decryption- chrome.spec.ts --browser chrome
81
+ test-command : yarn test:e2e:chrome:dist
82
82
83
83
test-e2e-chrome-api-specs :
84
84
uses : ./.github/workflows/run-e2e.yml
@@ -169,7 +169,7 @@ jobs:
169
169
- test-e2e-chrome-multiple-providers
170
170
- test-e2e-chrome-rpc
171
171
- test-e2e-chrome-flask
172
- - test-e2e-chrome-vault-decryption
172
+ - test-e2e-chrome-dist
173
173
- test-e2e-chrome-api-specs
174
174
- test-e2e-chrome-api-specs-multichain
175
175
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -36,10 +36,18 @@ jobs:
36
36
matrix-index : ${{ matrix.index }}
37
37
matrix-total : ${{ strategy.job-total }}
38
38
39
+ test-e2e-firefox-dist :
40
+ uses : ./.github/workflows/run-e2e.yml
41
+ with :
42
+ test-suite-name : test-e2e-firefox-dist
43
+ build-artifact : build-dist-mv2-browserify
44
+ test-command : yarn test:e2e:firefox:dist
45
+
39
46
test-e2e-firefox-report :
40
47
needs :
41
48
- test-e2e-firefox-browserify
42
49
- test-e2e-firefox-flask
50
+ - test-e2e-firefox-dist
43
51
runs-on : ubuntu-latest
44
52
if : ${{ !cancelled() }}
45
53
env :
Original file line number Diff line number Diff line change @@ -277,6 +277,7 @@ jobs:
277
277
e2e-firefox :
278
278
needs :
279
279
- needs-e2e
280
+ - build-dist-mv2-browserify
280
281
- build-test-mv2-browserify
281
282
- build-test-flask-mv2-browserify
282
283
if : ${{ needs.needs-e2e.outputs.needs-e2e == 'true' }}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ app/.DS_Store
33
33
storybook-build /
34
34
coverage /
35
35
jest-coverage /
36
- dist
36
+ / dist
37
37
builds * /
38
38
builds.zip
39
39
development /ts-migration-dashboard /build
Original file line number Diff line number Diff line change 52
52
"test:integration" : " yarn webpack-cli build --config ./development/webpack/webpack.integration.tests.config.ts && jest --config jest.integration.config.js" ,
53
53
"test:integration:coverage" : " yarn test:integration --coverage" ,
54
54
"test:e2e:chrome" : " SELENIUM_BROWSER=chrome tsx test/e2e/run-all.ts" ,
55
+ "test:e2e:chrome:dist" : " SELENIUM_BROWSER=chrome tsx test/e2e/run-all.ts --dist" ,
55
56
"test:e2e:chrome:flask" : " SELENIUM_BROWSER=chrome tsx test/e2e/run-all.ts --build-type flask" ,
56
57
"test:e2e:chrome:webpack" : " SELENIUM_BROWSER=chrome tsx test/e2e/run-all.ts" ,
57
58
"test:api-specs" : " SELENIUM_BROWSER=chrome tsx test/e2e/run-openrpc-api-test-coverage.ts" ,
63
64
"test:e2e:chrome:rpc" : " SELENIUM_BROWSER=chrome tsx test/e2e/run-all.ts --rpc" ,
64
65
"test:e2e:chrome:multi-provider" : " MULTIPROVIDER=true SELENIUM_BROWSER=chrome tsx test/e2e/run-all.ts --multi-provider" ,
65
66
"test:e2e:firefox" : " SELENIUM_BROWSER=firefox tsx test/e2e/run-all.ts" ,
67
+ "test:e2e:firefox:dist" : " SELENIUM_BROWSER=firefox tsx test/e2e/run-all.ts --dist" ,
66
68
"test:e2e:firefox:flask" : " SELENIUM_BROWSER=firefox tsx test/e2e/run-all.ts --build-type flask" ,
67
69
"test:e2e:single" : " node test/e2e/run-e2e-test.js" ,
68
70
"ganache:start" : " ./development/run-ganache.sh" ,
File renamed without changes.
Original file line number Diff line number Diff line change @@ -95,6 +95,10 @@ async function main(): Promise<void> {
95
95
description : `run json-rpc specific e2e tests` ,
96
96
type : 'boolean' ,
97
97
} )
98
+ . option ( 'dist' , {
99
+ description : `run e2e tests for production-like builds` ,
100
+ type : 'boolean' ,
101
+ } )
98
102
. option ( 'multi-provider' , {
99
103
description : `run multi injected provider e2e tests` ,
100
104
type : 'boolean' ,
@@ -128,6 +132,7 @@ async function main(): Promise<void> {
128
132
const {
129
133
browser,
130
134
debug,
135
+ dist,
131
136
retries,
132
137
rpc,
133
138
buildType,
@@ -137,6 +142,7 @@ async function main(): Promise<void> {
137
142
} = argv as {
138
143
browser ?: 'chrome' | 'firefox' ;
139
144
debug ?: boolean ;
145
+ dist ?: boolean ;
140
146
retries ?: number ;
141
147
rpc ?: boolean ;
142
148
buildType ?: string ;
@@ -161,6 +167,9 @@ async function main(): Promise<void> {
161
167
...( await getTestPathsForTestDir ( path . join ( __dirname , 'flask' ) ) ) ,
162
168
...featureTestsOnMain ,
163
169
] ;
170
+ } else if ( dist ) {
171
+ const testDir = path . join ( __dirname , 'dist' ) ;
172
+ testPaths = await getTestPathsForTestDir ( testDir ) ;
164
173
} else if ( rpc ) {
165
174
const testDir = path . join ( __dirname , 'json-rpc' ) ;
166
175
testPaths = await getTestPathsForTestDir ( testDir ) ;
You can’t perform that action at this time.
0 commit comments