2018-10-19 05:59:46 +00:00
|
|
|
import { FusePage } from './app.po';
|
2019-07-04 15:11:05 +00:00
|
|
|
import { browser, logging } from 'protractor';
|
2017-06-27 08:08:19 +00:00
|
|
|
|
2018-10-19 05:59:46 +00:00
|
|
|
describe('Fuse App', () => {
|
|
|
|
let page: FusePage;
|
2017-06-27 08:08:19 +00:00
|
|
|
|
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-06-27 08:08:19 +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
|
|
|
});
|
2019-07-04 15:11:05 +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));
|
|
|
|
});
|
2017-06-27 08:08:19 +00:00
|
|
|
});
|