diff --git a/tests/tests/lightspeed-install.cy.ts b/tests/tests/lightspeed-install.cy.ts index 26191a75..f099e675 100644 --- a/tests/tests/lightspeed-install.cy.ts +++ b/tests/tests/lightspeed-install.cy.ts @@ -52,6 +52,7 @@ const POPOVER_TITLE = 'Red Hat OpenShift Lightspeed'; const FOOTER_TEXT = 'Always review AI generated content prior to use.'; const PRIVACY_TEXT = "OpenShift Lightspeed uses AI technology to help answer your questions. Do not include personal information or other sensitive information in your input. Interactions may be used to improve Red Hat's products or services."; +const WELCOME_TEXT = 'Welcome to OpenShift Lightspeed'; const CLEAR_CHAT_TEXT = 'Are you sure you want to erase the current chat conversation and start a new chat? This action cannot be undone.'; @@ -199,7 +200,9 @@ spec: cy.visit('/'); cy.byTestID('tour-step-footer-secondary', { timeout: MINUTE }).click(); - cy.get(mainButton, { timeout: 5 * MINUTE }).should('exist'); + cy.get(mainButton, { timeout: 5 * MINUTE }) + .contains(WELCOME_TEXT) + .click(); } });