Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky test for bugs/4641 #6001

Closed
tim-lai opened this issue May 12, 2020 · 0 comments · Fixed by #6013, #6047 or #6048
Closed

Flaky test for bugs/4641 #6001

tim-lai opened this issue May 12, 2020 · 0 comments · Fixed by #6013, #6047 or #6048
Assignees
Milestone

Comments

@tim-lai
Copy link
Contributor

tim-lai commented May 12, 2020

Q&A (please complete the following information)

  • Swagger-UI version: 3.25.1, 3.25.2
    env: Swagger-api Jenkins CI

Content & configuration

log:

 Running:  bugs/4641.js                                                                   (2 of 28)


  #4641: The Logout button in Authorize popup not clearing API Key

    1) should include the given api key in requests

    ✓ should not remember the previous auth value when you logout and reauthorise (1771ms)

    ✓ should only forget the value of the auth the user logged out from (2348ms)


  2 passing (11s)
  1 failing

  1) #4641: The Logout button in Authorize popup not clearing API Key should include the given api key in requests:
     CypressError: Timed out retrying: cy.its() errored because your subject is: 'null'. You cannot access any properties such as 'request' on a 'null' value.

If you expect your subject to be 'null', then add an assertion such as:

cy.wrap(null).should('be.null')
      at Object.cypressErr (http://localhost:3230/__cypress/runner/cypress_runner.js:86207:11)
      at Object.throwErr (http://localhost:3230/__cypress/runner/cypress_runner.js:86162:18)
      at Object.throwErrByPath (http://localhost:3230/__cypress/runner/cypress_runner.js:86194:17)
      at retry (http://localhost:3230/__cypress/runner/cypress_runner.js:76849:16)
      at onFailFn (http://localhost:3230/__cypress/runner/cypress_runner.js:65634:16)
      at tryCatcher (http://localhost:3230/__cypress/runner/cypress_runner.js:120203:23)
      at Promise._settlePromiseFromHandler (http://localhost:3230/__cypress/runner/cypress_runner.js:118139:31)
      at Promise._settlePromise (http://localhost:3230/__cypress/runner/cypress_runner.js:118196:18)
      at Promise._settlePromise0 (http://localhost:3230/__cypress/runner/cypress_runner.js:118241:10)
      at Promise._settlePromises (http://localhost:3230/__cypress/runner/cypress_runner.js:118316:18)
      at Async../node_modules/bluebird/js/release/async.js.Async._drainQueue (http://localhost:3230/__cypress/runner/cypress_runner.js:114928:16)
      at Async../node_modules/bluebird/js/release/async.js.Async._drainQueues (http://localhost:3230/__cypress/runner/cypress_runner.js:114938:10)
      at Async.drainQueues (http://localhost:3230/__cypress/runner/cypress_runner.js:114812:14)

Describe the bug you're encountering

See log note above

To reproduce...

Steps to reproduce the behavior:
run the test in bugs/4641.js

Expected behavior

This test should always pass. Currently, it does not always pass.

Screenshots

Additional context or thoughts

@tim-lai tim-lai self-assigned this May 14, 2020
@frantuma frantuma added this to the M2 milestone May 15, 2020
tim-lai added a commit to tim-lai/swagger-ui that referenced this issue May 15, 2020
tim-lai added a commit to tim-lai/swagger-ui that referenced this issue May 27, 2020
mattyb678 pushed a commit to mattyb678/swagger-ui that referenced this issue Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants