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

check loading is finished with data-qa-selector

bsatarnejad34c7df01a7b5
diff --git a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html
index 32b33d56ac8..03a35ac745b 100644
--- a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html
+++ b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html
@@ -32,7 +32,9 @@
</ng-template>
</ng-container>
<ng-template #loading>
- <img [src]="image.loading" class="op-ian-center-loading-image"/>
+ <img [src]="image.loading"
+ class="op-ian-center--loading-indicator op-ian-center-loading-image"
+ data-qa-selector="op-ian-center--loading-indicator"/>
</ng-template>
</div>
<div class="op-ian-center--footer">
diff --git a/spec/support/components/common/sidemenu.rb b/spec/support/components/common/sidemenu.rb
index 7143b29611c..41cf54608cf 100644
--- a/spec/support/components/common/sidemenu.rb
+++ b/spec/support/components/common/sidemenu.rb
@@ -61,7 +61,7 @@ module Components
end
def finished_loading
- expect(page).to have_no_selector('.op-ian-center--loading-indicator')
+ expect(page).to have_no_selector('[data-qa-selector="op-ian-center--loading-indicator"]')
end
private