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
[#66411] updated ui test targets
Eric Schubert289c8d4a1904
diff --git a/spec/features/admin/custom_fields/work_packages/hierarchy_spec.rb b/spec/features/admin/custom_fields/work_packages/hierarchy_spec.rbindex 69b7b93875c..ad766542ee6 100644--- a/spec/features/admin/custom_fields/work_packages/hierarchy_spec.rb+++ b/spec/features/admin/custom_fields/work_packages/hierarchy_spec.rb@@ -87,8 +87,8 @@ RSpec.describe "work package custom fields of type hierarchy", :js dowithin("sub-header") { click_on "Item" }expect(page).not_to have_test_selector("op-custom-fields--hierarchy-items-blankslate")- fill_in "Label", with: "Stormtroopers"- fill_in "Short", with: "ST"+ fill_in "Item label", with: "Stormtroopers"+ fill_in "Short name", with: "ST"click_on "Save"expect(page).not_to have_test_selector("op-custom-fields--hierarchy-items-blankslate")expect(page).to have_test_selector("op-custom-fields--hierarchy-item", count: 1)@@ -99,14 +99,14 @@ RSpec.describe "work package custom fields of type hierarchy", :js doexpect(page).to have_test_selector("op-custom-fields--new-item-form")# Can I add the same item again?- fill_in "Label", with: "Stormtroopers"+ fill_in "Item label", with: "Stormtroopers"click_on "Save"within_test_selector("op-custom-fields--new-item-form") doexpect(page).to have_css(".FormControl-inlineValidation", text: "Label must be unique within the same hierarchy level")end# Is the form cancelable?- fill_in "Label", with: "Dark Troopers"+ fill_in "Item label", with: "Dark Troopers"click_on "Cancel"expect(page).not_to have_test_selector("op-custom-fields--new-item-form")expect(page).to have_test_selector("op-custom-fields--hierarchy-item", count: 1)@@ -118,7 +118,7 @@ RSpec.describe "work package custom fields of type hierarchy", :js do# What happens if I added a wrong item?click_on "Item"- fill_in "Label", with: "Phoenix Squad"+ fill_in "Item label", with: "Phoenix Squad"click_on "Save"expect(page).to have_test_selector("op-custom-fields--hierarchy-item", count: 2)expect(page).to have_test_selector("op-custom-fields--hierarchy-item", text: "Phoenix Squad")@@ -178,8 +178,8 @@ RSpec.describe "work package custom fields of type hierarchy", :js doclick_on "Add sub-item"expect(page).to have_test_selector("op-custom-fields--new-item-form")- fill_in "Label", with: "Snowtroopers"- fill_in "Short", with: "SnT"+ fill_in "Item label", with: "Snowtroopers"+ fill_in "Short name", with: "SnT"click_on "Save"expect(page).to have_test_selector("op-custom-fields--hierarchy-item", count: 1)