chore(build): improve reliability of the saucelabs job

Closes #3848
This commit is contained in:
Marc Laval
2015-08-26 16:45:03 +02:00
parent 4ba4427510
commit 557d309377
6 changed files with 51 additions and 50 deletions

View File

@ -62,7 +62,7 @@ export function main() {
async.done();
});
});
}));
}), 1000);
});
describe('broken app', () => {
@ -78,7 +78,7 @@ export function main() {
async.done();
});
});
}));
}), 1000);
});
describe('back button app', () => {
@ -148,26 +148,27 @@ export function main() {
});
router.navigate('/parent/child');
});
}));
}), 1000);
describe('custom app base ref', () => {
beforeEachBindings(() => { return [bind(APP_BASE_HREF).toValue('/my/app')]; });
it('should bootstrap', inject([AsyncTestCompleter, TestComponentBuilder],
(async, tcb: TestComponentBuilder) => {
it('should bootstrap',
inject([AsyncTestCompleter, TestComponentBuilder],
(async, tcb: TestComponentBuilder) => {
tcb.createAsync(HierarchyAppCmp)
.then((rootTC) => {
var router = rootTC.componentInstance.router;
router.subscribe((_) => {
expect(rootTC.nativeElement)
.toHaveText('root { parent { hello } }');
expect(rootTC.componentInstance.location.path())
.toEqual('/my/app/parent/child');
async.done();
});
router.navigate('/parent/child');
});
}));
tcb.createAsync(HierarchyAppCmp)
.then((rootTC) => {
var router = rootTC.componentInstance.router;
router.subscribe((_) => {
expect(rootTC.nativeElement).toHaveText('root { parent { hello } }');
expect(rootTC.componentInstance.location.path())
.toEqual('/my/app/parent/child');
async.done();
});
router.navigate('/parent/child');
});
}),
1000);
});
});
// TODO: add a test in which the child component has bindings
@ -192,7 +193,7 @@ export function main() {
router.navigate('/qs?q=search-for-something');
rootTC.detectChanges();
});
}));
}), 1000);
});
});
}