diff options
Diffstat (limited to 'server/sonar-web/src/main/js/components/tutorials/test-utils.ts')
-rw-r--r-- | server/sonar-web/src/main/js/components/tutorials/test-utils.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/components/tutorials/test-utils.ts b/server/sonar-web/src/main/js/components/tutorials/test-utils.ts index aee023dcbeb..f46255e766c 100644 --- a/server/sonar-web/src/main/js/components/tutorials/test-utils.ts +++ b/server/sonar-web/src/main/js/components/tutorials/test-utils.ts @@ -71,9 +71,11 @@ export function getCommonNodes(ci: TutorialModes) { expiresInSelect: byRole('combobox', { name: '' }), tokenValue: byText('generatedtoken2'), linkToRepo: byRole('link', { - name: `onboarding.tutorial.with.${CI_TRANSLATE_MAP[ci]}.${ - ci === TutorialModes.GitHubActions ? 'secret' : 'variables' - }.intro.link`, + name: new RegExp( + `onboarding.tutorial.with.${CI_TRANSLATE_MAP[ci]}.${ + ci === TutorialModes.GitHubActions ? 'secret' : 'variables' + }.intro.link`, + ), }), allSetSentence: byText('onboarding.tutorial.ci_outro.done'), }; |