mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-28 15:43:10 +00:00
OPS15: remove B102 TooltipProvider JSX nesting guard (#242)
Delete the source-shape regex pin from codebaseConventions.unit.spec.ts. Behavioral coverage remains in campaignQuickActionsDrawer.unit.spec.tsx (focus→suggest with priority:alta hits). Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
This commit is contained in:
parent
f66381e09f
commit
76ec34c436
1 changed files with 0 additions and 19 deletions
|
|
@ -667,22 +667,3 @@ describe('public site metadata global access', () => {
|
||||||
expect(offenders, 'import and call resolveSiteMetadata from @/utilities/seo').toEqual([])
|
expect(offenders, 'import and call resolveSiteMetadata from @/utilities/seo').toEqual([])
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('campaign TooltipProvider wraps quick-actions chrome (B102)', () => {
|
|
||||||
// B91/B100 mount the drawer as a sibling of the scrollport inside
|
|
||||||
// CampaignAppScrollChrome. Nesting TooltipProvider only around {children}
|
|
||||||
// left focus→suggest priority hits (CampaignHoverTooltip) without a
|
|
||||||
// provider and crashed the page.
|
|
||||||
it('lifts TooltipProvider around CampaignAppScrollChrome in the app layout', () => {
|
|
||||||
const layoutPath = resolve(repoRoot, 'src/app/(campaign)/campanha/(app)/layout.tsx')
|
|
||||||
expect(existsSync(layoutPath)).toBe(true)
|
|
||||||
const source = readFileSync(layoutPath, 'utf8')
|
|
||||||
|
|
||||||
expect(source).toMatch(
|
|
||||||
/<TooltipProvider[^>]*>\s*<CampaignAppScrollChrome[\s\S]*?<\/CampaignAppScrollChrome>\s*<\/TooltipProvider>/,
|
|
||||||
)
|
|
||||||
expect(source).not.toMatch(
|
|
||||||
/<CampaignAppScrollChrome[^>]*>\s*<TooltipProvider[\s\S]*?<\/TooltipProvider>\s*<\/CampaignAppScrollChrome>/,
|
|
||||||
)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue