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
Fix old tab specs
Benjamin Bädorf96cd4e7e2d25
diff --git a/frontend/src/app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component.html b/frontend/src/app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component.htmlindex 78284c102e3..8eaaf96ad82 100644--- a/frontend/src/app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component.html+++ b/frontend/src/app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component.html@@ -41,7 +41,10 @@[counter]="tab.counter"[attr.data-qa-selector]="'tab-counter-' + tab.name"></op-tab-count>- <span *ngIf="tab.counter && !tab.showCountAsBubble"> ({{ tab.counter | async }})</span>+ <span+ *ngIf="tab.counter && !tab.showCountAsBubble"+ data-qa-selector="tab-count"+ > ({{ tab.counter | async }})</span></a></li></ul>diff --git a/frontend/src/app/shared/components/tabs/tab-badges/tab-count.component.html b/frontend/src/app/shared/components/tabs/tab-badges/tab-count.component.htmlindex 2ae8de9c78c..c6d1e3d4337 100644--- a/frontend/src/app/shared/components/tabs/tab-badges/tab-count.component.html+++ b/frontend/src/app/shared/components/tabs/tab-badges/tab-count.component.html@@ -3,6 +3,5 @@class="op-tab-count"*ngIf="count > 0"[textContent]="count"- >- </span>+ ></span></ng-container>\ No newline at end of filediff --git a/spec/support/components/work_packages/tabs_counter.rb b/spec/support/components/work_packages/tabs_counter.rbindex 8fb971e03f3..090a052f002 100644--- a/spec/support/components/work_packages/tabs_counter.rb+++ b/spec/support/components/work_packages/tabs_counter.rb@@ -15,12 +15,14 @@ module Components# Check value of counter for the given tabdef expect_counter(tab, content)- expect(tab).to have_selector('.op-tab-count', text: content.to_s)+ expect(tab).to have_selector('[data-qa-selector="tab-count"]')++ expect(tab).to have_selector('[data-qa-selector="tab-count"]', text: '(' + content.to_s + ')')end# Counter should not be displayed, if there are no relations or watchersdef expect_no_counter(tab)- expect(tab).to have_no_selector('.op-tab-count', wait: 10)+ expect(tab).to have_no_selector('[data-qa-selector="tab-count"]', wait: 10)endendend