@@ -59,36 +59,24 @@ describe('Diverse', () => {
59
59
60
60
it ( 'Paginering' , ( ) => {
61
61
cy . gaTilOversikt ( 'min-oversikt' ) ;
62
- cy . getByTestId ( 'paginering_venstre' ) . should ( 'be.disabled' ) ;
63
- cy . getByTestId ( 'paginering_hoyre' ) . should ( 'be.enabled' ) ;
64
- cy . getByTestId ( 'paginering-tall_3' ) . should ( 'be.visible' ) ;
65
62
cy . get ( '.brukerliste' )
66
63
. children ( )
67
64
. should ( 'have.length' , 50 ) ;
65
+ cy . getByTestId ( 'paginering' ) . children ( ) . children ( ) . should ( 'have.length' , 5 ) ;
66
+ cy . getByTestId ( 'paginering' ) . children ( ) . children ( ) . last ( ) . click ( ) . click ( ) ;
67
+ cy . get ( '.brukerliste' )
68
+ . children ( )
69
+ . should ( 'have.length' , 23 ) ;
68
70
cy . getByTestId ( 'se-flere_knapp' )
69
71
. should ( 'be.visible' )
70
72
. click ( ) ;
71
73
cy . wait ( 1000 ) ;
72
- cy . getByTestId ( 'paginering-tall_3' ) . should ( 'not.exist' ) ;
73
74
cy . get ( '.brukerliste' )
74
75
. children ( )
75
76
. should ( 'have.length' , 123 ) ;
76
- cy . getByTestId ( 'paginering_venstre' ) . should ( 'be.disabled' ) ;
77
- cy . getByTestId ( 'paginering_hoyre' ) . should ( 'be.disabled' ) ;
78
77
cy . getByTestId ( 'se-faerre_knapp' )
79
78
. should ( 'be.visible' )
80
79
. click ( ) ;
81
- cy . getByTestId ( 'paginering-tall_2' ) . should ( 'not.exist' ) ;
82
- cy . getByTestId ( 'paginering_venstre' ) . should ( 'be.disabled' ) ;
83
- cy . getByTestId ( 'paginering_hoyre' )
84
- . should ( 'be.enabled' )
85
- . click ( ) ;
86
- cy . getByTestId ( 'paginering-tall_2' ) . should ( 'be.visible' ) ;
87
- cy . getByTestId ( 'paginering-tall_1' )
88
- . should ( 'be.visible' )
89
- . click ( ) ;
90
- cy . getByTestId ( 'paginering_venstre' ) . should ( 'be.disabled' ) ;
91
- cy . getByTestId ( 'paginering_hoyre' ) . should ( 'be.enabled' ) ;
92
80
cy . gaTilOversikt ( 'enhetens-oversikt' ) ;
93
81
} ) ;
94
82
0 commit comments