This repository was archived by the owner on Jul 29, 2024. It is now read-only.
File tree 3 files changed +10
-9
lines changed 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 ) ;
6
5
throw 'did not handle error' ;
7
- } , function ( err ) {
6
+ } catch ( err ) {
8
7
expect ( err instanceof Error ) . toBeTruthy ( ) ;
9
- } ) ;
8
+ }
10
9
} ) ;
11
10
} ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ exports.config = {
10
10
// Spec patterns are relative to this directory.
11
11
specs : [
12
12
'basic/elements_spec.js' ,
13
- 'basic/lib_spec.js'
13
+ 'basic/lib_spec.js' ,
14
+ 'basic/handling_spec.js'
14
15
] ,
15
16
16
17
// Exclude patterns are relative to this directory.
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ exports.config = {
11
11
// TODO(selenium4): revert back to basic/*_spec.js
12
12
specs : [
13
13
'basic/elements_spec.js' ,
14
- 'basic/lib_spec.js'
14
+ 'basic/lib_spec.js' ,
15
+ 'basic/handling_spec.js'
15
16
] ,
16
17
17
18
// Exclude patterns are relative to this directory.
You can’t perform that action at this time.
0 commit comments