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

resolve errors

bsatarnejadbb67999afe6b
diff --git a/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.html b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.html
index 649f99d5ded..48607e42b48 100644
--- a/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.html
+++ b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.html
@@ -1,4 +1,4 @@
-<ng-container *ngIf="shouldShowGroup()" class="op-bcf-wp-attribute-group">
+<ng-container *ngIf="shouldShowGroup()">
<div class="attributes-group description-group">
<div class="attributes-group--header">
<div class="attributes-group--header-container">
diff --git a/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.sass b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.sass
index cd7505f5d95..70bf2aeec65 100644
--- a/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.sass
+++ b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.sass
@@ -1,45 +1,44 @@
-.op-bcf-wp-attribute-group
- .bcf--viewpoints
- clear: both
+.bcf--viewpoints
+ clear: both
- ngx-gallery
- display: inline-block
+ngx-gallery
+ display: inline-block
- ngx-gallery ::ng-deep
- ngx-gallery-thumbnails .ngx-gallery-arrow
- color: var(--content-link-color)
+ngx-gallery ::ng-deep
+ ngx-gallery-thumbnails .ngx-gallery-arrow
+ color: var(--content-link-color)
- .ngx-gallery-arrow.ngx-gallery-disabled
- display: none
+ .ngx-gallery-arrow.ngx-gallery-disabled
+ display: none
- // Add small background for gallery icons to be sure they are always visible
- .ngx-gallery-icons-wrapper
- background: rgba(255, 255, 255, 0.5)
- padding: 5px
- .ngx-gallery-icon
- margin-top: 0
+ // Add small background for gallery icons to be sure they are always visible
+ .ngx-gallery-icons-wrapper
+ background: rgba(255, 255, 255, 0.5)
+ padding: 5px
+ .ngx-gallery-icon
+ margin-top: 0
- ngx-gallery-action:last-of-type .ngx-gallery-icon
- margin-right: 0
+ ngx-gallery-action:last-of-type .ngx-gallery-icon
+ margin-right: 0
- .ngx-gallery-thumbnail
- background-color: white
- &.ngx-gallery-clickable
- .ngx-gallery-icon
- font-size: 1.25rem
- color: var(--content-link-color)
+ .ngx-gallery-thumbnail
+ background-color: white
+ &.ngx-gallery-clickable
+ .ngx-gallery-icon
+ font-size: 1.25rem
+ color: var(--content-link-color)
- // Disable red border on active thumbnails
- .ngx-gallery-active,
- .ngx-gallery-thumbnail
- border: 1px solid #E7E7E7 !important
+ // Disable red border on active thumbnails
+ .ngx-gallery-active,
+ .ngx-gallery-thumbnail
+ border: 1px solid #E7E7E7 !important
- .ngx-gallery-preview-img
- background-color: white
+ .ngx-gallery-preview-img
+ background-color: white
- // Decrease opacity of background to avoid content conflicts
- ngx-gallery-preview
- background: rgba(0, 0, 0, 0.8) !important
+ // Decrease opacity of background to avoid content conflicts
+ ngx-gallery-preview
+ background: rgba(0, 0, 0, 0.8) !important
- a:hover
- color: #FFFFFF
+ a:hover
+ color: #FFFFFF
diff --git a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.html b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.html
index 13cf1f78196..b466a0dfb76 100644
--- a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.html
+++ b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.html
@@ -15,7 +15,8 @@
</div>
</div>
- <div class="op-ifc-viewer--container xeokit-busy-modal-backdrop">
+ <div class="op-ifc-viewer--container xeokit-busy-modal-backdrop"
+ data-qa-selector="op-ifc-viewer--container">
<div *ngIf="modelCount && !keyboardEnabled"
class="op-ifc-viewer--focus-warning">
<a class="op-ifc-viewer--keyboard-disabled-icon icon-no-color icon-input-disabled"
diff --git a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts
index bf977b19583..b9bb4ccbcc2 100644
--- a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts
+++ b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts
@@ -95,7 +95,7 @@ export class IFCViewerComponent implements OnInit, OnDestroy {
this.ifcViewer.newViewer(
{
canvasElement: element.find('[data-qa-selector="op-ifc-viewer--model-canvas"]')[0], // WebGL canvas
- explorerElement: jQuery('[data-qa-selector="op-ifc-model-viewer--tree-panel"]')[0], // Left panel
+ explorerElement: jQuery('[data-qa-selector="op-ifc-viewer--tree-panel"]')[0], // Left panel
toolbarElement: element.find('[data-qa-selector="op-ifc-viewer--toolbar-container"]')[0], // Toolbar
navCubeCanvasElement: element.find('[data-qa-selector="op-ifc-viewer--nav-cube-canvas"]')[0],
busyModelBackdropElement: element.find('.xeokit-busy-modal-backdrop')[0],
diff --git a/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/generic.sass b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/generic.sass
index d18e1c44959..6e5830c36e6 100644
--- a/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/generic.sass
+++ b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/generic.sass
@@ -31,7 +31,7 @@
.work-packages-partitioned-page--content-container
flex-direction: column
- .ifc-model-viewer--container
+ .op-ifc-viewer--container
height: 33vh !important
min-width: unset !important
diff --git a/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/toolbar.sass b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/toolbar.sass
index 083d85a6bcb..dd5057b723e 100644
--- a/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/toolbar.sass
+++ b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/toolbar.sass
@@ -1,5 +1,5 @@
// -------------------------- GENERIC --------------------------
-.ifc-model-viewer--toolbar-container
+.op-ifc-viewer--toolbar-container
position: absolute
width: 100%
padding: 0px 6px
@@ -89,11 +89,11 @@
// -------------------------- MOBILE specific --------------------------
@media only screen and (max-width: 679px)
- .ifc-model-viewer--toolbar-container
+ .op-ifc-viewer--toolbar-container
padding-right: 15px
- .ifc-model-viewer--focus-warning,
- .ifc-model-viewer--toolbar-container
+ .op-ifc-viewer--focus-warning,
+ .op-ifc-viewer--toolbar-container
.fa-male,
.fa-cut
display: none
diff --git a/modules/bim/app/views/bim/ifc_models/ifc_models/_panels.html.erb b/modules/bim/app/views/bim/ifc_models/ifc_models/_panels.html.erb
index cc6232e2976..f3ae4e2cf16 100644
--- a/modules/bim/app/views/bim/ifc_models/ifc_models/_panels.html.erb
+++ b/modules/bim/app/views/bim/ifc_models/ifc_models/_panels.html.erb
@@ -1 +1 @@
-<div class="op-ifc-model-viewer--tree-panel active" data-qa-selector="op-ifc-model-viewer--tree-panel"></div>
+<div class="op-ifc-viewer--tree-panel active" data-qa-selector="op-ifc-viewer--tree-panel"></div>
diff --git a/modules/bim/spec/support/pages/ifc_models/index.rb b/modules/bim/spec/support/pages/ifc_models/index.rb
index 62517e6c1d1..e119a24d944 100644
--- a/modules/bim/spec/support/pages/ifc_models/index.rb
+++ b/modules/bim/spec/support/pages/ifc_models/index.rb
@@ -102,7 +102,7 @@ module Pages
def show_model(model)
click_model_link model.title
- expect_correct_page_loaded '.ifc-model-viewer--container'
+ expect_correct_page_loaded '[data-qa-selector="op-ifc-viewer--container"]'
expect_model_active(model)
end
@@ -114,7 +114,7 @@ module Pages
def show_defaults(models = [])
click_toolbar_button 'Show defaults'
- expect_correct_page_loaded '.ifc-model-viewer--container'
+ expect_correct_page_loaded '[data-qa-selector="op-ifc-viewer--container"]'
models.each do |model|
expect_model_active(model, model.is_default)
diff --git a/modules/bim/spec/support/pages/ifc_models/show_default.rb b/modules/bim/spec/support/pages/ifc_models/show_default.rb
index e8838f0daf8..3c87ff60253 100644
--- a/modules/bim/spec/support/pages/ifc_models/show_default.rb
+++ b/modules/bim/spec/support/pages/ifc_models/show_default.rb
@@ -54,7 +54,7 @@ module Pages
end
def model_viewer_visible(visible)
- selector = '.ifc-model-viewer--model-canvas'
+ selector = '[data-qa-selector="op-ifc-viewer--model-canvas"]'
expect(page).to (visible ? have_selector(selector, wait: 10) : have_no_selector(selector, wait: 10))
end
@@ -62,12 +62,12 @@ module Pages
selector = '.xeokit-btn'
if visible
- within ('.ifc-model-viewer--toolbar-container') do
+ within ('[data-qa-selector="op-ifc-viewer--toolbar-container"]') do
expect(page).to have_selector(selector, count: 9)
end
else
expect(page).to have_no_selector(selector)
- expect(page).to have_no_selector('.ifc-model-viewer--toolbar-container')
+ expect(page).to have_no_selector('[data-qa-selector="op-ifc-viewer--toolbar-container"]')
end
end