FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TypeScriptSamples/angular1/e2e-tests/scenarios.ts at master · edbasti/TypeScriptSamples · GitHub
edbasti
TypeScriptSamples
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
TypeScriptSamples
/
angular1
/
e2e-tests
/
scenarios.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
42 lines (26 loc) · 934 Bytes
Breadcrumbs
TypeScriptSamples
/
angular1
/
e2e-tests
/
scenarios.ts
Copy path
File metadata and controls
42 lines (26 loc) · 934 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
'use strict'
;
/* https://github.com/angular/protractor/blob/master/docs/toc.md */
describe
(
'my app'
,
function
(
)
{
it
(
'should automatically redirect to /view1 when location hash/fragment is empty'
,
function
(
)
{
browser
.
get
(
'index.html'
)
;
expect
(
browser
.
getLocationAbsUrl
(
)
)
.
toMatch
(
"/view1"
)
;
}
)
;
describe
(
'view1'
,
function
(
)
{
beforeEach
(
function
(
)
{
browser
.
get
(
'index.html#/view1'
)
;
}
)
;
it
(
'should render view1 when user navigates to /view1'
,
function
(
)
{
expect
(
element
.
all
(
by
.
css
(
'[ng-view] p'
)
)
.
first
(
)
.
getText
(
)
)
.
toMatch
(
/
p
a
r
t
i
a
l
f
o
r
v
i
e
w
1
/
)
;
}
)
;
}
)
;
describe
(
'view2'
,
function
(
)
{
beforeEach
(
function
(
)
{
browser
.
get
(
'index.html#/view2'
)
;
}
)
;
it
(
'should render view2 when user navigates to /view2'
,
function
(
)
{
expect
(
element
.
all
(
by
.
css
(
'[ng-view] p'
)
)
.
first
(
)
.
getText
(
)
)
.
toMatch
(
/
p
a
r
t
i
a
l
f
o
r
v
i
e
w
2
/
)
;
}
)
;
}
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL