From 017591cfb7b399b71c02c1704eae97ede6fa154a Mon Sep 17 00:00:00 2001 From: Dombi Attila <83396+dombesz@users.noreply.github.com> Date: Tue, 10 Feb 2026 14:19:14 +0200 Subject: [PATCH] Fix specs --- .../create_artifact_work_package_contract_spec.rb | 2 +- .../projects/settings/creation_wizard_submission_spec.rb | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/spec/contracts/projects/create_artifact_work_package_contract_spec.rb b/spec/contracts/projects/create_artifact_work_package_contract_spec.rb index 7facc2f7d06..54f6dd7e2c1 100644 --- a/spec/contracts/projects/create_artifact_work_package_contract_spec.rb +++ b/spec/contracts/projects/create_artifact_work_package_contract_spec.rb @@ -151,7 +151,7 @@ RSpec.describe Projects::CreateArtifactWorkPackageContract, :check_errors_i18n d project.update(project_creation_wizard_assignee_custom_field_id: nil) end - it_behaves_like "contract is invalid", project_creation_wizard_assignee_custom_field_id: :blank + it_behaves_like "contract is valid" end context "with project attribute pointed by 'Assignee when submitted' not set" do diff --git a/spec/features/projects/settings/creation_wizard_submission_spec.rb b/spec/features/projects/settings/creation_wizard_submission_spec.rb index 45546298d08..8029f52d470 100644 --- a/spec/features/projects/settings/creation_wizard_submission_spec.rb +++ b/spec/features/projects/settings/creation_wizard_submission_spec.rb @@ -117,15 +117,6 @@ RSpec.describe "Project creation wizard submission settings", :js do expect(page).to have_css(".ck-content", visible: :visible, count: 1) end - it "validates required fields" do - submission_page.visit! - - click_button "Save" - - expect(page).to have_text("Assignee when submitted can't be blank.") - expect(page).to have_current_path(project_settings_creation_wizard_path(project, tab: "submission")) - end - it "only shows single-select user custom fields in assignee dropdown" do submission_page.visit!