11import { browser , Key , element , by } from 'protractor' ;
2- import { screenshot } from '../screenshot' ;
32import { getScrollPosition } from '../util/index' ;
43
54
@@ -18,8 +17,6 @@ describe('scroll blocking', () => {
1817 clickOn ( 'disable' ) ;
1918 scrollPage ( 0 , 300 ) ;
2019 expect ( ( await getScrollPosition ( ) ) . y ) . toBe ( 300 , 'Exected page to be scrollable again.' ) ;
21-
22- screenshot ( ) ;
2320 } ) ;
2421
2522 it ( 'should not be able to scroll programmatically along the y axis' , async ( ) => {
@@ -33,8 +30,6 @@ describe('scroll blocking', () => {
3330 clickOn ( 'disable' ) ;
3431 scrollPage ( 300 , 0 ) ;
3532 expect ( ( await getScrollPosition ( ) ) . x ) . toBe ( 300 , 'Exected page to be scrollable again.' ) ;
36-
37- screenshot ( ) ;
3833 } ) ;
3934
4035 it ( 'should not be able to scroll via the keyboard along the y axis' , async ( ) => {
@@ -55,8 +50,6 @@ describe('scroll blocking', () => {
5550 await body . sendKeys ( Key . ARROW_DOWN ) ;
5651 expect ( ( await getScrollPosition ( ) ) . y )
5752 . toBeGreaterThan ( 100 , 'Expected the page to be scrollable again.' ) ;
58-
59- screenshot ( ) ;
6053 } ) ;
6154
6255 it ( 'should not be able to scroll via the keyboard along the x axis' , async ( ) => {
@@ -77,8 +70,6 @@ describe('scroll blocking', () => {
7770 await body . sendKeys ( Key . ARROW_RIGHT ) ;
7871 expect ( ( await getScrollPosition ( ) ) . x )
7972 . toBeGreaterThan ( 100 , 'Expected the page to be scrollable again.' ) ;
80-
81- screenshot ( ) ;
8273 } ) ;
8374
8475 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', () => {
9485 scroller . sendKeys ( Key . ARROW_DOWN ) ;
9586 scroller . sendKeys ( Key . ARROW_DOWN ) ;
9687 expect ( ( await getScrollPosition ( ) ) . y ) . toBe ( 100 , 'Expected the page not to have scrolled.' ) ;
97-
98- screenshot ( ) ;
9988 } ) ;
10089
10190 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', () => {
111100 scroller . sendKeys ( Key . ARROW_RIGHT ) ;
112101 scroller . sendKeys ( Key . ARROW_RIGHT ) ;
113102 expect ( ( await getScrollPosition ( ) ) . x ) . toBe ( 100 , 'Expected the page not to have scrolled.' ) ;
114-
115- screenshot ( ) ;
116103 } ) ;
117104} ) ;
118105
0 commit comments