Skip to content

Commit 5f9d47f

Browse files
committed
test: add e2e spec for redirect with protocol change #383
spec is commented because failing, as detected in issue #383
1 parent f8f52e1 commit 5f9d47f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/e2e-specs.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,16 @@ const tests = [
306306
// result.data.url.should.be.equal('http://httpbin.org/anything');
307307
// }
308308
// },
309+
/*{
310+
description: 'should follow 302 redirect with protocol change http>https #383',
311+
expected: 'resolved: {"status": 200, url: "https://httpbin.org/anything", ...',
312+
func: function (resolve, reject) { cordova.plugin.http.get('http://httpbingo.org/redirect-to?url=https://httpbin.org/anything', {}, {}, resolve, reject); },
313+
validationFunc: function (driver, result) {
314+
debugger;
315+
result.type.should.be.equal('resolved');
316+
result.data.url.should.be.equal('https://httpbin.org/anything');
317+
}
318+
},*/
309319
// {
310320
// description: 'should not follow 302 redirect when following redirects is disabled',
311321
// expected: 'rejected: {"status": 302, ...',

0 commit comments

Comments
 (0)