Skip to content

Flaky test for bugs/4641 #6001

@tim-lai

Description

@tim-lai

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions