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

amend path expectations

ulfertsa9f4a9e66b41
diff --git a/modules/ifc_models/spec/support/pages/ifc_models/index.rb b/modules/ifc_models/spec/support/pages/ifc_models/index.rb
index 098cda79958..723be78377e 100644
--- a/modules/ifc_models/spec/support/pages/ifc_models/index.rb
+++ b/modules/ifc_models/spec/support/pages/ifc_models/index.rb
@@ -96,8 +96,9 @@ module Pages
def show_model(model)
click_model_link model.title
+ # The extra slash is required for angular
expect_correct_page_loaded '.ifc-model-viewer--container',
- ifc_models_project_ifc_model_path(project, model)
+ ifc_models_project_ifc_model_path(project, model) + '/'
visit!
end
@@ -105,8 +106,9 @@ module Pages
def show_defaults
click_toolbar_button 'Show defaults'
+ # The extra slash is required for angular
expect_correct_page_loaded '.ifc-model-viewer--container',
- defaults_ifc_models_project_ifc_models_path(project)
+ defaults_ifc_models_project_ifc_models_path(project) + '/'
visit!
end
@@ -140,8 +142,7 @@ module Pages
def expect_correct_page_loaded(checked_selector, path)
expect(page).to have_selector(checked_selector)
- # Angular will append a slash to the path
- expect(current_path).to eql path + '/'
+ expect(current_path).to eql path
end
def change_model_name(model_name, new_name)