Explorar o código

Revert commented test due to cookies bug

Gaël Métais %!s(int64=9) %!d(string=hai) anos
pai
achega
76b4ca6ea5
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      test/api/apiTest.js

+ 2 - 2
test/api/apiTest.js

@@ -102,7 +102,7 @@ describe('api', function() {
                 screenshot: true,
                 screenshot: true,
                 device: 'tablet',
                 device: 'tablet',
                 //waitForSelector: '*',
                 //waitForSelector: '*',
-                //cookie: 'foo=bar;domain=google.com',
+                cookie: 'foo=bar;domain=google.com',
                 authUser: 'joe',
                 authUser: 'joe',
                 authPass: 'secret'
                 authPass: 'secret'
             },
             },
@@ -176,7 +176,7 @@ describe('api', function() {
                 // Check if settings are correctly sent and retrieved
                 // Check if settings are correctly sent and retrieved
                 body.params.options.should.have.a.property('device').that.equals('tablet');
                 body.params.options.should.have.a.property('device').that.equals('tablet');
                 //body.params.options.should.have.a.property('waitForSelector').that.equals('*');
                 //body.params.options.should.have.a.property('waitForSelector').that.equals('*');
-                //body.params.options.should.have.a.property('cookie').that.equals('foo=bar');
+                body.params.options.should.have.a.property('cookie').that.equals('foo=bar;domain=google.com');
                 body.params.options.should.have.a.property('authUser').that.equals('joe');
                 body.params.options.should.have.a.property('authUser').that.equals('joe');
                 body.params.options.should.have.a.property('authPass').that.equals('secret');
                 body.params.options.should.have.a.property('authPass').that.equals('secret');