Skip to content

Commit

Permalink
tests(cypress): reduce cypress flakiness by retrying login on failure (
Browse files Browse the repository at this point in the history
…datahub-project#4423)

* query for custom properties on containers

* retry login in cypress

* syntax fix
  • Loading branch information
gabe-lyons authored Mar 16, 2022
1 parent 2d10d99 commit ad039aa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions smoke-test/tests/cypress/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@
//
// -- This is a parent command --
Cypress.Commands.add('login', () => {
cy.request('POST', '/logIn', {
cy.request({
method: 'POST',
url: '/logIn',
body: {
username: 'datahub',
password: 'datahub',
})
},
retryOnStatusCodeFailure: true,
});
})

Cypress.Commands.add('deleteUrn', (urn) => {
Expand Down

0 comments on commit ad039aa

Please sign in to comment.