Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ulakbus
ulakbus-ui
Commits
4a7a03be
Commit
4a7a03be
authored
May 21, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
protractor test scenarios
parent
0a2aa606
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
70 deletions
+12
-70
index-async.html
app/index-async.html
+0
-58
protractor.conf.js
e2e-tests/protractor.conf.js
+1
-1
scenarios.js
e2e-tests/scenarios.js
+11
-11
No files found.
app/index-async.html
deleted
100644 → 0
View file @
0a2aa606
<!doctype html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<link
rel=
"stylesheet"
href=
"bower_components/html5-boilerplate/css/normalize.css"
>
<link
rel=
"stylesheet"
href=
"bower_components/html5-boilerplate/css/main.css"
>
<style>
[
ng-cloak
]
{
display
:
none
;
}
</style>
<script
src=
"bower_components/html5-boilerplate/js/vendor/modernizr-2.6.2.min.js"
></script>
<script>
// include angular loader, which allows the files to load in any order
//@@NG_LOADER_START@@
// You need to run `npm run update-index-async` to inject the angular async code here
//@@NG_LOADER_END@@
// include a third-party async loader library
/*!
* $script.js v1.3
* https://github.com/ded/script.js
* Copyright: @ded & @fat - Dustin Diaz, Jacob Thornton 2011
* Follow our software http://twitter.com/dedfat
* License: MIT
*/
!
function
(
a
,
b
,
c
){
function
t
(
a
,
c
){
var
e
=
b
.
createElement
(
"script"
),
f
=
j
;
e
.
onload
=
e
.
onerror
=
e
[
o
]
=
function
(){
e
[
m
]
&&!
/^c|loade/
.
test
(
e
[
m
])
||
f
||
(
e
.
onload
=
e
[
o
]
=
null
,
f
=
1
,
c
())},
e
.
async
=
1
,
e
.
src
=
a
,
d
.
insertBefore
(
e
,
d
.
firstChild
)}
function
q
(
a
,
b
){
p
(
a
,
function
(
a
){
return
!
b
(
a
)})}
var
d
=
b
.
getElementsByTagName
(
"head"
)[
0
],
e
=
{},
f
=
{},
g
=
{},
h
=
{},
i
=
"string"
,
j
=!
1
,
k
=
"push"
,
l
=
"DOMContentLoaded"
,
m
=
"readyState"
,
n
=
"addEventListener"
,
o
=
"onreadystatechange"
,
p
=
function
(
a
,
b
){
for
(
var
c
=
0
,
d
=
a
.
length
;
c
<
d
;
++
c
)
if
(
!
b
(
a
[
c
]))
return
j
;
return
1
};
!
b
[
m
]
&&
b
[
n
]
&&
(
b
[
n
](
l
,
function
r
(){
b
.
removeEventListener
(
l
,
r
,
j
),
b
[
m
]
=
"complete"
},
j
),
b
[
m
]
=
"loading"
);
var
s
=
function
(
a
,
b
,
d
){
function
o
(){
if
(
!--
m
){
e
[
l
]
=
1
,
j
&&
j
();
for
(
var
a
in
g
)
p
(
a
.
split
(
"|"
),
n
)
&&!
q
(
g
[
a
],
n
)
&&
(
g
[
a
]
=
[])}}
function
n
(
a
){
return
a
.
call
?
a
():
e
[
a
]}
a
=
a
[
k
]?
a
:[
a
];
var
i
=
b
&&
b
.
call
,
j
=
i
?
b
:
d
,
l
=
i
?
a
.
join
(
""
):
b
,
m
=
a
.
length
;
c
(
function
(){
q
(
a
,
function
(
a
){
h
[
a
]?(
l
&&
(
f
[
l
]
=
1
),
o
()):(
h
[
a
]
=
1
,
l
&&
(
f
[
l
]
=
1
),
t
(
s
.
path
?
s
.
path
+
a
+
".js"
:
a
,
o
))})},
0
);
return
s
};
s
.
get
=
t
,
s
.
ready
=
function
(
a
,
b
,
c
){
a
=
a
[
k
]?
a
:[
a
];
var
d
=
[];
!
q
(
a
,
function
(
a
){
e
[
a
]
||
d
[
k
](
a
)})
&&
p
(
a
,
function
(
a
){
return
e
[
a
]})?
b
():
!
function
(
a
){
g
[
a
]
=
g
[
a
]
||
[],
g
[
a
][
k
](
b
),
c
&&
c
(
d
)}(
a
.
join
(
"|"
));
return
s
};
var
u
=
a
.
$script
;
s
.
noConflict
=
function
(){
a
.
$script
=
u
;
return
this
},
typeof
module
!=
"undefined"
&&
module
.
exports
?
module
.
exports
=
s
:
a
.
$script
=
s
}(
this
,
document
,
setTimeout
)
// load all of the dependencies asynchronously.
$script
([
'bower_components/angular/angular.js'
,
'bower_components/angular-route/angular-route.js'
,
'app.js'
,
'view1/view1.js'
,
'view2/view2.js'
,
'components/version/version.js'
,
'components/version/version-directive.js'
,
'components/version/interpolate-filter.js'
],
function
()
{
// when all is done, execute bootstrap angular application
angular
.
bootstrap
(
document
,
[
'myApp'
]);
});
</script>
<title>
My AngularJS App
</title>
<link
rel=
"stylesheet"
href=
"app.css"
>
</head>
<body
ng-cloak
>
<ul
class=
"menu"
>
<li><a
href=
"#/view1"
>
view1
</a></li>
<li><a
href=
"#/view2"
>
view2
</a></li>
</ul>
<div
ng-view
></div>
<div>
Angular seed app: v
<span
app-version
></span></div>
</body>
</html>
e2e-tests/protractor.conf.js
View file @
4a7a03be
...
...
@@ -9,7 +9,7 @@ exports.config = {
'browserName'
:
'chrome'
},
baseUrl
:
'http://localhost:8000/
app/
'
,
baseUrl
:
'http://localhost:8000/'
,
framework
:
'jasmine'
,
...
...
e2e-tests/scenarios.js
View file @
4a7a03be
...
...
@@ -6,36 +6,36 @@ describe('my app', function() {
browser
.
get
(
'index.html'
);
it
(
'should automatically redirect to /
view1
when location hash/fragment is empty'
,
function
()
{
expect
(
browser
.
getLocationAbsUrl
()).
toMatch
(
"/
view1
"
);
it
(
'should automatically redirect to /
dashboard
when location hash/fragment is empty'
,
function
()
{
expect
(
browser
.
getLocationAbsUrl
()).
toMatch
(
"/
login
"
);
});
describe
(
'
view1
'
,
function
()
{
describe
(
'
dashboard
'
,
function
()
{
beforeEach
(
function
()
{
browser
.
get
(
'index.html#/
view1
'
);
browser
.
get
(
'index.html#/
dashboard
'
);
});
it
(
'should re
nder view1 when user navigates to /view1
'
,
function
()
{
expect
(
element
.
all
(
by
.
css
(
'[ng-view]
p
'
)).
first
().
getText
()).
toMatch
(
/
partial for view 1
/
);
it
(
'should re
direct to login page if not logged in
'
,
function
()
{
expect
(
element
.
all
(
by
.
css
(
'[ng-view]
h1
'
)).
first
().
getText
()).
toMatch
(
/
Zaerp Login Form
/
);
});
});
describe
(
'
view2
'
,
function
()
{
describe
(
'
login
'
,
function
()
{
beforeEach
(
function
()
{
browser
.
get
(
'index.html#/
view2
'
);
browser
.
get
(
'index.html#/
login
'
);
});
it
(
'should render view2 when user navigates to /view2'
,
function
()
{
expect
(
element
.
all
(
by
.
css
(
'[ng-view]
p
'
)).
first
().
getText
()).
toMatch
(
/
partial for view 2
/
);
expect
(
element
.
all
(
by
.
css
(
'[ng-view]
h1
'
)).
first
().
getText
()).
toMatch
(
/
Zaerp Login Form
/
);
});
});
...
...
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