Change some notification specs

pull/9599/head
Benjamin Bädorf 3 years ago
parent 4e788bdcb7
commit 455f5eb164
No known key found for this signature in database
GPG Key ID: 069CA2D117AB5CCF
  1. 11
      frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.html
  2. 2
      frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-tabs.service.spec.ts
  3. 4
      spec/features/notifications/notification_center/notification_center_spec.rb

@ -2,15 +2,14 @@
class="op-ian-bell op-app-menu--item-action"
data-qa-selector="op-ian-bell"
[href]="notificationsPath()"
>
<op-icon icon-classes="icon-bell">
</op-icon>
>
<op-icon icon-classes="icon-bell"></op-icon>
<ng-container *ngIf="(unreadCount$ | async) as unreadCount">
<span
<span
*ngIf="unreadCount > 0"
class="op-ian-bell--indicator"
data-qa-selector="op-ian-notifications-count"
[textContent]="unreadCount > 99 ? '' : unreadCount">
</span>
[textContent]="unreadCount > 99 ? '' : unreadCount"
></span>
</ng-container>
</a>

@ -50,7 +50,7 @@ describe('WpTabsService', () => {
describe('displayableTabs()', () => {
it('returns just the displayable tab', () => {
expect(service.getDisplayableTabs(workPackage)).toEqual([displayableTab]);
expect(service.getDisplayableTabs(workPackage)[0].id).toEqual(displayableTab.id);
});
});

@ -60,12 +60,14 @@ describe "Notification center", type: :feature, js: true do
center.expect_work_package_item second_notification
center.mark_all_read
center.expect_bell_count 0
notification.reload
expect(notification.read_ian).to be_truthy
center.expect_no_item notification
center.expect_no_item second_notification
center.open
center.expect_bell_count 0
end
it 'can open the split screen of the notification' do

Loading…
Cancel
Save