1
+ import { browser , by , element , Key , ProtractorBy } from 'protractor' ;
2
+
1
3
describe ( 'fullscreen' , ( ) => {
2
4
beforeEach ( ( ) => browser . get ( '/fullscreen' ) ) ;
3
5
@@ -10,24 +12,24 @@ describe('fullscreen', () => {
10
12
element ( by . id ( 'fullscreen' ) ) . click ( ) ;
11
13
element ( by . id ( 'dialog' ) ) . click ( ) ;
12
14
13
- overlayInFullscreen ( ) . then ( isPresent => {
15
+ overlayInFullscreen ( ) . then ( ( isPresent : boolean ) => {
14
16
expect ( isPresent ) . toBe ( true ) ;
15
17
element ( by . id ( 'exitfullscreenindialog' ) ) . click ( ) ;
16
- overlayInBody ( ) . then ( isPresent => {
18
+ overlayInBody ( ) . then ( ( isPresent : boolean ) => {
17
19
expect ( isPresent ) . toBe ( true ) ;
18
20
} ) ;
19
21
} ) ;
20
22
} ) ;
21
23
22
24
it ( 'should open a dialog inside the document body and move it to a fullscreen element' , ( ) => {
23
25
element ( by . id ( 'dialog' ) ) . click ( ) ;
24
- overlayInBody ( ) . then ( isPresent => {
26
+ overlayInBody ( ) . then ( ( isPresent : boolean ) => {
25
27
expect ( isPresent ) . toBe ( true ) ;
26
28
element ( by . id ( 'fullscreenindialog' ) ) . click ( ) ;
27
- overlayInFullscreen ( ) . then ( isPresent => {
29
+ overlayInFullscreen ( ) . then ( ( isPresent : boolean ) => {
28
30
expect ( isPresent ) . toBe ( true ) ;
29
31
element ( by . id ( 'exitfullscreenindialog' ) ) . click ( ) ;
30
- overlayInBody ( ) . then ( isPresent => {
32
+ overlayInBody ( ) . then ( ( isPresent : boolean ) => {
31
33
expect ( isPresent ) . toBe ( true ) ;
32
34
} ) ;
33
35
} ) ;
0 commit comments