mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fixed unit test failing
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
display: block;
|
display: block;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
/* TODO(mdc-migration): The following rule targets internal classes of tabs that may no longer apply for the MDC version. */
|
|
||||||
/* TODO(mdc-migration): The following rule targets internal classes of tabs that may no longer apply for the MDC version. */
|
/* TODO(mdc-migration): The following rule targets internal classes of tabs that may no longer apply for the MDC version. */
|
||||||
.mdc-tab__text-label {
|
.mdc-tab__text-label {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
@@ -41,8 +41,7 @@
|
|||||||
& .mat-tab-body-content > *:last-child {
|
& .mat-tab-body-content > *:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
/* TODO(mdc-migration): The following rule targets internal classes of tabs that may no longer apply for the MDC version. */
|
|
||||||
/* TODO(mdc-migration): The following rule targets internal classes of tabs that may no longer apply for the MDC version. */
|
|
||||||
.mdc-tab__text-label {
|
.mdc-tab__text-label {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
|
||||||
|
@@ -142,7 +142,7 @@ describe('Custom InfoDrawer', () => {
|
|||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
const tab: any = fixture.debugElement.queryAll(By.css('.mdc-tab--active .mdc-tab__text-label'));
|
const tab: any = fixture.debugElement.queryAll(By.css('.mdc-tab--active .mdc-tab__text-label'));
|
||||||
expect(tab.length).toBe(1);
|
expect(tab.length).toBe(1);
|
||||||
expect(tab[0].nativeElement.innerText).toContain('Tab1');
|
expect(tab[0].nativeElement.innerText).toContain('TAB1');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should select the tab 2 (index 1)', () => {
|
it('should select the tab 2 (index 1)', () => {
|
||||||
@@ -150,7 +150,7 @@ describe('Custom InfoDrawer', () => {
|
|||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
const tab: any = fixture.debugElement.queryAll(By.css('.mdc-tab--active .mdc-tab__text-label'));
|
const tab: any = fixture.debugElement.queryAll(By.css('.mdc-tab--active .mdc-tab__text-label'));
|
||||||
expect(tab.length).toBe(1);
|
expect(tab.length).toBe(1);
|
||||||
expect(tab[0].nativeElement.innerText).toContain('Tab2');
|
expect(tab[0].nativeElement.innerText).toContain('TAB2');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should render a tab with icon', () => {
|
it('should render a tab with icon', () => {
|
||||||
|
Reference in New Issue
Block a user