From d02bfb4b6bea535ca4418e453ea7a77a791fc38d Mon Sep 17 00:00:00 2001 From: mpiotrowski1 <60257141+mpiotrowski1@users.noreply.github.com> Date: Fri, 14 Feb 2020 12:30:25 +0100 Subject: [PATCH] Regexp fix for Jenkins job automation test (locale) (#252) --- functional/cypress-tests/cypress/support/widgetAssertions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functional/cypress-tests/cypress/support/widgetAssertions.js b/functional/cypress-tests/cypress/support/widgetAssertions.js index 7999514ce..777a6ebf4 100644 --- a/functional/cypress-tests/cypress/support/widgetAssertions.js +++ b/functional/cypress-tests/cypress/support/widgetAssertions.js @@ -52,7 +52,10 @@ export function validateIframeEmbed(widget) { export function validateJenkinsJob(widget) { widget .assertText('p', 'master-branch') - .assertText('p', /[0-9]{2}.[0-9]{2}.[0-9]{4}, [0-9]{2}:[0-9]{2}:[0-9]{2}/) + .assertText( + 'p', + /[0-9]{2}[.|/][0-9]{2}[.|/][0-9]{4}, [0-9][0-9]?:[0-9]{2}:[0-9]{2}/ + ) .assertText('p', '0.25 [s]') .assertText('span', '#6') .progressVisible();