mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 09:39:23 +00:00
rewards tests
This commit is contained in:
parent
26462be457
commit
278cd04fd1
1 changed files with 19 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
helper = new require('./test/casper/helpers')()
|
||||
casper = helper.casper
|
||||
utils = helper.utils
|
||||
url = helper.url
|
||||
|
||||
casper.start url + '/?play=1'
|
||||
|
||||
# ---------- Rewardsj1 ------------
|
||||
casper.then ->
|
||||
helper.reset()
|
||||
helper.addTasks()
|
||||
|
||||
casper.then -> @test.assertDoesntExist('ul.items')
|
||||
casper.then -> @repeat 50, -> casper.click('.habits a[data-direction="up"]')
|
||||
casper.then -> @test.assertExists('ul.items')
|
||||
|
||||
# ---------- Run ------------
|
||||
casper.run ->
|
||||
casper.test.renderResults true
|
||||
Loading…
Reference in a new issue