@@ -43,7 +43,7 @@ describe('Clusters', () => {
4343 ) ;
4444
4545 cy . visit ( '/clusters' ) ;
46- cy . viewport ( 1440 , 1080 ) ;
46+ cy . viewport ( 1440 , 1480 ) ;
4747 } ) ;
4848
4949 describe ( 'when data is loaded' , ( ) => {
@@ -86,7 +86,7 @@ describe('Clusters', () => {
8686 cy . get ( '#default-cluster-1' )
8787 . should ( 'be.visible' )
8888 . and ( 'contain' , 'Default' )
89- . and ( 'have.css' , 'background-color' , 'rgb(46, 143, 121 )' ) ;
89+ . and ( 'have.css' , 'background-color' , 'rgb(31, 125, 83 )' ) ;
9090
9191 // Show cluster name.
9292 cy . get ( '#cluster-name-1' ) . should ( 'be.visible' ) . and ( 'contain' , 'cluster-1' ) ;
@@ -108,7 +108,7 @@ describe('Clusters', () => {
108108 cy . get ( '#default-cluster-2' )
109109 . should ( 'be.visible' )
110110 . and ( 'contain' , 'Non-Default' )
111- . and ( 'have.css' , 'background-color' , 'rgb(28, 41, 58 )' ) ;
111+ . and ( 'have.css' , 'background-color' , 'rgb(24, 35, 15 )' ) ;
112112 } ) ;
113113 } ) ;
114114
@@ -183,8 +183,6 @@ describe('Clusters', () => {
183183
184184 describe ( 'pagination' , ( ) => {
185185 it ( 'pagination updates results and page number' , ( ) => {
186- cy . get ( '.Mui-selected' ) . invoke ( 'text' ) . should ( 'eq' , 'Cluster1' ) ;
187-
188186 // Check number of pagination.
189187 cy . get ( '#clusterPagination > .MuiPagination-ul' ) . children ( ) . should ( 'have.length' , 7 ) ;
190188
@@ -193,8 +191,6 @@ describe('Clusters', () => {
193191 } ) ;
194192
195193 it ( 'when pagination changes, different page results are rendered' , ( ) => {
196- cy . get ( '.Mui-selected' ) . invoke ( 'text' ) . should ( 'eq' , 'Cluster1' ) ;
197-
198194 // Go to last page.
199195 cy . get ( '.MuiPagination-ul > :nth-child(3) > .MuiButtonBase-root' ) . click ( ) ;
200196
@@ -205,7 +201,7 @@ describe('Clusters', () => {
205201 cy . get ( '#default-cluster-8' )
206202 . should ( 'be.visible' )
207203 . and ( 'contain' , 'Non-Default' )
208- . and ( 'have.css' , 'background-color' , 'rgb(28, 41, 58 )' ) ;
204+ . and ( 'have.css' , 'background-color' , 'rgb(24, 35, 15 )' ) ;
209205
210206 cy . get ( '#cluster-name-8' ) . should ( 'be.visible' ) . and ( 'contain' , 'cluster-8' ) ;
211207
@@ -268,7 +264,7 @@ describe('Clusters', () => {
268264
269265 cy . get ( '#clusterPagination > .MuiPagination-ul .Mui-selected' ) . should ( 'have.text' , '5' ) ;
270266
271- cy . get ( '#clusters ' ) . children ( ) . should ( 'have.length' , 1 ) ;
267+ cy . get ( '#clustersCard ' ) . children ( ) . should ( 'have.length' , 1 ) ;
272268
273269 cy . get ( '#cluster-name-37' ) . should ( 'have.text' , 'cluster-37' ) ;
274270
@@ -384,7 +380,7 @@ describe('Clusters', () => {
384380 cy . get ( '#free-solo-demo' ) . type ( 'cluster-47' ) ;
385381
386382 // No clusters card.
387- cy . get ( '#clusters ' ) . should ( 'not.exist' ) ;
383+ cy . get ( '#clustersCard ' ) . should ( 'not.exist' ) ;
388384
389385 // Pagination has been hidden.
390386 cy . get ( '#clusterPagination > .MuiPagination-ul' ) . should ( 'not.exist' ) ;
0 commit comments