diff --git a/packages/app/src/specs/SpecsListBanners.cy.tsx b/packages/app/src/specs/SpecsListBanners.cy.tsx index ff1db90b119e..3ebbfdd0327b 100644 --- a/packages/app/src/specs/SpecsListBanners.cy.tsx +++ b/packages/app/src/specs/SpecsListBanners.cy.tsx @@ -159,8 +159,7 @@ describe('', { viewportHeight: 260, defaultCommandTimeout: 1 // The ct title has dynamic content and seems complicated to set here, so ignoring if (defaultMessages.specPage.banners.componentTesting.title) { - // @ts-expect-error - delete defaultMessages.specPage.banners.componentTesting.title + defaultMessages.specPage.banners.componentTesting.title.replace('{0}', 'React') } cy.wrap(Object.entries(defaultMessages.specPage.banners[camelCase(bannerTestId)])).each((entry) => { diff --git a/packages/app/src/specs/banners/ComponentTestingAvailableBanner.cy.tsx b/packages/app/src/specs/banners/ComponentTestingAvailableBanner.cy.tsx index 64253ee0a95e..172be4c545de 100644 --- a/packages/app/src/specs/banners/ComponentTestingAvailableBanner.cy.tsx +++ b/packages/app/src/specs/banners/ComponentTestingAvailableBanner.cy.tsx @@ -25,7 +25,7 @@ describe('', { viewportWidth: 1200 }, () => { ) cy.findByTestId('alert-prefix-icon').should('be.visible') - cy.contains(defaultMessages.specPage.banners.ct.title.replace('{0}', framework.name)).should('be.visible') + cy.contains(defaultMessages.specPage.banners.componentTesting.title.replace('{0}', framework.name)).should('be.visible') }) })