xolvio / rtd

DEPRECATED: The Test Runner for Meteor
164 stars 37 forks source link

Page with status code 401 will fail #164

Closed monbro closed 10 years ago

monbro commented 10 years ago

Unfortunately when I am going to test a get request for a page it will responde with

>> UnknownError: {"errorMessage":"'undefined' is not a function (evaluating 'document.postCoverage()')","request":{"headers":{"Accept":"application/json, image/png","Connection":"Keep-Alive","Content-Length":"118","Content-Type":"application/json; charset=utf-8","Host":"localhost:4965"},"httpVersion":"1.1","method":"POST","post":"{\"args\":[],\"script\":\"return (function () {\\n            document.postCoverage();\\n        }).apply(null, arguments);\"}","url":"/execute","urlParsed":{"anchor":"","query":"","file":"execute","directory":"/","path":"/execute","relative":"/execute","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/execute","queryKey":{},"chunks":["execute"]},"urlOriginal":"/session/8c961e40-d0a0-11e3-98ca-e5766a7156a4/execute"}}
>> Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:11:15'
>> System info: host: 'monbros-MacBook-Pro.local', ip: '192.168.43.108', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.2', java.version: '1.6.0_65'
>> Driver info: driver.version: unknown

this only happens when the page response with a statuscode 401 instead of a 200.

monbro commented 10 years ago

okay I had to remove the bit

    afterEach(function() {
        var ready = false;
        helper.postBackCoverage().then(function () {
            ready = true;
        });
        waitsFor(function () {
            return ready;
        }, "Coverage didn't postback", 10000);
    });

from my sepc as they do not work proper somehow. I do have multiple spec files in the acceptance folder.