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
small cleanup overivew page update spec
Ivan Kuchin79314bed2e3c
diff --git a/spec/features/projects/project_custom_fields/overview_page/dialog/update_spec.rb b/spec/features/projects/project_custom_fields/overview_page/dialog/update_spec.rbindex 0b922c8e613..63b33297968 100644--- a/spec/features/projects/project_custom_fields/overview_page/dialog/update_spec.rb+++ b/spec/features/projects/project_custom_fields/overview_page/dialog/update_spec.rb@@ -38,7 +38,6 @@ RSpec.describe "Edit project custom fields on project overview page", :js dobefore dologin_as member_with_project_attributes_edit_permissions- overview_page.visit_pageenddescribe "with correct updating behaviour" do@@ -48,7 +47,7 @@ RSpec.describe "Edit project custom fields on project overview page", :js doshared_examples "a custom field checkbox" doit "sets the value to true if checked" do- custom_field.custom_values.destroy_all+ custom_field.custom_values.delete_alloverview_page.visit_page@@ -69,6 +68,8 @@ RSpec.describe "Edit project custom fields on project overview page", :js doendit "sets the value to false if unchecked" do+ overview_page.visit_page+overview_page.within_custom_field_container(custom_field) doexpect(page).to have_content "Yes"end@@ -86,6 +87,8 @@ RSpec.describe "Edit project custom fields on project overview page", :js doendit "does not change the value if untouched" do+ overview_page.visit_page+overview_page.within_custom_field_container(custom_field) doexpect(page).to have_content "Yes"end@@ -105,7 +108,7 @@ RSpec.describe "Edit project custom fields on project overview page", :js doshared_examples "a custom field input" doit "saves the value properly" do- custom_field.custom_values.destroy_all+ custom_field.custom_values.delete_alloverview_page.visit_page@@ -145,6 +148,8 @@ RSpec.describe "Edit project custom fields on project overview page", :js doendit "removes the value properly" do+ overview_page.visit_page+overview_page.within_custom_field_container(custom_field) doexpect(page).to have_content expected_initial_valueend@@ -202,6 +207,8 @@ RSpec.describe "Edit project custom fields on project overview page", :js doendit "blanks the value if referenced value gets removed" do+ overview_page.visit_page+overview_page.within_custom_field_container(calculated_value_custom_field) doexpect(page).to have_content expected_initial_calculated_valueend@@ -221,7 +228,7 @@ RSpec.describe "Edit project custom fields on project overview page", :js doshared_examples "a rich text custom field input" doit "saves the value properly" do- custom_field.custom_values.destroy_all+ custom_field.custom_values.delete_alloverview_page.visit_page@@ -261,6 +268,8 @@ RSpec.describe "Edit project custom fields on project overview page", :js doendit "removes the value properly" do+ overview_page.visit_page+overview_page.within_custom_field_container(custom_field) doexpect(page).to have_text(expected_initial_value)end@@ -366,7 +375,7 @@ RSpec.describe "Edit project custom fields on project overview page", :js doshared_examples "a select field" doit "saves the value properly" do- custom_field.custom_values.destroy_all+ custom_field.custom_values.delete_alloverview_page.visit_page@@ -407,6 +416,8 @@ RSpec.describe "Edit project custom fields on project overview page", :js doendit "removes the value properly" do+ overview_page.visit_page+overview_page.within_custom_field_container(custom_field) doexpect(page).to have_text first_optionend@@ -457,7 +468,7 @@ RSpec.describe "Edit project custom fields on project overview page", :js doendit "saves selected user group properly" do- custom_field.custom_values.destroy_all+ custom_field.custom_values.delete_alloverview_page.visit_page@@ -481,7 +492,7 @@ RSpec.describe "Edit project custom fields on project overview page", :js doendit "saves selected placeholer user properly" do- custom_field.custom_values.destroy_all+ custom_field.custom_values.delete_alloverview_page.visit_page@@ -506,7 +517,7 @@ RSpec.describe "Edit project custom fields on project overview page", :js doshared_examples "a autocomplete multi select field" doit "saves single selected values properly" do- custom_field.custom_values.destroy_all+ custom_field.custom_values.delete_alloverview_page.visit_page@@ -527,7 +538,7 @@ RSpec.describe "Edit project custom fields on project overview page", :js doendit "saves multi selected values properly" do- custom_field.custom_values.destroy_all+ custom_field.custom_values.delete_alloverview_page.visit_page@@ -551,6 +562,8 @@ RSpec.describe "Edit project custom fields on project overview page", :js doendit "removes deselected values properly" do+ overview_page.visit_page+overview_page.within_custom_field_container(custom_field) doexpect(page).to have_text first_optionexpect(page).to have_text second_option@@ -570,6 +583,8 @@ RSpec.describe "Edit project custom fields on project overview page", :js doendit "does not remove values when not touching the init values" do+ overview_page.visit_page+overview_page.within_custom_field_container(custom_field) doexpect(page).to have_text first_optionexpect(page).to have_text second_option@@ -590,6 +605,8 @@ RSpec.describe "Edit project custom fields on project overview page", :js doendit "removes all values when clearing the input" do+ overview_page.visit_page+overview_page.within_custom_field_container(custom_field) doexpect(page).to have_text first_optionexpect(page).to have_text second_option@@ -609,7 +626,7 @@ RSpec.describe "Edit project custom fields on project overview page", :js doendit "adds values properly to init values" do- custom_field.custom_values.destroy_all+ custom_field.custom_values.delete_alloverview_page.visit_page@@ -684,7 +701,7 @@ RSpec.describe "Edit project custom fields on project overview page", :js doendit "saves selected user groups properly" do- custom_field.custom_values.destroy_all+ custom_field.custom_values.delete_alloverview_page.visit_page@@ -714,7 +731,7 @@ RSpec.describe "Edit project custom fields on project overview page", :js doendit "shows only placeholder users from this project" do- custom_field.custom_values.destroy_all+ custom_field.custom_values.delete_alloverview_page.visit_page