Fix specs

This commit is contained in:
Dombi Attila
2026-02-10 14:19:14 +02:00
parent c8665b74d4
commit 017591cfb7
2 changed files with 1 additions and 10 deletions
@@ -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
@@ -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!