Skip to content

Commit

Permalink
Add Regex to check the cluster status
Browse files Browse the repository at this point in the history
  • Loading branch information
juadk committed Nov 13, 2024
1 parent e3f3970 commit 7918eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function checkClusterStatus(clusterName, clusterStatus, timeout) {
cy.contains('Home')
.click();
// The new cluster must be in active state
cy.contains(clusterStatus + ' ' + clusterName, {timeout: timeout});
cy.contains(new RegExp(clusterStatus+'.*'+clusterName), {timeout: timeout});
};

/**
Expand Down

0 comments on commit 7918eb7

Please sign in to comment.