@@ -10,17 +10,16 @@ test.describe('multi-cluster setup', () => {
1010 headlampPage = new HeadlampPage ( page ) ;
1111
1212 await headlampPage . navigateTopage ( '/' , / C h o o s e a c l u s t e r / ) ;
13- await expect ( page . locator ( 'h1:has-text("Home")' ) ) . toBeVisible ( ) ;
14- await expect ( page . locator ( 'h2:has-text("All Clusters")' ) ) . toBeVisible ( ) ;
13+ await expect ( page . locator ( 'h1:has-text("All Clusters")' ) ) . toBeVisible ( ) ;
1514 } ) ;
1615
1716 test ( "home page should display two cluster selection buttons labeled 'test' and 'test2'" , async ( {
1817 page,
1918 } ) => {
20- const buttons = page . locator ( 'button p ' ) ;
19+ const buttons = page . locator ( 'td a ' ) ;
2120 await expect ( buttons ) . toHaveCount ( 2 ) ;
22- await expect ( page . locator ( 'button p ' , { hasText : / ^ t e s t $ / } ) ) . toBeVisible ( ) ;
23- await expect ( page . locator ( 'button p ' , { hasText : / ^ t e s t 2 $ / } ) ) . toBeVisible ( ) ;
21+ await expect ( page . locator ( 'td a ' , { hasText : / ^ t e s t $ / } ) ) . toBeVisible ( ) ;
22+ await expect ( page . locator ( 'td a ' , { hasText : / ^ t e s t 2 $ / } ) ) . toBeVisible ( ) ;
2423 } ) ;
2524
2625 test ( 'home page should display a table containing exactly two rows, each representing a cluster entry' , async ( {
@@ -48,7 +47,8 @@ test.describe('multi-cluster setup', () => {
4847 const clusterRow = clusterAnchor . locator ( '../../..' ) ;
4948
5049 const clusterStatus = clusterRow . locator ( 'td' ) . nth ( 2 ) . locator ( 'p' ) ;
51- await expect ( clusterStatus ) . toHaveText ( 'Active' ) ;
50+ await expect ( clusterStatus ) . toBeVisible ( ) ;
51+ await expect ( clusterStatus ) . toHaveText ( / A c t i v e | P l u g i n / ) ;
5252 }
5353 } ) ;
5454
0 commit comments