diff --git a/smoke-test/tests/cypress/cypress/support/commands.js b/smoke-test/tests/cypress/cypress/support/commands.js index 74b071682c3f0..decdb243e6516 100644 --- a/smoke-test/tests/cypress/cypress/support/commands.js +++ b/smoke-test/tests/cypress/cypress/support/commands.js @@ -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) => {