test(ivy): enable router tests with pending timers (FW-768) (#27509)
PR Close #27509
This commit is contained in:
parent
cad67148b1
commit
8fa7e93c30
@ -467,8 +467,7 @@ describe('Integration', () => {
|
|||||||
expect(location.path()).toEqual('/child/simple');
|
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({
|
@Component({
|
||||||
selector: 'someRoot',
|
selector: 'someRoot',
|
||||||
template: `[<div *ngIf="cond"><router-outlet></router-outlet></div>]`
|
template: `[<div *ngIf="cond"><router-outlet></router-outlet></div>]`
|
||||||
@ -498,6 +497,9 @@ describe('Integration', () => {
|
|||||||
fixture.componentInstance.cond = true;
|
fixture.componentInstance.cond = true;
|
||||||
advance(fixture);
|
advance(fixture);
|
||||||
expect(fixture.nativeElement).toHaveText('[simple]');
|
expect(fixture.nativeElement).toHaveText('[simple]');
|
||||||
|
|
||||||
|
// TODO: remove extra tick for Ivy?
|
||||||
|
tick();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it('should update location when navigating', fakeAsync(() => {
|
it('should update location when navigating', fakeAsync(() => {
|
||||||
@ -4471,8 +4473,7 @@ describe('Integration', () => {
|
|||||||
expect(simpleCmp1).not.toBe(simpleCmp2);
|
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(() => {
|
fakeAsync(() => {
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'root-cmp',
|
selector: 'root-cmp',
|
||||||
@ -4546,6 +4547,9 @@ describe('Integration', () => {
|
|||||||
router.navigate([{outlets: {toolpanel: 'b'}}]);
|
router.navigate([{outlets: {toolpanel: 'b'}}]);
|
||||||
advance(fixture);
|
advance(fixture);
|
||||||
expect(fixture).toContainComponent(Tool2Component, '(e)');
|
expect(fixture).toContainComponent(Tool2Component, '(e)');
|
||||||
|
|
||||||
|
// TODO: remove extra tick for Ivy?
|
||||||
|
tick();
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user