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

Fix changed button name

Oliver Günther7dfa9fe6cfe4
diff --git a/modules/meeting/spec/features/meetings_attachments_spec.rb b/modules/meeting/spec/features/meetings_attachments_spec.rb
index e1ed93526f3..e628b662d8e 100644
--- a/modules/meeting/spec/features/meetings_attachments_spec.rb
+++ b/modules/meeting/spec/features/meetings_attachments_spec.rb
@@ -41,7 +41,7 @@ RSpec.describe 'Add an attachment to a meeting (agenda)', :js, with_cuprite: fal
it 'can upload an image via drag & drop' do
find('.ck-content')
- editor.expect_button 'Insert image'
+ editor.expect_button 'Upload image from computer'
editor.drag_attachment image_fixture.path, 'Some image caption'
diff --git a/spec/features/work_packages/attachments/attachment_upload_spec.rb b/spec/features/work_packages/attachments/attachment_upload_spec.rb
index 479a0ddbfb4..274ba35ff1e 100644
--- a/spec/features/work_packages/attachments/attachment_upload_spec.rb
+++ b/spec/features/work_packages/attachments/attachment_upload_spec.rb
@@ -65,7 +65,7 @@ RSpec.describe 'Upload attachment to work package', :js, :with_cuprite do
# Activate the edit field
field.activate!
- editor.expect_button 'Insert image'
+ editor.expect_button 'Upload image from computer'
editor.drag_attachment image_fixture.path, 'Some image caption'
@@ -95,7 +95,7 @@ RSpec.describe 'Upload attachment to work package', :js, :with_cuprite do
comment_field.activate!
# Button should be hidden
- editor.expect_no_button 'Insert image'
+ editor.expect_no_button 'Upload image from computer'
editor.click_and_type_slowly 'this is a comment!1'
comment_field.submit_by_click
@@ -113,7 +113,7 @@ RSpec.describe 'Upload attachment to work package', :js, :with_cuprite do
it 'can open the editor and image upload is shown' do
comment_field.activate!
- editor.expect_button 'Insert image'
+ editor.expect_button 'Upload image from computer'
editor.click_and_type_slowly 'this is a comment!2'
editor.drag_attachment image_fixture.path, 'Some image caption'