Skip to content

Commit

Permalink
Merge pull request #7566 from uktrade/CLS2-one-list-content-change-ti…
Browse files Browse the repository at this point in the history
…er-d

Add heading for one list tier D to  adviser core team
  • Loading branch information
santoshdasa12345 authored Feb 20, 2025
2 parents 022d047 + dfb2c02 commit 49fc86d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ const RenderHasAccountManager = ({
export const LeadITA = ({ company, permissions }) => (
<>
<H2 size={LEVEL_SIZE[3]} data-test="lead-ita-heading">
Lead ITA for {company.name}
{company.oneListGroupTier?.id == '1929c808-99b4-4abf-a891-45f2e187b410'
? 'Advisers on core team'
: `Lead ITA for ${company.name}`}
</H2>
{!!company.oneListGroupGlobalAccountManager ? (
<RenderHasAccountManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ describe('One List core Tier D team', () => {
it('should render the heading', () => {
cy.get('[data-test=lead-ita-heading]')
.should('exist')
.should('have.text', "Lead ITA for Ian's Camper Vans Ltd")
.should('have.text', 'Advisers on core team')
})

it('should render the Lead ITA table', () => {
Expand Down Expand Up @@ -398,7 +398,10 @@ describe('One List core Tier D team', () => {
one_list_group_global_account_manager: adviserFaker({
dit_team: undefined,
}),
one_list_group_tier: { id: '1929c808-99b4-4abf-a891-45f2e187b410' },
one_list_group_tier: {
id: '1929c808-99b4-4abf-a891-45f2e187b410',
name: 'Tier D - International Trade Adviser Accounts',
},
id: companyTierD.id,
})

Expand All @@ -415,7 +418,7 @@ describe('One List core Tier D team', () => {
it('should render the heading', () => {
cy.get('[data-test=lead-ita-heading]')
.should('exist')
.should('have.text', `Lead ITA for ${companyTierDNoTeam.name}`)
.should('have.text', `Advisers on core team`)
})

it('should render the Lead ITA table', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('Lead advisers', () => {
fixtures.company.oneListTierDita.one_list_group_global_account_manager

it('should display a header with the company name', () => {
cy.contains("Lead ITA for Ian's Camper Vans Ltd")
cy.contains('Advisers on core team')
})
it('should render the global account manager table', () => {
assertGovReactTable({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"id": "98d14e94-5d95-e211-a939-e4115bead28a"
},
"one_list_group_tier": {
"name": "Tier D - International Trade Adviser Accounts",
"id": "1929c808-99b4-4abf-a891-45f2e187b410"
},
"contacts": [
Expand Down

0 comments on commit 49fc86d

Please sign in to comment.