From 195a2406d9123bfffed57e1b98cafc70a78d720f Mon Sep 17 00:00:00 2001 From: Thomas Kam Date: Sat, 19 Oct 2024 02:27:19 -0400 Subject: [PATCH] fix cypress tests --- e2e/cypress/e2e/client-admin/conversation.cy.js | 2 +- e2e/cypress/e2e/client-participation/embeds.cy.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e/cypress/e2e/client-admin/conversation.cy.js b/e2e/cypress/e2e/client-admin/conversation.cy.js index 1323d5045..2203b7164 100644 --- a/e2e/cypress/e2e/client-admin/conversation.cy.js +++ b/e2e/cypress/e2e/client-admin/conversation.cy.js @@ -87,7 +87,7 @@ describe('Conversation: Configure', function () { cy.wait('@participationInit') cy.get('[data-view-name="participationView"]').should('be.visible') - cy.get('h2').contains('Test topic closed').should('be.visible') + cy.get('h1').contains('Test topic closed').should('be.visible') }) }) }) diff --git a/e2e/cypress/e2e/client-participation/embeds.cy.js b/e2e/cypress/e2e/client-participation/embeds.cy.js index 27a985508..a22e318a3 100644 --- a/e2e/cypress/e2e/client-participation/embeds.cy.js +++ b/e2e/cypress/e2e/client-participation/embeds.cy.js @@ -41,7 +41,7 @@ describe('Embedded Conversations', function () { cy.getIframeBody() .find('.conversationViewHeadline') - .find('h2') + .find('h1') .should('contain', topic) .siblings('p') .should('contain', description) @@ -120,7 +120,7 @@ describe('Embedded Conversations', function () { .find('[data-view-name="root"]') .should('be.visible') .find('.conversationViewHeadline') - .find('h2') + .find('h1') .should('contain', topic) .siblings('p') .should('not.exist') @@ -160,7 +160,7 @@ describe('Embedded Conversations', function () { cy.getIframeBody() .find('[data-view-name="root"]') .should('be.visible') - .find('.conversationViewHeadline h2') + .find('.conversationViewHeadline h1') .should('not.exist') }) })