test(ivy): add root causes for router TestBed failures (#27325)

PR Close #27325
This commit is contained in:
Marc Laval 2018-11-30 18:30:10 +01:00 committed by Igor Minar
parent a566e52ca4
commit 35e02ad5e0
2 changed files with 12 additions and 8 deletions

View File

@ -467,7 +467,7 @@ describe('Integration', () => {
expect(location.path()).toEqual('/child/simple'); expect(location.path()).toEqual('/child/simple');
}))); })));
fixmeIvy('unknown') && // Error: 1 timer(s) still in the queue fixmeIvy('FW-768: markViewDirty instruction is scheduling a tick') &&
it('should work when an outlet is added/removed', fakeAsync(() => { it('should work when an outlet is added/removed', fakeAsync(() => {
@Component({ @Component({
selector: 'someRoot', selector: 'someRoot',
@ -2582,7 +2582,7 @@ describe('Integration', () => {
expect(canceledStatus).toEqual(false); expect(canceledStatus).toEqual(false);
}))); })));
fixmeIvy('unknown') && // Error: assertion error fixmeIvy('FW-766: One router test is wrong') &&
it('works with componentless routes', it('works with componentless routes',
fakeAsync(inject([Router, Location], (router: Router, location: Location) => { fakeAsync(inject([Router, Location], (router: Router, location: Location) => {
const fixture = createRoot(router, RootCmp); const fixture = createRoot(router, RootCmp);
@ -3526,7 +3526,7 @@ describe('Integration', () => {
expect(fixture.nativeElement).toHaveText('lazy-loaded-parent [lazy-loaded-child]'); expect(fixture.nativeElement).toHaveText('lazy-loaded-parent [lazy-loaded-child]');
}))); })));
fixmeIvy('unknown') && // Error: timeout fixmeIvy('FW-646: Directive providers don\'t support primitive types as DI tokens') &&
it('should have 2 injector trees: module and element', it('should have 2 injector trees: module and element',
fakeAsync(inject( fakeAsync(inject(
[Router, Location, NgModuleFactoryLoader], [Router, Location, NgModuleFactoryLoader],
@ -3654,7 +3654,8 @@ describe('Integration', () => {
}))); })));
// https://github.com/angular/angular/issues/13870 // https://github.com/angular/angular/issues/13870
fixmeIvy('unknown') && // Error: timeout fixmeIvy(
'FW-767: Lazy loaded modules are not used when resolving dependencies in one of their components') &&
it('should create a single instance of guards for lazy-loaded modules', it('should create a single instance of guards for lazy-loaded modules',
fakeAsync(inject( fakeAsync(inject(
[Router, Location, NgModuleFactoryLoader], [Router, Location, NgModuleFactoryLoader],
@ -3954,7 +3955,8 @@ describe('Integration', () => {
}); });
}); });
fixmeIvy('unknown') && // Error: timeout fixmeIvy(
'FW-767: Lazy loaded modules are not used when resolving dependencies in one of their components') &&
it('should use the injector of the lazily-loaded configuration', it('should use the injector of the lazily-loaded configuration',
fakeAsync(inject( fakeAsync(inject(
[Router, Location, NgModuleFactoryLoader], [Router, Location, NgModuleFactoryLoader],
@ -4439,7 +4441,7 @@ describe('Integration', () => {
expect(simpleCmp1).not.toBe(simpleCmp2); expect(simpleCmp1).not.toBe(simpleCmp2);
}))); })));
fixmeIvy('unknown') && // Error: 1 timer(s) still in the queue fixmeIvy('FW-768: markViewDirty instruction is scheduling a tick') &&
it('should not mount the component of the previously reused route when the outlet was not instantiated at the time of route activation', it('should not mount the component of the previously reused route when the outlet was not instantiated at the time of route activation',
fakeAsync(() => { fakeAsync(() => {
@Component({ @Component({

View File

@ -61,7 +61,8 @@ describe('RouterPreloader', () => {
}); });
fixmeIvy('unknown') && // Error: NgModuleRef._parent is undefined fixmeIvy(
'FW-765: NgModuleRef hierarchy is differently constructed when the router preloads modules') &&
it('should work', it('should work',
fakeAsync(inject( fakeAsync(inject(
[NgModuleFactoryLoader, RouterPreloader, Router, NgModuleRef], [NgModuleFactoryLoader, RouterPreloader, Router, NgModuleRef],
@ -129,7 +130,8 @@ describe('RouterPreloader', () => {
}); });
}); });
fixmeIvy('unknown') && // Error: NgModuleRef._parent is undefined fixmeIvy(
'FW-765: NgModuleRef hierarchy is differently constructed when the router preloads modules') &&
it('should work', it('should work',
fakeAsync(inject( fakeAsync(inject(
[NgModuleFactoryLoader, RouterPreloader, Router, NgModuleRef, Compiler], [NgModuleFactoryLoader, RouterPreloader, Router, NgModuleRef, Compiler],