Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
7174b285
Commit
7174b285
authored
Mar 30, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix e2e tests
parent
3c279d5b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
24 deletions
+29
-24
app.e2e-spec.ts
Breeze.UI/e2e/app.e2e-spec.ts
+6
-6
app.po.ts
Breeze.UI/e2e/app.po.ts
+6
-1
tsconfig.e2e.json
Breeze.UI/e2e/tsconfig.e2e.json
+15
-0
tsconfig.json
Breeze.UI/e2e/tsconfig.json
+0
-16
protractor.conf.js
Breeze.UI/protractor.conf.js
+2
-1
No files found.
Breeze.UI/e2e/app.e2e-spec.ts
View file @
7174b285
import
{
Breeze
UI
Page
}
from
'./app.po'
;
import
{
BreezePage
}
from
'./app.po'
;
describe
(
'breeze
-ui
App'
,
function
()
{
describe
(
'breeze App'
,
function
()
{
let
page
:
Breeze
UI
Page
;
let
page
:
BreezePage
;
beforeEach
(()
=>
{
beforeEach
(()
=>
{
page
=
new
Breeze
UI
Page
();
page
=
new
BreezePage
();
});
});
it
(
'
should display message saying app works
'
,
()
=>
{
it
(
'
title should be Breeze
'
,
()
=>
{
page
.
navigateTo
();
page
.
navigateTo
();
expect
(
page
.
get
ParagraphText
()).
toEqual
(
'app works!
'
);
expect
(
page
.
get
Title
()).
toEqual
(
'Breeze
'
);
});
});
});
});
Breeze.UI/e2e/app.po.ts
View file @
7174b285
import
{
browser
,
element
,
by
}
from
'protractor'
;
import
{
browser
,
element
,
by
}
from
'protractor'
;
export
class
Breeze
UI
Page
{
export
class
BreezePage
{
navigateTo
()
{
navigateTo
()
{
return
browser
.
get
(
'/'
);
return
browser
.
get
(
'/'
);
}
}
getParagraphText
()
{
getParagraphText
()
{
return
element
(
by
.
css
(
'app-root h1'
)).
getText
();
return
element
(
by
.
css
(
'app-root h1'
)).
getText
();
}
getTitle
()
{
let
title
:
string
;
return
browser
.
getTitle
();
}
}
}
}
Breeze.UI/e2e/tsconfig.e2e.json
0 → 100644
View file @
7174b285
{
"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
Breeze.UI/e2e/tsconfig.json
deleted
100644 → 0
View file @
3c279d5b
{
"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"
]
}
}
Breeze.UI/protractor.conf.js
View file @
7174b285
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
// https://github.com/angular/protractor/blob/master/lib/config.ts
// https://github.com/angular/protractor/blob/master/lib/config.ts
/*global jasmine */
/*global jasmine */
var
SpecReporter
=
require
(
'jasmine-spec-reporter'
);
// let SpecReporter = require('jasmine-spec-reporter').SpecReporter;
const
{
SpecReporter
}
=
require
(
'jasmine-spec-reporter'
);
exports
.
config
=
{
exports
.
config
=
{
allScriptsTimeout
:
11000
,
allScriptsTimeout
:
11000
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment