forked from vuejs/vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnested-vms.js
21 lines (16 loc) · 889 Bytes
/
nested-vms.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
casper.test.begin('Nested Viewmodels', 7, function (test) {
casper
.start('./fixtures/nested-vms.html')
.then(function () {
test.assertSelectorHasText('.ancestor', 'Andy Johnson')
test.assertSelectorHasText('.jack', 'Jack, son of Andy')
test.assertSelectorHasText('.mike', 'Mike, son of Jack')
test.assertSelectorHasText('.jason', 'Jason, son of Jack')
test.assertSelectorHasText('.tim', 'Tim, son of Mike, grandson of Jack, great-grandson of Andy, and offspring of family Johnson.')
test.assertSelectorHasText('.tom', 'Tom, son of Mike, grandson of Jack, great-grandson of Andy, and offspring of family Johnson.')
test.assertSelectorHasText('.andrew', 'Andrew, son of Jason, grandson of Jack, great-grandson of Andy, and offspring of family Johnson.')
})
.run(function () {
test.done()
})
})