Skip to content

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

fixed specs due to primer updates

Jonas Jabari00841bed7e7d
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.rb
index ad32844d47c..1de553dc71b 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
@@ -313,6 +313,7 @@ RSpec.describe 'Edit project custom fields on project overview page', :js do
overview_page.open_edit_dialog_for_section(section)
+ field.expect_selected(first_option, second_option) # wait for proper initialization
# don't touch the input
dialog.submit
@@ -494,6 +495,7 @@ RSpec.describe 'Edit project custom fields on project overview page', :js do
overview_page.open_edit_dialog_for_section(section)
+ field.expect_selected(first_option, second_option) # wait for proper initialization
# don't touch the values
dialog.submit
@@ -527,6 +529,8 @@ RSpec.describe 'Edit project custom fields on project overview page', :js do
it 'adds values properly to init values' do
custom_field.custom_values.last.destroy
+ overview_page.visit_page
+
overview_page.within_custom_field_container(custom_field) do
expect(page).to have_text first_option
expect(page).to have_no_text second_option
diff --git a/spec/features/projects/project_custom_fields/overview_page/sidebar_spec.rb b/spec/features/projects/project_custom_fields/overview_page/sidebar_spec.rb
index a4afafe2a8d..c07ad169e49 100644
--- a/spec/features/projects/project_custom_fields/overview_page/sidebar_spec.rb
+++ b/spec/features/projects/project_custom_fields/overview_page/sidebar_spec.rb
@@ -519,7 +519,7 @@ RSpec.describe 'Show project custom fields on project overview page', :js, :with
click_on 'Expand'
- within 'modal-dialog' do
+ within 'dialog' do
expect(page).to have_text 'a' * 101
end
end
diff --git a/spec/support/components/projects/project_custom_fields/edit_dialog.rb b/spec/support/components/projects/project_custom_fields/edit_dialog.rb
index 26fb876e4a2..3db7c11bbb0 100644
--- a/spec/support/components/projects/project_custom_fields/edit_dialog.rb
+++ b/spec/support/components/projects/project_custom_fields/edit_dialog.rb
@@ -46,7 +46,7 @@ module Components
end
def dialog_css_selector
- "modal-dialog#edit-project-custom-fields-dialog-#{@project_custom_field_section.id}"
+ "dialog#edit-project-custom-fields-dialog-#{@project_custom_field_section.id}"
end
def async_content_container_css_selector