File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -632,7 +632,9 @@ const run = async (
632
632
await awaitPage ( driver , browser , version , `${ host } /tests/${ getvars } ` ) ;
633
633
634
634
log ( task , "Running tests..." ) ;
635
- await driver . wait ( until . elementLocated ( By . id ( "status" ) ) , 30000 ) ;
635
+ await driver . wait ( until . elementLocated ( By . id ( "run" ) ) , 5000 ) ;
636
+ await click ( driver , browser , "run" ) ;
637
+
636
638
statusEl = await driver . findElement ( By . id ( "status" ) ) ;
637
639
try {
638
640
await driver . wait ( until . elementTextContains ( statusEl , "upload" ) , 90000 ) ;
Original file line number Diff line number Diff line change @@ -10,13 +10,15 @@ See the LICENSE file for copyright details
10
10
<% - include (' unsecurewarning' ) %>
11
11
<% - include (' extensioncheck' , {sendToServer: true }) %>
12
12
<% if (dev) {% >< p class = " error-notice" > Note: you are running a development version of the collector! < / p>< % } %>
13
- <p id =" status" >Running tests...</p >
13
+
14
+ <p id =" status" >Ready to start tests</p >
14
15
<form id =" export" action =" /export" method =" post" >
15
16
<button id =" export-download" class =" export-button" type =" submit" name =" download" value =" download" disabled ><span class =" mdi mdi-download" ></span > Download results file</button >
16
17
<button id =" export-github" class =" export-button <% if (!github) {%>always-disabled<% } %>" type =" submit" name =" github" value =" github" disabled ><span class =" mdi mdi-github" ></span > <% if (github) {% > Send results to mdn- bcd- results GitHub repo< % } else { % > GitHub export disabled < % } % >< / button >
17
18
< / form>
18
19
< div id= " results" >
19
20
< hr / >
21
+ < button id= " run" > Run Tests< / button>
20
22
< / div>
21
23
22
24
< % let resourcesToLoad = new Set (); % >
@@ -68,7 +70,8 @@ See the LICENSE file for copyright details
68
70
< % tests .forEach (function (test ) { % >
69
71
bcd .addTest (" <%- test.ident %>" , < %- JSON .stringify (test .tests ) % > , " <%- test.exposure %>" );
70
72
< % }); % >
71
- window .onload = function () {
73
+ document .getElementById (' run' ).onclick = function () {
74
+ document .getElementById (' run' ).style .display = " none" ;
72
75
bcd .go (
73
76
undefined ,
74
77
< %- resourcesToLoad .size % > ,
You can’t perform that action at this time.
0 commit comments