Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

tests[Op#53117]: fixup ambiguos class name, just assert against text

Kabiru Mwenja69ab47f243f2
diff --git a/modules/gitlab_integration/spec/features/work_package_gitlab_tab_spec.rb b/modules/gitlab_integration/spec/features/work_package_gitlab_tab_spec.rb
index ce8505b944a..dc9d8f35015 100644
--- a/modules/gitlab_integration/spec/features/work_package_gitlab_tab_spec.rb
+++ b/modules/gitlab_integration/spec/features/work_package_gitlab_tab_spec.rb
@@ -89,15 +89,11 @@ RSpec.describe 'Open the Gitlab tab', :js do
expect(page).to have_text('Copied!')
expect_clipboard_content("#{work_package.type.name.downcase}/#{work_package.id}-a-test-work_package")
- within('.op-issue') do
- expect(page).to have_text('A Test Issue title')
- expect(page).to have_text('Open')
- end
+ expect(page).to have_text('A Test Issue title')
+ expect(page).to have_text('Open')
- within('.op-merge-request') do
- expect(page).to have_text('A Test MR title')
- expect(page).to have_text('Pending')
- end
+ expect(page).to have_text('A Test MR title')
+ expect(page).to have_text('Pending')
end
context 'when there are no merge requests or issues' do