From f4746ad141b98940b2328099bfdaba1c106eaa8c Mon Sep 17 00:00:00 2001 From: Jonas De Vrient <32844711+devrnt@users.noreply.github.com> Date: Tue, 16 Apr 2024 06:20:24 +0000 Subject: [PATCH] Update some e2e assertions --- apps/playground/cypress/e2e/provider.ts | 2 +- apps/playground/cypress/e2e/show.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/playground/cypress/e2e/provider.ts b/apps/playground/cypress/e2e/provider.ts index 707756f6..f8079f2c 100644 --- a/apps/playground/cypress/e2e/provider.ts +++ b/apps/playground/cypress/e2e/provider.ts @@ -86,7 +86,7 @@ describe('provider with events', () => { cy.get('iframe[name="intercom-messenger-frame"]').then(($iframe) => { const $body = $iframe.contents().find('body'); - cy.wrap($body).contains('Send us a message').click(); + cy.wrap($body).contains('Ask a question').click(); cy.wait('@intercomHome'); cy.wait('@intercomConversations'); diff --git a/apps/playground/cypress/e2e/show.ts b/apps/playground/cypress/e2e/show.ts index f1707e30..49d29ee5 100644 --- a/apps/playground/cypress/e2e/show.ts +++ b/apps/playground/cypress/e2e/show.ts @@ -27,7 +27,7 @@ describe('show', () => { .then(($iframe) => { const $body = $iframe.contents().find('body'); - cy.wrap($body).contains('Send us a message'); + cy.wrap($body).contains('Ask a question'); }); }); }); @@ -60,7 +60,7 @@ describe('showNewMessage', () => { .then(($iframe) => { const $body = $iframe.contents().find('body'); - cy.wrap($body).contains('Ask us anything, or share your feedback.'); + cy.wrap($body).contains('Ask for the team if needed'); cy.wrap($body).find('button[data-testid="go-back"]').should('exist'); }); });