Skip to content

Commit

Permalink
chore(EMS-3631-controller): fixed anti-bribery text
Browse files Browse the repository at this point in the history
  • Loading branch information
Zain Kassam committed Jul 24, 2024
1 parent d1dc57a commit 521b7f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const {

const { expandable } = antiBriberyPage;

const { INTRO, TABLE } = CONTENT_STRINGS.VERSIONS[0].EXPANDABLE;
const { INTRO, TABLE } = CONTENT_STRINGS.EXPANDABLE;

const baseUrl = Cypress.config('baseUrl');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ context(
const { expandable } = antiBriberyPage;

it('should render summary text with collapsed conditional `details` content', () => {
cy.checkText(expandable.summary(), CONTENT_STRINGS.VERSIONS[0].EXPANDABLE.INTRO);
cy.checkText(expandable.summary(), CONTENT_STRINGS.EXPANDABLE.INTRO);

expandable.details().should('not.have.attr', 'open');
});
Expand Down
2 changes: 1 addition & 1 deletion src/ui/templates/insurance/declarations/anti-bribery.njk
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</div>

{{ expandableContent.render({
CONTENT: CONTENT_STRINGS.VERSIONS[0].EXPANDABLE
CONTENT: CONTENT_STRINGS.EXPANDABLE
}) }}

<form method="POST" data-cy="form" enctype="application/x-www-form-urlencoded" novalidate>
Expand Down

0 comments on commit 521b7f4

Please sign in to comment.