Skip to content

Chrome DevTools for coding agents

1.6 KB
Raw Blame
exports[`CommentFormatter > formats comments with targets and editor locations toJSON 1`] = `
[
  {
    "id": "comment-1",
    "text": "Fix the color contrast here",
    "elementUid": "element-uid-42",
    "reqid": 7
  }
]
`;

exports[`CommentFormatter > formats comments with targets and editor locations toString 1`] = `
Found 1 DevTools comment thread(s):

### Thread: comment-1
- Comment: Fix the color contrast here
- Related element uid: element-uid-42
- Related network reqid: 7
`;

exports[`CommentFormatter > formats empty comments list toJSON 1`] = `
[]
`;

exports[`CommentFormatter > formats empty comments list toString 1`] = `
No open DevTools comments found.
`;

exports[`CommentFormatter > formats single thread using static formatThread 1`] = `
### Thread: comment-3
- Comment: Check padding
- Related element uid: node-99
`;

exports[`CommentFormatter > omits unresolved targets when from() resolves undefined toJSON 1`] = `
[
  {
    "id": "comment-2",
    "text": "Fix heading font size"
  }
]
`;

exports[`CommentFormatter > omits unresolved targets when from() resolves undefined toString 1`] = `
Found 1 DevTools comment thread(s):

### Thread: comment-2
- Comment: Fix heading font size
`;

exports[`CommentFormatter > resolves targets using from() method toJSON 1`] = `
[
  {
    "id": "comment-1",
    "text": "Fix the color contrast here",
    "elementUid": "element-uid-42",
    "reqid": 7
  }
]
`;

exports[`CommentFormatter > resolves targets using from() method toString 1`] = `
Found 1 DevTools comment thread(s):

### Thread: comment-1
- Comment: Fix the color contrast here
- Related element uid: element-uid-42
- Related network reqid: 7
`;