From 35b7bbcbd3cbbc621df1452b870d5ec00f81a352 Mon Sep 17 00:00:00 2001 From: Yumi Chen <27608365+YumiChen@users.noreply.github.com> Date: Sun, 6 Apr 2025 15:03:53 -0400 Subject: [PATCH 1/2] Move participation page closed badge out of h1 heading --- .../js/templates/participation.handlebars | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/client-participation/js/templates/participation.handlebars b/client-participation/js/templates/participation.handlebars index 953f67a0c0..7f85cb0d2d 100644 --- a/client-participation/js/templates/participation.handlebars +++ b/client-participation/js/templates/participation.handlebars @@ -171,25 +171,26 @@

{{topic}} - {{#unless is_active}} +

+ {{#unless is_active}} closed {{/unless}} - {{/ifDefined}} {{/unless}} From fe3026642cd62b5c77627f384d2b486db96f189c Mon Sep 17 00:00:00 2001 From: Yumi Chen <27608365+YumiChen@users.noreply.github.com> Date: Sun, 6 Apr 2025 15:52:45 -0400 Subject: [PATCH 2/2] Update participation page closed badge e2e test --- e2e/cypress/e2e/client-admin/conversation.cy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/cypress/e2e/client-admin/conversation.cy.js b/e2e/cypress/e2e/client-admin/conversation.cy.js index 2203b71649..8872fe884d 100644 --- a/e2e/cypress/e2e/client-admin/conversation.cy.js +++ b/e2e/cypress/e2e/client-admin/conversation.cy.js @@ -87,7 +87,8 @@ describe('Conversation: Configure', function () { cy.wait('@participationInit') cy.get('[data-view-name="participationView"]').should('be.visible') - cy.get('h1').contains('Test topic closed').should('be.visible') + cy.get('.POLIS_HEADLINE h1').contains('Test topic').should('be.visible') + cy.get('.POLIS_HEADLINE .no_you_vote').contains('closed').should('be.visible') }) }) })