mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
refactor(nav): add initial support for url in general, add integration w/ ng-router
This commit is contained in:
31
packages/demos/angular/e2e/loading.e2e-spec.ts
Normal file
31
packages/demos/angular/e2e/loading.e2e-spec.ts
Normal file
@ -0,0 +1,31 @@
|
||||
import { browser, ElementFinder } from 'protractor/built';
|
||||
|
||||
import { LoadingPage } from './loading.po';
|
||||
import { sleep } from './utils/helpers';
|
||||
|
||||
describe('Loading Page', () => {
|
||||
let page: LoadingPage;
|
||||
|
||||
beforeEach(() => {
|
||||
page = new LoadingPage();
|
||||
});
|
||||
|
||||
it('should open page', async (done) => {
|
||||
await page.navigateTo();
|
||||
done();
|
||||
});
|
||||
|
||||
it('should open the loading indicator, then close it', async (done) => {
|
||||
const button = await page.getButton();
|
||||
await sleep(100);
|
||||
await button.click();
|
||||
await sleep(500);
|
||||
let loading = await page.getLoading();
|
||||
expect(loading).toBeTruthy();
|
||||
await sleep(1000);
|
||||
loading = null;
|
||||
loading = await page.getLoading();
|
||||
expect(await loading.isPresent()).toBeFalsy();
|
||||
done();
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user