Skip to content

Commit

Permalink
fix ct reference
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-shehane committed Dec 19, 2024
1 parent 59493e2 commit c2c5f71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/app/src/specs/SpecsListBanners.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ describe('<SpecsListBanners />', { 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) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('<ComponentTestingBanner />', { 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')
})
})

Expand Down

0 comments on commit c2c5f71

Please sign in to comment.