1
1
import { browser , Key , element , by } from 'protractor' ;
2
- import { screenshot } from '../screenshot' ;
3
2
import { getScrollPosition } from '../util/index' ;
4
3
5
4
@@ -18,8 +17,6 @@ describe('scroll blocking', () => {
18
17
clickOn ( 'disable' ) ;
19
18
scrollPage ( 0 , 300 ) ;
20
19
expect ( ( await getScrollPosition ( ) ) . y ) . toBe ( 300 , 'Exected page to be scrollable again.' ) ;
21
-
22
- screenshot ( ) ;
23
20
} ) ;
24
21
25
22
it ( 'should not be able to scroll programmatically along the y axis' , async ( ) => {
@@ -33,8 +30,6 @@ describe('scroll blocking', () => {
33
30
clickOn ( 'disable' ) ;
34
31
scrollPage ( 300 , 0 ) ;
35
32
expect ( ( await getScrollPosition ( ) ) . x ) . toBe ( 300 , 'Exected page to be scrollable again.' ) ;
36
-
37
- screenshot ( ) ;
38
33
} ) ;
39
34
40
35
it ( 'should not be able to scroll via the keyboard along the y axis' , async ( ) => {
@@ -55,8 +50,6 @@ describe('scroll blocking', () => {
55
50
await body . sendKeys ( Key . ARROW_DOWN ) ;
56
51
expect ( ( await getScrollPosition ( ) ) . y )
57
52
. toBeGreaterThan ( 100 , 'Expected the page to be scrollable again.' ) ;
58
-
59
- screenshot ( ) ;
60
53
} ) ;
61
54
62
55
it ( 'should not be able to scroll via the keyboard along the x axis' , async ( ) => {
@@ -77,8 +70,6 @@ describe('scroll blocking', () => {
77
70
await body . sendKeys ( Key . ARROW_RIGHT ) ;
78
71
expect ( ( await getScrollPosition ( ) ) . x )
79
72
. toBeGreaterThan ( 100 , 'Expected the page to be scrollable again.' ) ;
80
-
81
- screenshot ( ) ;
82
73
} ) ;
83
74
84
75
it ( 'should not be able to scroll the page after reaching the end of an element along the y axis' ,
@@ -94,8 +85,6 @@ describe('scroll blocking', () => {
94
85
scroller . sendKeys ( Key . ARROW_DOWN ) ;
95
86
scroller . sendKeys ( Key . ARROW_DOWN ) ;
96
87
expect ( ( await getScrollPosition ( ) ) . y ) . toBe ( 100 , 'Expected the page not to have scrolled.' ) ;
97
-
98
- screenshot ( ) ;
99
88
} ) ;
100
89
101
90
it ( 'should not be able to scroll the page after reaching the end of an element along the x axis' ,
@@ -111,8 +100,6 @@ describe('scroll blocking', () => {
111
100
scroller . sendKeys ( Key . ARROW_RIGHT ) ;
112
101
scroller . sendKeys ( Key . ARROW_RIGHT ) ;
113
102
expect ( ( await getScrollPosition ( ) ) . x ) . toBe ( 100 , 'Expected the page not to have scrolled.' ) ;
114
-
115
- screenshot ( ) ;
116
103
} ) ;
117
104
} ) ;
118
105
0 commit comments