File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,23 @@ describe('Auto waiting', () => {
199
199
] ) ;
200
200
expect ( messages . join ( '|' ) ) . toBe ( 'route|domcontentloaded|clickload' ) ;
201
201
} ) ;
202
+ it ( 'should work with goto following click' , async ( { page, server} ) => {
203
+ server . setRoute ( '/login.html' , async ( req , res ) => {
204
+ messages . push ( 'route' ) ;
205
+ res . setHeader ( 'Content-Type' , 'text/html' ) ;
206
+ res . end ( `You are logged in` ) ;
207
+ } ) ;
208
+
209
+ await page . setContent ( `
210
+ <form action="${ server . PREFIX } /login.html" method="get">
211
+ <input type="text">
212
+ <input type="submit" value="Submit">
213
+ </form>` ) ;
214
+
215
+ await page . fill ( 'input[type=text]' , 'admin' ) ;
216
+ await page . click ( 'input[type=submit]' ) ;
217
+ await page . goto ( server . EMPTY_PAGE ) ;
218
+ } ) ;
202
219
} ) ;
203
220
204
221
describe ( 'Auto waiting should not hang when' , ( ) => {
You can’t perform that action at this time.
0 commit comments