Commit 05ca74174b9fc37fb7547c8028cb1bc8c4c450e3
1 parent
f74a3662f1
Exists in
master
and in
1 other branch
Temp login test
Showing 2 changed files with 9 additions and 14 deletions Side-by-side Diff
login_test.js
View file @
05ca741
1 | 1 | phantom.page.injectJs( 'shim.js'); |
2 | 2 | |
3 | -casper.test.begin('login test', 1, function(test) { | |
3 | +casper.test.begin('login test', 2, function suite(test) { | |
4 | 4 | casper.start('https://flashy.cards/app/login', function() { |
5 | - test.assertExist('.login-form'); | |
5 | + this.wait( 1000); | |
6 | + test.assertHttpStatus(200); | |
7 | + test.assertExists('#login-form', 'this test sucks'); | |
8 | + //require('utils').dump((casper.test.getFailures()); | |
9 | + }).run( function() { | |
10 | + test.done(); | |
6 | 11 | }); |
7 | 12 | }); |
13 | + | |
14 | +//casper.run(); |
ss_test.js
View file @
05ca741
1 | -//http://docs.casperjs.org/en/latest/modules/casper.html#captureselector | |
2 | -//Run with: casperjs --ssl-protocol=tlsv1 ss_test.js | |
3 | - | |
4 | -var casper = require('casper').create({ | |
5 | - viewportSize: {width: 800, height: 600} | |
6 | -}); | |
7 | - | |
8 | -casper.start().zoom(.9).thenOpen('https://flashy.cards/app/login', function() { | |
9 | - this.captureSelector('test2.png','.ng-scope' ); | |
10 | -}); | |
11 | - | |
12 | -casper.run(); |