Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/issuables/markdown_references/internal_references_spec.rb')
-rw-r--r--spec/features/issuables/markdown_references/internal_references_spec.rb15
1 files changed, 4 insertions, 11 deletions
diff --git a/spec/features/issuables/markdown_references/internal_references_spec.rb b/spec/features/issuables/markdown_references/internal_references_spec.rb
index 07d4271eed7..2dcabb38b8f 100644
--- a/spec/features/issuables/markdown_references/internal_references_spec.rb
+++ b/spec/features/issuables/markdown_references/internal_references_spec.rb
@@ -53,9 +53,7 @@ RSpec.describe "Internal references", :js do
end
it "doesn't show any references", quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/257832' do
- page.within(".issue-details") do
- expect(page).not_to have_content("#merge-requests .merge-requests-title")
- end
+ expect(page).not_to have_text 'Related merge requests'
end
end
@@ -65,12 +63,9 @@ RSpec.describe "Internal references", :js do
end
it "shows references", :sidekiq_might_not_need_inline do
- page.within("#merge-requests .merge-requests-title") do
- expect(page).to have_content("Related merge requests")
- expect(page).to have_css(".mr-count-badge")
- end
+ expect(page).to have_text 'Related merge requests 1'
- page.within("#merge-requests ul") do
+ page.within('.related-items-list') do
expect(page).to have_content(private_project_merge_request.title)
expect(page).to have_css(".ic-issue-open-m")
end
@@ -122,9 +117,7 @@ RSpec.describe "Internal references", :js do
end
it "doesn't show any references", quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/257832' do
- page.within(".merge-request-details") do
- expect(page).not_to have_content("#merge-requests .merge-requests-title")
- end
+ expect(page).not_to have_text 'Related merge requests'
end
end