File tree 3 files changed +8
-10
lines changed
3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
- name : UI Automation Tests
2
- on : workflow_dispatch
1
+ name : e2e
2
+ on : pull_request
3
+
3
4
jobs :
4
5
playwright :
5
6
runs-on : ubuntu-latest
17
18
- name : Install dependencies
18
19
run : npm ci
19
20
- name : Install headless Chromium for Playwright Browser
20
- run : npx playwright install --with-deps --no-shell
21
- - name : Start localhost
22
- run : npm run start &
23
- env :
24
- REACT_APP_TEST_EVM_ADDR : ${{ secrets.REACT_APP_TEST_EVM_ADDR }}
25
- REACT_APP_TEST_EVM_PK : ${{ secrets.REACT_APP_TEST_EVM_PK }}
21
+ run : npx playwright install chromium --with-deps
26
22
- name : Run Playwright tests
27
- run : npm test:e2e
23
+ run : npm run test:e2e
28
24
env :
29
25
REACT_APP_TEST_EVM_ADDR : ${{ secrets.REACT_APP_TEST_EVM_ADDR }}
30
26
REACT_APP_TEST_EVM_PK : ${{ secrets.REACT_APP_TEST_EVM_PK }}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export default defineConfig({
22
22
] ,
23
23
24
24
webServer : {
25
- command : 'npm run dev ' ,
25
+ command : 'npm run start ' ,
26
26
url : 'http://localhost:5173' ,
27
27
reuseExistingServer : ! process . env . CI ,
28
28
timeout : 120000 ,
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export class BridgeView {
22
22
23
23
async connectSrcWallet ( address : string | undefined ) {
24
24
expect ( address ) . not . toBeUndefined ( ) ;
25
+ console . log ( `Connecting to source wallet: ${ address } ` ) ;
25
26
await this . page . evaluate (
26
27
( payload ) => {
27
28
globalThis . dispatchReduxAction ( {
@@ -40,6 +41,7 @@ export class BridgeView {
40
41
41
42
async connectDestWallet ( address : string | undefined ) {
42
43
expect ( address ) . not . toBeUndefined ( ) ;
44
+ console . log ( `Connecting to destination wallet: ${ address } ` ) ;
43
45
await this . page . evaluate (
44
46
( payload ) => {
45
47
globalThis . dispatchReduxAction ( {
You can’t perform that action at this time.
0 commit comments