Skip to content

JSON input validation browser tests fail on IE #8973

@LeeDr

Description

@LeeDr

Kibana version: master (6.0.0-alpha1)

Elasticsearch version: master

Server OS version: Windows 10

Browser version: IE 11

Browser OS version: Windows 10

Original install method (e.g. download page, yum, from source, etc.): dev testing

Description of the problem including expected versus actual behavior: There are 4 tests that fail on Windows/IE but pass on Windows/Chrome.

A few other tests also fail, but they were timeouts on the 10s timeout setting and I submitted a PR to change that timeout to 20s.

Steps to reproduce:

  1. npm run test:dev
  2. When IE 11 browser opens, create new tab and paste
    http://localhost:9876/debug.html?grep=JSON%20input%20validation
  3. Windows 10, IE 11 output;

JSON input validation

should be able to require keys

Error: expected false to be truthy
at Assertion.prototype.assert (http://localhost:5610/bundles/tests.bundle.js:290556:8)
at Assertion.prototype.ok (http://localhost:5610/bundles/tests.bundle.js:290569:6)
at Anonymous function (http://localhost:5610/bundles/tests.bundle.js:290953:8)
at Anonymous function (http://localhost:5610/bundles/tests.bundle.js:308138:7)


should be able to not require keys


should be able to read parse an input

Error: expected undefined to sort of equal {}
at Assertion.prototype.assert (http://localhost:5610/bundles/tests.bundle.js:290556:8)
at Assertion.prototype.eql (http://localhost:5610/bundles/tests.bundle.js:290684:6)
at Anonymous function (http://localhost:5610/bundles/tests.bundle.js:308153:7)


should not allow invalid json

Error: expected false to be truthy
at Assertion.prototype.assert (http://localhost:5610/bundles/tests.bundle.js:290556:8)
at Assertion.prototype.ok (http://localhost:5610/bundles/tests.bundle.js:290569:6)
at Anonymous function (http://localhost:5610/bundles/tests.bundle.js:290953:8)
at Anonymous function (http://localhost:5610/bundles/tests.bundle.js:308159:7)


should allow valid json

Error: expected undefined to sort of equal { foo: 'bar' }
at Assertion.prototype.assert (http://localhost:5610/bundles/tests.bundle.js:290556:8)
at Assertion.prototype.eql (http://localhost:5610/bundles/tests.bundle.js:290684:6)
at Anonymous function (http://localhost:5610/bundles/tests.bundle.js:308165:7)

Windows/Chrome output;

passes: 5 failures: 0 duration: 0.20s

JSON input validation
should be able to require keys ‣
should be able to not require keys ‣
should be able to read parse an input ‣
should not allow invalid json ‣
should allow valid json

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//bugFixes for quality problems that affect the customer experiencefailed-testA test failure on a tracked branch, potentially flaky-testtest

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions