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
fixed feature spec selector
Eric Schubert3e5cd88c9404
diff --git a/modules/bim/spec/support/pages/ifc_models/show_default.rb b/modules/bim/spec/support/pages/ifc_models/show_default.rbindex 50a6b0057d7..039eb59a506 100644--- a/modules/bim/spec/support/pages/ifc_models/show_default.rb+++ b/modules/bim/spec/support/pages/ifc_models/show_default.rb@@ -56,22 +56,22 @@ module Pagesdef model_viewer_visible(visible)# Ensure the canvas is presentcanvas_selector = '.op-ifc-viewer--model-canvas'- expect(page).to (visible ? have_selector(canvas_selector, wait: 10) : have_no_selector(canvas_selector, wait: 10))+ expect(page).to(visible ? have_selector(canvas_selector, wait: 10) : have_no_selector(canvas_selector, wait: 10))# Ensure Xeokit is initialized. Only then the toolbar is generated.toolbar_selector = '.xeokit-toolbar'- expect(page).to (visible ? have_selector(toolbar_selector, wait: 10) : have_no_selector(toolbar_selector, wait: 10))+ expect(page).to(visible ? have_selector(toolbar_selector, wait: 10) : have_no_selector(toolbar_selector, wait: 10))enddef model_viewer_shows_a_toolbar(visible)selector = '.xeokit-btn'if visible- within ('[data-qa-selector="op-ifc-viewer--toolbar"]') do+ within('[data-qa-selector="op-ifc-viewer--toolbar-container"]') doexpect(page).to have_selector(selector, count: 9)endelseexpect(page).to have_no_selector(selector)- expect(page).to have_no_selector('[data-qa-selector="op-ifc-viewer--toolbar"]')+ expect(page).to have_no_selector('[data-qa-selector="op-ifc-viewer--toolbar-container"]')endend