public-gateway-cacher/e2e/src/app.e2e-spec.ts

24 lines
687 B
TypeScript
Raw Normal View History

2019-11-29 02:20:50 +00:00
import { browser, logging } from 'protractor';
import { AppPage } from './app.po';
2020-07-08 00:20:02 +00:00
describe('workspace-project App', (): void => {
2019-11-29 02:20:50 +00:00
let page: AppPage;
2020-07-08 00:20:02 +00:00
beforeEach((): void => {
2019-11-29 02:20:50 +00:00
page = new AppPage();
});
2020-07-08 00:20:02 +00:00
it('should display welcome message', (): void => {
2019-11-29 02:20:50 +00:00
page.navigateTo();
expect(page.getTitleText()).toEqual('public-gateway-cacher app is running!');
});
2020-07-08 00:20:02 +00:00
afterEach(async (): Promise<void> => {
2019-11-29 02:20:50 +00:00
// 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));
});
});