Skip to content

Commit 959368f

Browse files
committed
Add snapshots for gh_project.
1 parent cae2306 commit 959368f

File tree

7 files changed

+7629
-7
lines changed

7 files changed

+7629
-7
lines changed

browser-extension/tests/corpus-har-record.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async function sanitize(filename: string) {
8484
await fs.writeFile(p, JSON.stringify(har, null, 2))
8585
}
8686

87-
; (async () => {
87+
;(async () => {
8888
const pattern = process.argv[2]
8989

9090
// If no argument provided, show available keys

browser-extension/tests/corpus/_corpus-index.ts

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,38 @@ export const CORPUS: Record<string, CorpusEntry> = {
2929
type: 'har',
3030
url: 'https://github.com/diffplug/selfie/pull/517',
3131
},
32-
// HTML corpus (captured after user interactions via SingleFile)
33-
// Add new entries here as needed, e.g.:
34-
// gh_issue_with_comment_preview: {
35-
// url: 'https://github.com/diffplug/selfie/issues/523',
32+
// gh_issue_edit: {
33+
// description: 'editing an existing comment on an issue',
3634
// type: 'html',
37-
// description: 'Issue page with comment textarea expanded and preview tab active'
38-
// }
35+
// url: 'https://TODO'
36+
// },
37+
// gh_pr_edit: {
38+
// description: 'editing an existing comment on a PR',
39+
// type: 'html',
40+
// url: 'https://TODO'
41+
// },
42+
gh_project: {
43+
description: 'github project board initial load',
44+
type: 'html',
45+
url: 'https://github.com/orgs/diffplug/projects/12',
46+
},
47+
gh_project_draft: {
48+
type: 'html',
49+
url: 'https://github.com/orgs/diffplug/projects/12/views/1?pane=issue&itemId=129503329',
50+
},
51+
gh_project_draft_edit: {
52+
description: 'editing an existing comment on a draft issue within a project',
53+
type: 'html',
54+
url: 'https://github.com/orgs/diffplug/projects/12/views/1?pane=issue&itemId=129503329',
55+
},
56+
gh_project_issue: {
57+
description: 'github project board issue add comment',
58+
type: 'html',
59+
url: 'https://github.com/orgs/diffplug/projects/12/views/1?pane=issue&itemId=129503239&issue=diffplug%7Cgitcasso%7C57',
60+
},
61+
gh_project_issue_edit: {
62+
description: 'editing an existing comment on a issue within a project',
63+
type: 'html',
64+
url: 'https://github.com/orgs/diffplug/projects/12/views/1?pane=issue&itemId=129503239&issue=diffplug%7Cgitcasso%7C57',
65+
},
3966
} as const

browser-extension/tests/corpus/gh_project.html

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

browser-extension/tests/corpus/gh_project_draft.html

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

browser-extension/tests/corpus/gh_project_draft_edit.html

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

browser-extension/tests/corpus/gh_project_issue.html

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

browser-extension/tests/corpus/gh_project_issue_edit.html

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

0 commit comments

Comments
 (0)