Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-14081

Cypress test for console-plugin-template is failing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.14.0
    • Management Console
    • None
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Cypress test for console-plugin-template is failing on the CI.
      CI logs:
      Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail121      at installHelmChart (webpack:///./tests/example-page.cy.ts:16:5)122      at Context.eval (webpack:///./tests/example-page.cy.ts:52:8)123124  2) Console plugin template test125       "after all" hook for "Verify the example page title":126     CypressError: You attempted to make a chai-jQuery assertion on an object that is neither a DOM object or a jQuery object.
                    127128The chai-jQuery assertion you used was:129130  > visible131132The invalid subject you asserted on was:133134  > undefined135136To use chai-jQuery assertions your subject must be valid.137138This can sometimes happen if a previous assertion changed the subject.139140Because this error occurred during a `after all` hook we are skipping the remaining tests in the current suite: `Console plugin template test`141142Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail143      at Object.onInvalid (https://console-openshift-console.apps.ci-op-xw7ylvws-fb0c9.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:134226:76)144      at assertDom (https://console-openshift-console.apps.ci-op-xw7ylvws-fb0c9.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:155892:26)145      at assert (https://console-openshift-console.apps.ci-op-xw7ylvws-fb0c9.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:155898:5)146      at Assertion. (https://console-openshift-console.apps.ci-op-xw7ylvws-fb0c9.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:156000:14)147      at Assertion.propertyGetter (https://console-openshift-console.apps.ci-op-xw7ylvws-fb0c9.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:81935:29)148      at Object.proxyGetter [as get] (https://console-openshift-console.apps.ci-op-xw7ylvws-fb0c9.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:83373:22)149      at applyChainer (https://console-openshift-console.apps.ci-op-xw7ylvws-fb0c9.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:138791:27)150      at  (https://console-openshift-console.apps.ci-op-xw7ylvws-fb0c9.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:138852:16)151      at arrayReduce (https://console-openshift-console.apps.ci-op-xw7ylvws-fb0c9.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:28294:21)152      at Function.reduce (https://console-openshift-console.apps.ci-op-xw7ylvws-fb0c9.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:37346:14)153      at applyChainers (https://console-openshift-console.apps.ci-op-xw7ylvws-fb0c9.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:138829:68)154      at tryCatcher (https://console-openshift-console.apps.ci-op-xw7ylvws-fb0c9.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:11327:23)155      at Promise.attempt.Promise.try (https://console-openshift-console.apps.ci-op-xw7ylvws-fb0c9.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:8601:29)156      at Context.shouldFn (https://console-openshift-console.apps.ci-op-xw7ylvws-fb0c9.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:138858:63)157      at Context.should (https://console-openshift-console.apps.ci-op-xw7ylvws-fb0c9.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:138877:23)158      at wrapped (https://console-openshift-console.apps.ci-op-xw7ylvws-fb0c9.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:157819:19)159  From Your Spec Code:160      at Context.eval (webpack:///./support/login.ts:45:36)

      Version-Release number of selected component (if applicable):

      4.14

      How reproducible:

      Always

      Steps to Reproduce:

      1. Check any console-plugin-template PR https://github.com/openshift/console-plugin-template/pulls
      2.
      3.
      

      Actual results:

       

      Expected results:

       

      Additional info:

       

            jhadvig@redhat.com Jakub Hadvig
            jhadvig@redhat.com Jakub Hadvig
            Xiyun Zhao Xiyun Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: