Commit 7174b285 authored by dev0tion's avatar dev0tion

Fix e2e tests

parent 3c279d5b
import { BreezeUIPage } from './app.po';
import { BreezePage } from './app.po';
describe('breeze-ui App', function() {
let page: BreezeUIPage;
describe('breeze App', function() {
let page: BreezePage;
beforeEach(() => {
page = new BreezeUIPage();
page = new BreezePage();
});
it('should display message saying app works', () => {
it('title should be Breeze', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('app works!');
expect(page.getTitle()).toEqual('Breeze');
});
});
import { browser, element, by } from 'protractor';
export class BreezeUIPage {
export class BreezePage {
navigateTo() {
return browser.get('/');
}
getParagraphText() {
return element(by.css('app-root h1')).getText();
}
getTitle() {
let title: string;
return browser.getTitle();
}
}
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/e2e",
"module": "commonjs",
"target": "es5",
"typeRoots": [
"../node_modules/@types"
],
"types":[
"jasmine",
"node"
]
}
}
\ No newline at end of file
{
"compileOnSave": false,
"compilerOptions": {
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
"moduleResolution": "node",
"outDir": "../dist/out-tsc-e2e",
"sourceMap": true,
"target": "es5",
"typeRoots": [
"../node_modules/@types"
]
}
}
......@@ -2,7 +2,8 @@
// https://github.com/angular/protractor/blob/master/lib/config.ts
/*global jasmine */
var SpecReporter = require('jasmine-spec-reporter');
// let SpecReporter = require('jasmine-spec-reporter').SpecReporter;
const { SpecReporter } = require('jasmine-spec-reporter');
exports.config = {
allScriptsTimeout: 11000,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment