mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Fix specs
This commit is contained in:
@@ -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!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user