Fix stale GitHub task drawer (#5424)
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -17,6 +17,15 @@ function sourceBetween(source: string, startPattern: string, endPattern: string)
|
||||
}
|
||||
|
||||
describe('GitHubItemDialog source host boundaries', () => {
|
||||
it('does not keep the stale right-side sheet owner', () => {
|
||||
const source = componentSource('GitHubItemDialog.tsx')
|
||||
|
||||
expect(source).not.toContain('@/components/ui/sheet')
|
||||
expect(source).not.toContain('<Sheet')
|
||||
expect(source).not.toContain('<SheetContent')
|
||||
expect(source).not.toContain("variant?: 'sheet'")
|
||||
})
|
||||
|
||||
it('routes reviewer metadata and reviewer mutations through the task source context', () => {
|
||||
const source = componentSource('GitHubItemDialog.tsx')
|
||||
const section = sourceBetween(source, 'function PRReviewersPanel', 'function isPRFileViewed')
|
||||
|
||||
Reference in New Issue
Block a user