diff --git a/cypress/support/assertions/expect_alerts.js b/cypress/support/assertions/expect_alerts.js index 25640b30316..669e8b7b289 100644 --- a/cypress/support/assertions/expect_alerts.js +++ b/cypress/support/assertions/expect_alerts.js @@ -164,5 +164,8 @@ Cypress.Commands.add('expect_inline_field_errors', ({ containsText }) => { if (!containsText) { cy.logAndThrowError('containsText is required'); } - return cy.contains('#name-error-msg', containsText); -}); \ No newline at end of file + return cy + .contains('#name-error-msg', containsText) + .scrollIntoView() + .should('be.visible'); +});