Testing back in currentResponse
Showing
1 changed file
with
6 additions
and
0 deletions
... | @@ -32,6 +32,12 @@ casper.thenOpen('http://localhost:8090/', function thenLocalhost (response) { | ... | @@ -32,6 +32,12 @@ casper.thenOpen('http://localhost:8090/', function thenLocalhost (response) { |
32 | this.test.assertEquals(headers.get('X-Is-Troll'), null, 'Checking unexisting header'); | 32 | this.test.assertEquals(headers.get('X-Is-Troll'), null, 'Checking unexisting header'); |
33 | }); | 33 | }); |
34 | 34 | ||
35 | casper.back(); | ||
36 | |||
37 | casper.then(function(response){ | ||
38 | this.test.assertEquals(response, undefined, 'Response should match the one of the previous step'); | ||
39 | }); | ||
40 | |||
35 | casper.run(function () { | 41 | casper.run(function () { |
36 | server.close(); | 42 | server.close(); |
37 | this.test.done(); | 43 | this.test.done(); | ... | ... |
-
Please register or sign in to post a comment