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

Replace spec with nbsp

Oliver Güntherc05969dc90d7
diff --git a/spec/features/wysiwyg/non_breaking_spaces_spec.rb b/spec/features/wysiwyg/non_breaking_spaces_spec.rb
index efd297d1247..78a87fedcea 100644
--- a/spec/features/wysiwyg/non_breaking_spaces_spec.rb
+++ b/spec/features/wysiwyg/non_breaking_spaces_spec.rb
@@ -55,7 +55,9 @@ describe 'Wysiwyg   behavior',
expect(page).to have_selector('.flash.notice')
within('#content') do
- expect(page).to have_selector('p', text: 'some text with bold')
+ expect(page).to have_selector('p') do |node|
+ node.text.include?('some text') && node.text.include?('with bold')
+ end
expect(page).to have_selector('strong', text: 'with bold')
end
end