summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-10-24 20:57:50 +0200
committerMatija Čupić <matteeyah@gmail.com>2018-10-24 23:31:44 +0200
commit1a92af2868f6ef565d5730c2f2da3455bf576c9c (patch)
tree6085bc84692640c11b742482363c642f0ce3c924 /spec/features
parent4196583cf9315bffdebdfd802bd7a9efad63d692 (diff)
downloadgitlab-ce-1a92af2868f6ef565d5730c2f2da3455bf576c9c.tar.gz
Fix rspec error text regex
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/merge_request/user_sees_merge_widget_spec.rb2
-rw-r--r--spec/features/merge_request/user_sees_pipelines_spec.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/merge_request/user_sees_merge_widget_spec.rb b/spec/features/merge_request/user_sees_merge_widget_spec.rb
index 5ddad6167b7..8cc70cd83f7 100644
--- a/spec/features/merge_request/user_sees_merge_widget_spec.rb
+++ b/spec/features/merge_request/user_sees_merge_widget_spec.rb
@@ -174,7 +174,7 @@ describe 'Merge request > User sees merge widget', :js do
# Wait for the `ci_status` and `merge_check` requests
wait_for_requests
- expect(page).to have_text('Could not retrieve the pipeline status. For troubleshooting steps, read the <a href=\"\">documentation.</a>')
+ expect(page).to have_text(%r{Could not retrieve the pipeline status\. For troubleshooting steps, read the <a href=\".+\">documentation\.</a>})
end
end
diff --git a/spec/features/merge_request/user_sees_pipelines_spec.rb b/spec/features/merge_request/user_sees_pipelines_spec.rb
index 1ab07e8e0db..41f447fba95 100644
--- a/spec/features/merge_request/user_sees_pipelines_spec.rb
+++ b/spec/features/merge_request/user_sees_pipelines_spec.rb
@@ -41,8 +41,8 @@ describe 'Merge request > User sees pipelines', :js do
visit project_merge_request_path(project, merge_request)
wait_for_requests
- expect(page.find('.ci-widget')).to have_content(
- 'Could not retrieve the pipeline status. For potential solutions please read the documentation.')
+ expect(page.find('.ci-widget')).to have_text(
+ %r{Could not retrieve the pipeline status\. For troubleshooting steps, read the <a href=\".+\">documentation\.</a>})
end
end