= (props) => {
} = props;
return (
{
// Checkboxes inside labels will trigger click events twice.
// Ignore the input click event
diff --git a/client/fixtures/consents.ts b/client/fixtures/consents.ts
index a41f62ad4..b00c15085 100644
--- a/client/fixtures/consents.ts
+++ b/client/fixtures/consents.ts
@@ -63,7 +63,7 @@ export const consents = [
isOptOut: false,
isChannel: false,
isProduct: false,
- name: 'Guardian products and support',
+ name: 'Similar Guardian products',
description:
'Information on our products and ways to support and enjoy our independent journalism.',
},
diff --git a/cypress/tests/e2e/e2e.cy.ts b/cypress/tests/e2e/e2e.cy.ts
index 89b0df6d6..72811dbba 100644
--- a/cypress/tests/e2e/e2e.cy.ts
+++ b/cypress/tests/e2e/e2e.cy.ts
@@ -34,9 +34,9 @@ describe('E2E with Okta', () => {
context('emails tab', () => {
it('should allow the user to update their email preferences', () => {
cy.visit('/email-prefs');
- cy.findByText('Guardian products and support').click();
+ cy.get('[data-cy="similar_guardian_products"]').click();
cy.visit('/email-prefs');
- cy.findByText('Guardian products and support')
+ cy.get('[data-cy="similar_guardian_products"]')
.parents('div')
.get('input[type="checkbox"]')
.should('be.checked');
diff --git a/cypress/tests/mocked/parallel-6/emailAndMarketing.cy.ts b/cypress/tests/mocked/parallel-6/emailAndMarketing.cy.ts
index 01d547771..5e71b5c70 100644
--- a/cypress/tests/mocked/parallel-6/emailAndMarketing.cy.ts
+++ b/cypress/tests/mocked/parallel-6/emailAndMarketing.cy.ts
@@ -63,7 +63,7 @@ describe('Email and Marketing page', () => {
cy.wait('@consents');
cy.wait('@reminders');
- cy.findByText('Guardian products and support');
+ cy.get('[data-cy="similar_guardian_products"]');
cy.findByText('Your subscription/support');
cy.findByText('Supporter newsletter');
});
@@ -90,7 +90,7 @@ describe('Email and Marketing page', () => {
cy.wait('@consents');
cy.wait('@reminders');
- cy.findByText('Guardian products and support');
+ cy.get('[data-cy="similar_guardian_products"]');
cy.findByText('Your subscription/support');
cy.findByText('Supporter newsletter');
});