2022-03-11 10:53:32 -08:00
|
|
|
import { AppPage } from './app.po'
|
|
|
|
|
import { browser, logging } from 'protractor'
|
2020-10-27 01:10:18 +01:00
|
|
|
|
|
|
|
|
describe('workspace-project App', () => {
|
2022-03-11 10:53:32 -08:00
|
|
|
let page: AppPage
|
2020-10-27 01:10:18 +01:00
|
|
|
|
|
|
|
|
beforeEach(() => {
|
2022-03-11 10:53:32 -08:00
|
|
|
page = new AppPage()
|
|
|
|
|
})
|
2020-10-27 01:10:18 +01:00
|
|
|
|
|
|
|
|
it('should display welcome message', () => {
|
2022-03-11 10:53:32 -08:00
|
|
|
page.navigateTo()
|
|
|
|
|
expect(page.getTitleText()).toEqual('paperless-ui app is running!')
|
|
|
|
|
})
|
2020-10-27 01:10:18 +01:00
|
|
|
|
|
|
|
|
afterEach(async () => {
|
|
|
|
|
// Assert that there are no errors emitted from the browser
|
2022-03-11 10:53:32 -08:00
|
|
|
const logs = await browser.manage().logs().get(logging.Type.BROWSER)
|
|
|
|
|
expect(logs).not.toContain(
|
|
|
|
|
jasmine.objectContaining({
|
|
|
|
|
level: logging.Level.SEVERE,
|
|
|
|
|
} as logging.Entry)
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
})
|