This repository was archived by the owner on Jul 29, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1-
2- describe ( 'handling timeout errors' , function ( ) {
3-
4- it ( 'should call error handler on a timeout' , function ( ) {
5- browser . get ( 'http://dummyUrl' , 1 ) . then ( function ( ) {
1+ describe ( 'handling timeout errors' , ( ) => {
2+ it ( 'should call error handler on a timeout' , async ( ) => {
3+ try {
4+ await browser . get ( 'http://dummyUrl' , 1 ) ;
65 throw 'did not handle error' ;
7- } , function ( err ) {
6+ } catch ( err ) {
87 expect ( err instanceof Error ) . toBeTruthy ( ) ;
9- } ) ;
8+ }
109 } ) ;
1110} ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ exports.config = {
1010 // Spec patterns are relative to this directory.
1111 specs : [
1212 'basic/elements_spec.js' ,
13- 'basic/lib_spec.js'
13+ 'basic/lib_spec.js' ,
14+ 'basic/handling_spec.js'
1415 ] ,
1516
1617 // Exclude patterns are relative to this directory.
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ exports.config = {
1111 // TODO(selenium4): revert back to basic/*_spec.js
1212 specs : [
1313 'basic/elements_spec.js' ,
14- 'basic/lib_spec.js'
14+ 'basic/lib_spec.js' ,
15+ 'basic/handling_spec.js'
1516 ] ,
1617
1718 // Exclude patterns are relative to this directory.
You can’t perform that action at this time.
0 commit comments