fuse-angular/e2e/src/app.e2e-spec.ts

24 lines
674 B
TypeScript
Raw Permalink Normal View History

2018-10-19 05:59:46 +00:00
import { FusePage } from './app.po';
import { browser, logging } from 'protractor';
2018-10-19 05:59:46 +00:00
describe('Fuse App', () => {
let page: FusePage;
2017-11-02 09:52:27 +00:00
beforeEach(() => {
2018-10-19 05:59:46 +00:00
page = new FusePage();
2017-11-02 09:52:27 +00:00
});
2017-11-02 09:52:27 +00:00
it('should display welcome message', () => {
page.navigateTo();
2018-10-19 05:59:46 +00:00
expect(page.getParagraphText()).toEqual('Welcome to Fuse!');
2017-11-02 09:52:27 +00:00
});
afterEach(async () => {
// Assert that there are no errors emitted from the browser
const logs = await browser.manage().logs().get(logging.Type.BROWSER);
expect(logs).not.toContain(jasmine.objectContaining({
level: logging.Level.SEVERE
} as logging.Entry));
});
});