Skip to content

Commit

Permalink
actually set the property with replaced title
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-shehane committed Dec 20, 2024
1 parent 01fa9cc commit 1251de8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/app/src/specs/SpecsListBanners.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,10 @@ describe('<SpecsListBanners />', { viewportHeight: 260, defaultCommandTimeout: 1
.should('be.visible')

// The ct title has dynamic content and seems complicated to set here, so ignoring
if (defaultMessages.specPage.banners.componentTesting.title) {
defaultMessages.specPage.banners.componentTesting.title.replace('{0}', 'React')
let ctBannerTitle = defaultMessages.specPage.banners.componentTesting.title

if (ctBannerTitle) {
defaultMessages.specPage.banners.componentTesting.title = ctBannerTitle.replace('{0}', 'React')
}

cy.wrap(Object.entries(defaultMessages.specPage.banners[camelCase(bannerTestId)])).each((entry) => {
Expand Down

0 comments on commit 1251de8

Please sign in to comment.