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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Remove redundant specs
Kabiru Mwenja64fa080d3f65
diff --git a/spec/features/activities/work_package/activities_spec.rb b/spec/features/activities/work_package/activities_spec.rbindex 80801d5c147..b12b6552734 100644--- a/spec/features/activities/work_package/activities_spec.rb+++ b/spec/features/activities/work_package/activities_spec.rb@@ -1205,33 +1205,6 @@ RSpec.describe "Work package activity", :js, :with_cuprite doendend- describe "images in the comment",- :js,- :selenium,- with_settings: { journal_aggregation_time_minutes: 0, show_work_package_attachments: false } do- let(:work_package) { create(:work_package, project:, author: admin) }- let(:image_fixture) { UploadedFile.load_from("spec/fixtures/files/image.png") }- let(:editor) { Components::WysiwygEditor.new }-- context "if work package attachments are deactivated in project" do- it "shows the inline image and have it uploaded to the work package" do- login_as admin-- wp_page.visit!- wp_page.wait_for_activity_tab-- page.find_test_selector("op-open-work-package-journal-form-trigger").click- editor.drag_attachment(image_fixture.path, "", scroll: false)- editor.wait_until_upload_progress_toaster_cleared-- page.find_test_selector("op-submit-work-package-journal-form").click-- expect(find_test_selector("op-journal-notes-body")).to have_css("img")- expect(page).to have_test_selector("op-journal-detail-description", text: "File image.png added as attachment")- end- end- end-describe "retracted journal entries" dolet(:work_package) { create(:work_package, project:, author: admin) }let!(:first_comment_by_admin) dodiff --git a/spec/features/work_packages/attachments/attachment_upload_spec.rb b/spec/features/work_packages/attachments/attachment_upload_spec.rbindex fa1c220cb93..3869024d537 100644--- a/spec/features/work_packages/attachments/attachment_upload_spec.rb+++ b/spec/features/work_packages/attachments/attachment_upload_spec.rb@@ -77,47 +77,6 @@ RSpec.describe "Upload attachment to work package", :js, :selenium doexpect(field.display_element).to have_css("img")expect(field.display_element).to have_content("Some image caption")end-- context "when editing comment" do- context "with a user that is not allowed to add images (Regression #28541)" do- let(:role) do- create(:project_role,- permissions: %i[view_work_packages add_work_packages add_work_package_notes])- end-- it "can open the editor to add an image, but image upload is not shown" do- # Add comment- activity_tab.open_new_comment_editor-- # Button should be hidden- activity_tab.ckeditor.expect_no_button "Upload image from computer"-- activity_tab.ckeditor.click_and_type_slowly "this is a comment!1"- activity_tab.submit_comment-- activity_tab.expect_journal_notes text: "this is a comment!1"- end- end-- context "with a user that is allowed add attachments but not edit WP (#29203)" do- let(:role) do- create(:project_role,- permissions: %i[view_work_packages add_work_package_attachments add_work_package_notes])- end-- it "can open the editor and image upload is shown" do- activity_tab.open_new_comment_editor-- activity_tab.ckeditor.expect_button "Upload image from computer"-- activity_tab.ckeditor.click_and_type_slowly "this is a comment!2"- activity_tab.ckeditor.drag_attachment image_fixture.path, "Some image caption"- activity_tab.submit_comment-- activity_tab.expect_journal_notes text: "this is a comment!2"- end- end- endendcontext "when on a split page" do