From 1f0df541112631a265c16a96ab4acfb9ace93228 Mon Sep 17 00:00:00 2001 From: Sefa Ilkimen Date: Thu, 25 Jun 2020 07:09:53 +0200 Subject: [PATCH] workaround #344: disable two specs until https://github.com/postmanlabs/httpbin/issues/617 is fixed --- test/e2e-specs.js | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/test/e2e-specs.js b/test/e2e-specs.js index 6eaff0a..6c210d9 100644 --- a/test/e2e-specs.js +++ b/test/e2e-specs.js @@ -288,25 +288,25 @@ const tests = [ JSON.parse(result.data.data).form.should.eql({ test: 'testString' }); } }, - { - description: 'should resolve correct URL after redirect (GET) #33', - expected: 'resolved: {"status": 200, url: "http://httpbin.org/anything", ...', - func: function (resolve, reject) { cordova.plugin.http.get('http://httpbin.org/redirect-to?url=http://httpbin.org/anything', {}, {}, resolve, reject); }, - validationFunc: function (driver, result) { - result.type.should.be.equal('resolved'); - result.data.url.should.be.equal('http://httpbin.org/anything'); - } - }, - { - description: 'should not follow 302 redirect when following redirects is disabled', - expected: 'rejected: {"status": 302, ...', - before: function (resolve, reject) { cordova.plugin.http.disableRedirect(true, resolve, reject) }, - func: function (resolve, reject) { cordova.plugin.http.get('http://httpbin.org/redirect-to?url=http://httpbin.org/anything', {}, {}, resolve, reject); }, - validationFunc: function (driver, result) { - result.type.should.be.equal('rejected'); - result.data.status.should.be.equal(302); - } - }, + // { + // description: 'should resolve correct URL after redirect (GET) #33', + // expected: 'resolved: {"status": 200, url: "http://httpbin.org/anything", ...', + // func: function (resolve, reject) { cordova.plugin.http.get('http://httpbin.org/redirect-to?url=http://httpbin.org/anything', {}, {}, resolve, reject); }, + // validationFunc: function (driver, result) { + // result.type.should.be.equal('resolved'); + // result.data.url.should.be.equal('http://httpbin.org/anything'); + // } + // }, + // { + // description: 'should not follow 302 redirect when following redirects is disabled', + // expected: 'rejected: {"status": 302, ...', + // before: function (resolve, reject) { cordova.plugin.http.disableRedirect(true, resolve, reject) }, + // func: function (resolve, reject) { cordova.plugin.http.get('http://httpbin.org/redirect-to?url=http://httpbin.org/anything', {}, {}, resolve, reject); }, + // validationFunc: function (driver, result) { + // result.type.should.be.equal('rejected'); + // result.data.status.should.be.equal(302); + // } + // }, { description: 'should download a file from given URL to given path in local filesystem', expected: 'resolved: {"content": "\\n\\n" ...',