Skip to content

Commit b489414

Browse files
committed
Add gh_issue_new_complex_template to the corpus.
1 parent 57fa291 commit b489414

File tree

4 files changed

+1679
-1
lines changed

4 files changed

+1679
-1
lines changed

tests/corpus/_corpus-index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,15 @@ export const CORPUS: Record<string, CorpusEntry> = {
2424
url: "https://github.com/diffplug/testing-deletable/issues/3",
2525
},
2626
gh_issue_new: {
27-
description: "a new issue wiht some fields filled out",
27+
description: "a new issue with some fields filled out",
2828
type: "html",
2929
url: "https://github.com/diffplug/gitcasso/issues/new",
3030
},
31+
gh_issue_new_complex_template: {
32+
description: "a new issue with complex templating and multiple fields",
33+
type: "html",
34+
url: "https://github.com/anthropics/claude-code/issues",
35+
},
3136
gh_pr: {
3237
type: "har",
3338
url: "https://github.com/diffplug/selfie/pull/517",

tests/corpus/gh_issue_new_complex_template.html

Lines changed: 1646 additions & 0 deletions
Large diffs are not rendered by default.

tests/lib/enhancers/__snapshots__/gh-detection.test.ts.snap

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,31 @@ exports[`github detection > gh_issue_new:should detect correct spots 1`] = `
8787
]
8888
`;
8989

90+
exports[`github detection > gh_issue_new_complex_template:should detect correct spots 1`] = `
91+
[
92+
{
93+
"for": "id=:ri7: name=null className=prc-Textarea-TextArea-13q4j",
94+
"spot": "NO_SPOT",
95+
},
96+
{
97+
"for": "id=:rjd: name=null className=prc-Textarea-TextArea-13q4j",
98+
"spot": "NO_SPOT",
99+
},
100+
{
101+
"for": "id= name=null className=prc-Textarea-TextArea-13q4j",
102+
"spot": "NO_SPOT",
103+
},
104+
{
105+
"for": "id=:rkn: name=null className=prc-Textarea-TextArea-13q4j focus-visible",
106+
"spot": "NO_SPOT",
107+
},
108+
{
109+
"for": "id=:rne: name=null className=prc-Textarea-TextArea-13q4j",
110+
"spot": "NO_SPOT",
111+
},
112+
]
113+
`;
114+
90115
exports[`github detection > gh_pr:should detect correct spots 1`] = `
91116
[
92117
{

tests/lib/enhancers/__snapshots__/gh-ui.test.ts.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ exports[`github ui > gh_issue_new:should render correct UI elements 1`] = `
136136
]
137137
`;
138138

139+
exports[`github ui > gh_issue_new_complex_template:should render correct UI elements 1`] = `[]`;
140+
139141
exports[`github ui > gh_pr:should render correct UI elements 1`] = `
140142
[
141143
{

0 commit comments

Comments
 (0)