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

send meta key to have spec also work on mac

ulferts75db9dc4a14e
diff --git a/spec/features/wysiwyg/non_breaking_spaces_spec.rb b/spec/features/wysiwyg/non_breaking_spaces_spec.rb
index 26a1c0d8f87..75b79b3ebe4 100644
--- a/spec/features/wysiwyg/non_breaking_spaces_spec.rb
+++ b/spec/features/wysiwyg/non_breaking_spaces_spec.rb
@@ -28,18 +28,14 @@
require 'spec_helper'
-RSpec.describe 'Wysiwyg   behavior',
- js: true do
- shared_let(:admin) { create(:admin) }
- let(:user) { admin }
+RSpec.describe 'Wysiwyg bold behavior',
+ js: true,
+ with_cuprite: true do
+ current_user { create(:admin) }
let(:project) { create(:project, enabled_module_names: %w[wiki]) }
let(:editor) { Components::WysiwygEditor.new }
- before do
- login_as(user)
- end
-
describe 'in wikis' do
describe 'creating a wiki page' do
before do
@@ -47,7 +43,7 @@ RSpec.describe 'Wysiwyg   behavior',
end
it 'can insert strong formatting with nbsp' do
- editor.click_and_type_slowly 'some text ', [:control, 'b'], 'with bold'
+ editor.click_and_type_slowly 'some text ', [:meta, 'b'], 'with bold'
# Save wiki page
click_on 'Save'