File tree Expand file tree Collapse file tree 6 files changed +57
-3
lines changed Expand file tree Collapse file tree 6 files changed +57
-3
lines changed Original file line number Diff line number Diff line change 13
13
< a href ="#/ " class ="pull-left ">
14
14
< img class ="logo " alt ="Icon " src ="./navbar_icon.png " height ="20 " width ="20 ">
15
15
</ a >
16
- < a class ="navbar-brand app-name " href ="#/ ">
16
+ < a class ="navbar-brand app-name " id =" toStart " href ="#/ ">
17
17
LinkedDataVOWL
18
18
< small > V{{::header.appVersion}}</ small >
19
19
</ a >
29
29
</ a >
30
30
</ li >
31
31
< li ng-class ="{ active: header.isActive('/settings') } ">
32
- < a ng-href ="#/settings ">
32
+ < a ng-href ="#/settings " id =" toSettings " >
33
33
< span class ="glyphicon glyphicon-cog " aria-hidden ="true "> </ span >
34
34
Settings
35
35
</ a >
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ <h1>LinkedDataVOWL</h1>
20
20
ng-minlength ="7 " typeahead-min-length ="0 " placeholder ="Type in an URL or select some from the list "/>
21
21
</ div >
22
22
< div class ="col-sm-3 ">
23
- < button type ="button " class ="btn btn-primary " ng-click ="start.showGraph() "
23
+ < button type ="button " class ="btn btn-primary " id =" showGraph " ng-click ="start.showGraph() "
24
24
ng-disabled ="endpointForm.url.$dirty && endpointForm.url.$invalid ">
25
25
Show Graph »
26
26
</ button >
Original file line number Diff line number Diff line change 53
53
"ng-annotate-loader" : " 0.0.10" ,
54
54
"node-sass" : " ^3.4.2" ,
55
55
"phantomjs" : " ^1.9.19" ,
56
+ "protractor" : " ^3.2.2" ,
56
57
"sass-loader" : " ^3.1.2" ,
57
58
"style-loader" : " ^0.13.0" ,
58
59
"url-loader" : " ^0.5.7" ,
64
65
"host" : " webpack-dev-server --host 0.0.0.0 --content-base app --inline --hot" ,
65
66
"proxy" : " node ../anti-cors-proxy/index.js" ,
66
67
"test" : " karma start" ,
68
+ "e2etest" : " protractor protractor.conf.js" ,
67
69
"lint" : " eslint . --ext .js || true" ,
68
70
"deploy" : " NODE_ENV=production webpack -p --config webpack.production.config.js"
69
71
},
Original file line number Diff line number Diff line change
1
+ exports . config = {
2
+ framework : 'jasmine' ,
3
+ seleniumAddress : 'http://localhost:4444/wd/hub' ,
4
+ specs : [ 'test/e2e/*e2e.js' ]
5
+ } ;
Original file line number Diff line number Diff line change
1
+ /* globals browser, element, by */
2
+ 'use strict' ;
3
+
4
+ describe ( 'Settings Page' , function ( ) {
5
+
6
+ let host = 'http://localhost' ;
7
+ let portNumber = 8080 ;
8
+ let pageName = 'settings' ;
9
+ let appName = 'LinkedDataVOWL' ;
10
+ let separator = ' — ' ;
11
+
12
+ beforeEach ( function ( ) {
13
+ browser . get ( host + ':' + portNumber + '/#/' + pageName ) ;
14
+ } ) ;
15
+
16
+ it ( 'should be on the settings page' , function ( ) {
17
+ expect ( browser . getTitle ( ) ) . toBe ( appName + separator + 'Settings' ) ;
18
+ } ) ;
19
+
20
+ it ( 'should be possible to go back to start page' , function ( ) {
21
+ element ( by . id ( 'toStart' ) ) . click ( ) ;
22
+ expect ( browser . getTitle ( ) ) . toBe ( appName + separator + 'Start' ) ;
23
+ } ) ;
24
+
25
+ } ) ;
Original file line number Diff line number Diff line change
1
+ /* globals browser, element, by */
2
+ 'use strict' ;
3
+
4
+ describe ( 'Start Page' , function ( ) {
5
+
6
+ let appName = 'LinkedDataVOWL' ;
7
+ let separator = ' — ' ;
8
+
9
+ beforeEach ( function ( ) {
10
+ browser . get ( 'http://localhost:8080/#/' ) ;
11
+ } ) ;
12
+
13
+ it ( 'should have a title' , function ( ) {
14
+ expect ( browser . getTitle ( ) ) . toBe ( appName + separator + 'Start' ) ;
15
+ } ) ;
16
+
17
+ it ( 'should be possible to switch to settings page' , function ( ) {
18
+ element ( by . id ( 'toSettings' ) ) . click ( ) ;
19
+ expect ( browser . getTitle ( ) ) . toBe ( appName + separator + 'Settings' ) ;
20
+ } ) ;
21
+
22
+ } ) ;
You can’t perform that action at this time.
0 commit comments