Restore "[ACS-8113] UX bug - Checkbox selections checked state should be Hyland blue not green- edit summary (#3908)" (#3919)

* [ACS-8113] UX bug - Checkbox selections checked state should be Hyland blue not green- edit summary (#3908)

* [ACS-8113] dataTable checkbox e2e fix 1

---------

Co-authored-by: jacekpluta <73617938+jacekpluta@users.noreply.github.com>
Co-authored-by: datguychen <adam.swiderski@hyland.com>
This commit is contained in:
Pablo Martinez
2024-08-02 12:03:00 +02:00
committed by GitHub
parent 2fd2e483d6
commit 4029213abe
21 changed files with 209 additions and 20 deletions

View File

@@ -29,6 +29,7 @@ import { BehaviorSubject, of, Subject } from 'rxjs';
import { FavoritesComponent } from './favorites.component';
import { AppTestingModule } from '../../testing/app-testing.module';
import { AppService, ContentApiService } from '@alfresco/aca-shared';
import { getTitleElementText } from '../../testing/test-utils';
describe('FavoritesComponent', () => {
let fixture: ComponentFixture<FavoritesComponent>;
@@ -129,4 +130,13 @@ describe('FavoritesComponent', () => {
location: 'favorites'
});
});
it('should set title based on selectedRowItemsCount', () => {
fixture.detectChanges();
expect(getTitleElementText(fixture)).toBe('APP.BROWSE.FAVORITES.TITLE');
component.selectedRowItemsCount = 5;
fixture.detectChanges();
expect(getTitleElementText(fixture)).toBe('APP.HEADER.SELECTED');
});
});