File tree 3 files changed +35
-2
lines changed
3 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,21 @@ function Favorites() {
12
12
return element ( by . css ( 'series-list' ) ) ;
13
13
} ;
14
14
15
- this . getSearchResults = function ( cb ) {
15
+ this . getSearchResults = function ( ) {
16
16
return element . all ( by . css ( 'series-list serieheader' ) ) . then ( function ( elements ) {
17
17
return elements ;
18
18
} ) ;
19
19
} ;
20
20
21
+ this . getDoctorWhoAddingEarmark = function ( ) {
22
+ return element ( by . css ( 'series-list serieheader:nth-child(3) em.earmark.adding' ) ) ;
23
+ } ;
24
+
25
+
26
+ this . getDoctorWhoAddedEarmark = function ( ) {
27
+ return element ( by . cssContainingText ( 'series-list serieheader:nth-child(3) em.earmark' , '✓' ) ) ;
28
+ } ;
29
+
21
30
/*
22
31
23
32
this.getAddSampleButton = function() {
Original file line number Diff line number Diff line change 9
9
10
10
11
11
// if there's a cached version of this request in fixtures, serve it.
12
- $ cache = dirname (__FILE__ ).'/tests/ fixtures/ ' .sha1 ($ _GET ['url ' ]).'.json ' ;
12
+ $ cache = dirname (__FILE__ ).'/fixtures/ ' .sha1 ($ _GET ['url ' ]).'.json ' ;
13
13
if (file_exists ($ cache )) {
14
14
$ out = json_decode (file_get_contents ($ cache ),true );
15
15
foreach ($ out ['headers ' ] as $ key =>$ val ) {
Original file line number Diff line number Diff line change
1
+ var allTestFiles = [ ] ;
2
+ var TEST_REGEXP = / ( s p e c | t e s t ) \. j s $ / i;
3
+
4
+ var pathToModule = function ( path ) {
5
+ return path . replace ( / ^ \/ b a s e \/ / , '' ) . replace ( / \. j s $ / , '' ) ;
6
+ } ;
7
+
8
+ Object . keys ( window . __karma__ . files ) . forEach ( function ( file ) {
9
+ if ( TEST_REGEXP . test ( file ) ) {
10
+ // Normalize paths to RequireJS module names.
11
+ allTestFiles . push ( pathToModule ( file ) ) ;
12
+ }
13
+ } ) ;
14
+
15
+ require . config ( {
16
+ // Karma serves files under /base, which is the basePath from your config file
17
+ baseUrl : '/base' ,
18
+
19
+ // dynamically load all test files
20
+ deps : allTestFiles ,
21
+
22
+ // we have to kickoff jasmine, as it is asynchronous
23
+ callback : window . __karma__ . start
24
+ } ) ;
You can’t perform that action at this time.
0 commit comments