1
- describe ( 'configuration with no globals' , function ( ) {
2
- var URL = '/ng2/#/async' ;
1
+ describe ( 'configuration with no globals' , ( ) => {
2
+ const URL = '/ng2/#/async' ;
3
3
4
- it ( 'should have objects belonging to protractor namespace' , function ( ) {
4
+ it ( 'should have objects belonging to protractor namespace' , ( ) => {
5
5
expect ( typeof protractor ) . toEqual ( 'object' ) ;
6
6
expect ( typeof protractor . browser ) . toEqual ( 'object' ) ;
7
7
expect ( typeof protractor . $ ) . toEqual ( 'function' ) ;
@@ -11,7 +11,7 @@ describe('configuration with no globals', function() {
11
11
expect ( typeof protractor . By ) . toEqual ( 'object' ) ;
12
12
} ) ;
13
13
14
- it ( 'should not have other globals' , function ( ) {
14
+ it ( 'should not have other globals' , ( ) => {
15
15
expect ( typeof browser ) . toEqual ( 'undefined' ) ;
16
16
expect ( typeof $ ) . toEqual ( 'undefined' ) ;
17
17
expect ( typeof $$ ) . toEqual ( 'undefined' ) ;
@@ -20,11 +20,11 @@ describe('configuration with no globals', function() {
20
20
expect ( typeof By ) . toEqual ( 'undefined' ) ;
21
21
} ) ;
22
22
23
- it ( 'should be able to use methods under the protractor namespace' , function ( ) {
24
- protractor . browser . get ( URL ) ;
25
- var increment = protractor . $ ( '#increment' ) ;
23
+ it ( 'should be able to use methods under the protractor namespace' , async ( ) => {
24
+ await protractor . browser . get ( URL ) ;
25
+ const increment = protractor . $ ( '#increment' ) ;
26
26
expect ( typeof increment ) . toEqual ( 'object' ) ;
27
- increment . $ ( '.action' ) . click ( ) ;
28
- expect ( increment . $ ( '.val' ) . getText ( ) ) . toEqual ( '1' ) ;
27
+ await increment . $ ( '.action' ) . click ( ) ;
28
+ expect ( await increment . $ ( '.val' ) . getText ( ) ) . toEqual ( '1' ) ;
29
29
} ) ;
30
30
} ) ;
0 commit comments