@@ -2,17 +2,16 @@ casper.on('remote.message', function (e) {
2
2
console . log ( e )
3
3
} )
4
4
5
- casper . test . begin ( 'commits' , 26 , function ( test ) {
5
+ casper . test . begin ( 'commits' , 18 , function ( test ) {
6
6
7
7
casper
8
8
. start ( '../../examples/commits/index.html' )
9
9
. then ( function ( ) {
10
10
// radio inputs & labels
11
- test . assertElementCount ( 'input' , 3 )
12
- test . assertElementCount ( 'label' , 3 )
11
+ test . assertElementCount ( 'input' , 2 )
12
+ test . assertElementCount ( 'label' , 2 )
13
13
test . assertSelectorHasText ( 'label[for="master"]' , 'master' )
14
14
test . assertSelectorHasText ( 'label[for="dev"]' , 'dev' )
15
- test . assertSelectorHasText ( 'label[for="1.0.0-alpha"]' , '1.0.0-alpha' )
16
15
// initial fetched commits
17
16
test . assertField ( 'branch' , 'master' )
18
17
test . assertSelectorHasText ( 'p' , 'vuejs/vue@master' )
@@ -31,15 +30,6 @@ casper.test.begin('commits', 26, function (test) {
31
30
test . assertSelectorHasText ( 'li:first-child span.author' , 'Evan' )
32
31
test . assertSelectorHasText ( 'li:first-child span.date' , '2014-10-15 13:52:58' )
33
32
} )
34
- . thenClick ( 'input[value="1.0.0-alpha"]' , function ( ) {
35
- test . assertField ( 'branch' , '1.0.0-alpha' )
36
- test . assertSelectorHasText ( 'p' , 'yyx990803/[email protected] ' )
37
- test . assertElementCount ( 'li' , 3 )
38
- test . assertSelectorHasText ( 'li:first-child a.commit' , '3333333' )
39
- test . assertSelectorHasText ( 'li:first-child span.message' , 'three' )
40
- test . assertSelectorHasText ( 'li:first-child span.author' , 'Evan' )
41
- test . assertSelectorHasText ( 'li:first-child span.date' , '2014-10-15 13:52:58' )
42
- } )
43
33
// run
44
34
. run ( function ( ) {
45
35
test . done ( )
0 commit comments