Skip to content

Wrong validation results after upgrading to v3 #226

@jelhan

Description

@jelhan

I see failing tests after upgrading ember-changeset-validations to v3 in ember-bootstrap-changeset-validations due to wrong validation results.

Commit in which the upgrade was done: ember-bootstrap/ember-bootstrap-changeset-validations@f7ff002

TravisCI for that commit: https://travis-ci.org/kaliber5/ember-bootstrap-changeset-validations/jobs/650006769?utm_medium=notification&utm_source=github_status

Test report

not ok 6 Chrome 80.0 - [76 ms] - Integration | Component | bs form element: invalid validation is supported as expected

    ---

        actual: >

            form-control is-valid ember-view

        expected: >

            is-invalid

        stack: >

                at DOMAssertions.hasClass (http://localhost:7357/assets/test-support.js:10088:20)

                at Object._callee2$ (http://localhost:7357/assets/tests.js:136:37)

                at tryCatch (http://localhost:7357/assets/vendor.js:413:40)

                at Generator.invoke [as _invoke] (http://localhost:7357/assets/vendor.js:687:22)

                at Generator.prototype.<computed> [as next] (http://localhost:7357/assets/vendor.js:446:21)

                at asyncGeneratorStep (http://localhost:7357/assets/tests.js:6:105)

        message: >

            input has error class

        negative: >

            false

        browser log: |

    ...

not ok 7 Chrome 80.0 - [136 ms] - Integration | Component | bs form element: more complicated validations

    ---

        actual: >

            form-control is-valid ember-view

        expected: >

            is-invalid

        stack: >

                at DOMAssertions.hasClass (http://localhost:7357/assets/test-support.js:10088:20)

                at Object._callee3$ (http://localhost:7357/assets/tests.js:208:47)

                at tryCatch (http://localhost:7357/assets/vendor.js:413:40)

                at Generator.invoke [as _invoke] (http://localhost:7357/assets/vendor.js:687:22)

                at Generator.prototype.<computed> [as next] (http://localhost:7357/assets/vendor.js:446:21)

                at asyncGeneratorStep (http://localhost:7357/assets/tests.js:6:105)

        message: >

            password does have error when focus out.

        negative: >

            false

        browser log: |

    ...

Tests

  1. https://github.com/kaliber5/ember-bootstrap-changeset-validations/blob/f7ff00243e5186a3995c4818c952131b4fe7ff9b/tests/integration/components/bs-form-element-test.js#L60-L83
  2. https://github.com/kaliber5/ember-bootstrap-changeset-validations/blob/f7ff00243e5186a3995c4818c952131b4fe7ff9b/tests/integration/components/bs-form-element-test.js#L86-L129

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions