test(angular): add lazy loading tabs test

This commit is contained in:
Manu Mtz.-Almeida
2018-12-10 21:14:34 +01:00
committed by Manu MA
parent 509cfd54aa
commit f0ef061a6b
7 changed files with 69 additions and 2 deletions

View File

@@ -68,6 +68,10 @@ describe('tabs', () => {
await testStack('ion-tabs ion-router-outlet', ['app-tabs-tab2', 'app-tabs-tab1-nested']);
});
it('should load lazy loaded tab', async () => {
await element(by.css('#tab-button-lazy')).click();
await testTabTitle('Tab 3 - Page 1');
});
});
async function testTabTitle(title: string) {