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
chore[#51279] Add tests for breadcrumbs in new and edit custom fields
Dominic Bräunleinf6f47009b1f6
diff --git a/spec/features/custom_fields/custom_fields_spec.rb b/spec/features/custom_fields/custom_fields_spec.rbindex 51e92971d18..337959d3e62 100644--- a/spec/features/custom_fields/custom_fields_spec.rb+++ b/spec/features/custom_fields/custom_fields_spec.rb@@ -152,6 +152,18 @@ RSpec.describe 'custom fields', js: true, with_cuprite: true dolabel_min_length, label_max_length, label_regexp,label_possible_values, label_default_value)end++ it "shows the correct breadcrumbs" do+ cf_page.visit_tab type++ click_on "Create a new custom field"+ wait_for_reload++ page.within_test_selector('op-breadcrumb') do+ expect(page).to have_selector('.breadcrumb-item', text: type)+ expect(page).to have_selector('.breadcrumb-item.breadcrumb-item-selected', text: "New custom field")+ end+ endenddescribe 'projects' do@@ -247,6 +259,13 @@ RSpec.describe 'custom fields', js: true, with_cuprite: true doexpect(page).to have_field("custom_field_custom_options_attributes_3_default_value", checked: true)end+ it "shows the correct breadcrumbs" do+ page.within_test_selector('op-breadcrumb') do+ expect(page).to have_selector('.breadcrumb-item', text: "Work packages")+ expect(page).to have_selector('.breadcrumb-item.breadcrumb-item-selected', text: "Platform")+ end+ end+context "with work packages using the options" dobefore docreate_list(