Update PR tests for v2 projects
This commit is contained in:
parent
72f5fbbec0
commit
746da6de00
2 changed files with 29 additions and 2 deletions
|
|
@ -54,6 +54,33 @@
|
|||
],
|
||||
"totalcount": 5
|
||||
},
|
||||
"projectitems": {
|
||||
"totalCount": 2,
|
||||
"nodes": [
|
||||
{
|
||||
"id": "NO_STATUS_ITEM",
|
||||
"project": {
|
||||
"id": "PROJECT1",
|
||||
"title": "v2 Project 1"
|
||||
},
|
||||
"status": {
|
||||
"optionId": "",
|
||||
"name": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "DONE_STATUS_ITEM",
|
||||
"project": {
|
||||
"id": "PROJECT2",
|
||||
"title": "v2 Project 2"
|
||||
},
|
||||
"status": {
|
||||
"optionId": "PROJECTITEMFIELD1",
|
||||
"name": "Done"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"projectcards": {
|
||||
"nodes": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -286,7 +286,7 @@ func TestPRView_Preview_nontty(t *testing.T) {
|
|||
`reviewers:\t1 \(Requested\)\n`,
|
||||
`assignees:\tmarseilles, monaco\n`,
|
||||
`labels:\tClosed: Duplicate, Closed: Won't Fix, help wanted, Status: In Progress, Type: Bug\n`,
|
||||
`projects:\tProject 1 \(column A\), Project 2 \(column B\), Project 3 \(column C\), Project 4 \(Awaiting triage\)\n`,
|
||||
`projects:\tv2 Project 1 \(No Status\), v2 Project 2 \(Done\), Project 1 \(column A\), Project 2 \(column B\), Project 3 \(column C\), Project 4 \(Awaiting triage\)\n`,
|
||||
`milestone:\tuluru\n`,
|
||||
`\*\*blueberries taste good\*\*`,
|
||||
},
|
||||
|
|
@ -457,7 +457,7 @@ func TestPRView_Preview(t *testing.T) {
|
|||
`Reviewers:.*1 \(.*Requested.*\)\n`,
|
||||
`Assignees:.*marseilles, monaco\n`,
|
||||
`Labels:.*Closed: Duplicate, Closed: Won't Fix, help wanted, Status: In Progress, Type: Bug\n`,
|
||||
`Projects:.*Project 1 \(column A\), Project 2 \(column B\), Project 3 \(column C\), Project 4 \(Awaiting triage\)\n`,
|
||||
`Projects:.*v2 Project 1 \(No Status\), v2 Project 2 \(Done\), Project 1 \(column A\), Project 2 \(column B\), Project 3 \(column C\), Project 4 \(Awaiting triage\)\n`,
|
||||
`Milestone:.*uluru\n`,
|
||||
`blueberries taste good`,
|
||||
`View this pull request on GitHub: https://github.com/OWNER/REPO/pull/12`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue