@@ -7,10 +7,6 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Scroll through document',
7
7
8
8
beforeEach ( function ( ) {
9
9
helper . setupAndLoadDocument ( 'writer/scrolling.odt' ) ;
10
- desktopHelper . switchUIToCompact ( ) ;
11
-
12
- cy . cGet ( '#toolbar-up .ui-scroll-right' ) . click ( ) ;
13
- cy . cGet ( '#sidebar' ) . click ( { force : true } ) ;
14
10
} ) ;
15
11
16
12
it ( 'Check if we jump the view on new page insertion' , function ( ) {
@@ -25,11 +21,12 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Scroll through document',
25
21
} ) ;
26
22
27
23
it ( 'Scrolling to bottom/top' , function ( ) {
28
- desktopHelper . selectZoomLevel ( '40' , false ) ;
24
+ desktopHelper . selectZoomLevel ( '40' ) ;
25
+
29
26
helper . typeIntoDocument ( '{ctrl}{home}' ) ;
30
27
//scroll to bottom
31
28
desktopHelper . assertVisiblePage ( 1 , 1 , 4 ) ;
32
- desktopHelper . pressKey ( 1 , 'pagedown' ) ;
29
+ desktopHelper . pressKey ( 2 , 'pagedown' ) ;
33
30
desktopHelper . assertVisiblePage ( 2 , 2 , 4 ) ;
34
31
desktopHelper . pressKey ( 1 , 'pagedown' ) ;
35
32
desktopHelper . assertVisiblePage ( 3 , 3 , 4 ) ;
@@ -45,22 +42,25 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Scroll through document',
45
42
} ) ;
46
43
47
44
it ( 'Scrolling to left/right' , function ( ) {
48
- cy . cGet ( '#toolbar-down' ) . click ( ) ;
49
- desktopHelper . selectZoomLevel ( '200' , false ) ;
45
+ desktopHelper . selectZoomLevel ( '200' ) ;
50
46
//show horizontal scrollbar
51
47
cy . cGet ( '.leaflet-layer' ) . click ( 'bottom' ) ;
52
48
cy . wait ( 1000 ) ;
49
+ desktopHelper . assertScrollbarPosition ( 'horizontal' , 0 , 270 )
50
+ ;
53
51
helper . typeIntoDocument ( '{home}{end}{home}' ) ;
54
52
cy . wait ( 1000 ) ;
55
- cy . cGet ( '#test-div-horizontal-scrollbar' ) . should ( 'have.text' , '0' ) ;
53
+ desktopHelper . assertScrollbarPosition ( 'horizontal' , 0 , 270 ) ;
54
+
56
55
helper . typeIntoDocument ( '{end}{home}{end}' ) ;
56
+ cy . wait ( 1000 ) ;
57
57
desktopHelper . assertScrollbarPosition ( 'horizontal' , 430 , 653 ) ;
58
58
} ) ;
59
59
60
60
it ( 'Check if we jump the view on change of formatting mark' , function ( ) {
61
61
desktopHelper . switchUIToNotebookbar ( ) ;
62
+ desktopHelper . selectZoomLevel ( '40' ) ;
62
63
63
- desktopHelper . selectZoomLevel ( '40' , false ) ;
64
64
helper . typeIntoDocument ( '{ctrl}{home}' ) ;
65
65
desktopHelper . pressKey ( 2 , 'pagedown' ) ;
66
66
desktopHelper . pressKey ( 1 , 'pagedown' ) ;
0 commit comments