| ... | ... |
@@ -9,12 +9,12 @@ casper.then(-> |
| 9 | 9 |
@test.assertNotExists('#js-active-friends ul', 'Active list doesn\'t exists')
|
| 10 | 10 |
inactiveListLengthBefore = @inactiveListLength() |
| 11 | 11 |
|
| 12 |
- @click('#js-inactive-friends ul li:nth-child(1)')
|
|
| 12 |
+ @click('#js-inactive-friends ul li:nth-child(2)')
|
|
| 13 | 13 |
@echo 'Clicked on the first person in the inactive roster' |
| 14 | 14 |
|
| 15 | 15 |
inactiveListLengthAfter = @inactiveListLength() |
| 16 | 16 |
|
| 17 |
- @test.assertExists('#conversation-js', 'Conversation window created')
|
|
| 17 |
+ @test.assertExists('#conversation-js .conversation', 'Conversation window created')
|
|
| 18 | 18 |
@test.assertExists('#js-tabbar .tab.active', 'Created new tab in the tabbar')
|
| 19 | 19 |
@test.assert(inactiveListLengthBefore - 1 == inactiveListLengthAfter, 'User isn\'t in the inactive list') |
| 20 | 20 |
@test.assertExists('#js-active-friends ul li', 'User is in the active list')
|
| ... | ... |
@@ -24,7 +24,7 @@ casper.then(-> |
| 24 | 24 |
casper.then(-> |
| 25 | 25 |
inactiveListLengthBefore = @inactiveListLength() |
| 26 | 26 |
|
| 27 |
- @click('#js-inactive-friends ul li:nth-child(1)')
|
|
| 27 |
+ @click('#js-inactive-friends ul li:nth-child(2)')
|
|
| 28 | 28 |
@echo 'Clicked on the first person in the inactive roster' |
| 29 | 29 |
|
| 30 | 30 |
tabsLength = @tabsLength() |
| ... | ... |
@@ -22,10 +22,10 @@ casper.login = -> |
| 22 | 22 |
) |
| 23 | 23 |
|
| 24 | 24 |
casper.inactiveListLength = -> |
| 25 |
- casper.evaluate(-> __utils__.findAll('#js-inactive-friends ul li').length)
|
|
| 25 |
+ casper.evaluate(-> __utils__.findAll('#js-inactive-friends ul li.user').length)
|
|
| 26 | 26 |
|
| 27 | 27 |
casper.activeListLength = -> |
| 28 |
- casper.evaluate(-> __utils__.findAll('#js-active-friends ul li').length)
|
|
| 28 |
+ casper.evaluate(-> __utils__.findAll('#js-active-friends ul li.user').length)
|
|
| 29 | 29 |
|
| 30 | 30 |
casper.tabsLength = -> |
| 31 | 31 |
casper.evaluate(-> __utils__.findAll('#js-tabbar .tab').length)
|