2019-07-21 17:59:47 +03:00
|
|
|
import { AppPage } from './app.po';
|
2020-02-16 22:15:07 +07:00
|
|
|
import { browser, logging } from 'protractor';
|
2019-07-21 17:59:47 +03:00
|
|
|
|
|
|
|
describe('workspace-project App', () => {
|
|
|
|
let page: AppPage;
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
page = new AppPage();
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should display welcome message', () => {
|
|
|
|
page.navigateTo();
|
2020-04-28 00:14:29 +07:00
|
|
|
expect(page.getTitleText()).toEqual('Welcome to mempool!');
|
2020-02-16 22:15:07 +07: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));
|
2019-07-21 17:59:47 +03:00
|
|
|
});
|
|
|
|
});
|