mirror of
https://github.com/nexu-io/open-design.git
synced 2026-05-31 19:04:39 +07:00
test(comments): assert hard-scope sentence text in web and daemon renderers
This commit is contained in:
parent
689ff3ba59
commit
d7b06792aa
2 changed files with 12 additions and 0 deletions
|
|
@ -171,6 +171,12 @@ describe('preview comment agent payload', () => {
|
|||
expect(hint).toContain('file: index.html');
|
||||
expect(hint).toContain('selector: [data-od-id="hero-title"]');
|
||||
expect(hint).toContain('comment: Make the headline shorter');
|
||||
// The hard-scope sentence IS the behavior change. Assert its key phrases
|
||||
// so a future edit that softens or drops the directive lights the suite
|
||||
// red instead of silently re-opening the over-broad edit bug.
|
||||
expect(hint).toContain('Hard scope: change ONLY');
|
||||
expect(hint).toContain('Do NOT modify sibling sub-pages, parent layout, global CSS, design tokens, or unrelated rules');
|
||||
expect(hint).toContain('ask the user before proceeding');
|
||||
});
|
||||
|
||||
it('renders pod attachments with grouped member context', () => {
|
||||
|
|
|
|||
|
|
@ -242,6 +242,12 @@ describe('preview comment attachment helpers', () => {
|
|||
expect(content).toContain('<attached-preview-comments>');
|
||||
expect(content).toContain('selector: [data-od-id="hero-title"]');
|
||||
expect(content).toContain('comment: Only shorten this title');
|
||||
// The hard-scope sentence IS the behavior change. Assert its key phrases
|
||||
// so a future edit that softens or drops the directive lights the suite
|
||||
// red instead of silently re-opening the over-broad edit bug.
|
||||
expect(content).toContain('Hard scope: change ONLY');
|
||||
expect(content).toContain('Do NOT modify sibling sub-pages, parent layout, global CSS, design tokens, or unrelated rules');
|
||||
expect(content).toContain('ask the user before proceeding');
|
||||
});
|
||||
|
||||
it('adds hidden comment context only to the current user message sent to API providers', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue