test(ivy): enable router tests with pending timers (FW-768) (#27509)

PR Close #27509
This commit is contained in:
Marc Laval 2018-12-06 14:59:28 +01:00 committed by Igor Minar
parent cad67148b1
commit 8fa7e93c30
1 changed files with 93 additions and 89 deletions

View File

@ -467,8 +467,7 @@ describe('Integration', () => {
expect(location.path()).toEqual('/child/simple');
})));
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({
selector: 'someRoot',
template: `[<div *ngIf="cond"><router-outlet></router-outlet></div>]`
@ -498,6 +497,9 @@ describe('Integration', () => {
fixture.componentInstance.cond = true;
advance(fixture);
expect(fixture.nativeElement).toHaveText('[simple]');
// TODO: remove extra tick for Ivy?
tick();
}));
it('should update location when navigating', fakeAsync(() => {
@ -4471,8 +4473,7 @@ describe('Integration', () => {
expect(simpleCmp1).not.toBe(simpleCmp2);
})));
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(() => {
@Component({
selector: 'root-cmp',
@ -4546,6 +4547,9 @@ describe('Integration', () => {
router.navigate([{outlets: {toolpanel: 'b'}}]);
advance(fixture);
expect(fixture).toContainComponent(Tool2Component, '(e)');
// TODO: remove extra tick for Ivy?
tick();
}));
});
});