From 7918eb7ec8940d998f70d1c88aa2288fb79f0c96 Mon Sep 17 00:00:00 2001 From: Julien ADAMEK Date: Wed, 13 Nov 2024 09:58:30 +0100 Subject: [PATCH] Add Regex to check the cluster status --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index f31c72b..de471c9 100644 --- a/index.ts +++ b/index.ts @@ -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}); }; /**