mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2026-03-22 23:59:12 +00:00
Angular 8.1.0 compatibility update
Various small fixes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { FusePage } from './app.po';
|
||||
import { browser, logging } from 'protractor';
|
||||
|
||||
describe('Fuse App', () => {
|
||||
let page: FusePage;
|
||||
@@ -11,4 +12,12 @@ describe('Fuse App', () => {
|
||||
page.navigateTo();
|
||||
expect(page.getParagraphText()).toEqual('Welcome to Fuse!');
|
||||
});
|
||||
|
||||
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));
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
import { browser, by, element } from 'protractor';
|
||||
|
||||
export class FusePage {
|
||||
navigateTo(): any {
|
||||
return browser.get('/');
|
||||
export class FusePage
|
||||
{
|
||||
navigateTo(): Promise<any>
|
||||
{
|
||||
return browser.get('/') as Promise<any>;
|
||||
}
|
||||
|
||||
getParagraphText(): any {
|
||||
return element(by.css('app #main')).getText();
|
||||
getParagraphText(): Promise<string>
|
||||
{
|
||||
return element(by.css('app #main')).getText() as Promise<string>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user