Skip to content

Commit 5e6a58b

Browse files
committed
test(acceptance): fix discussion comment acceptance tests
Signed-off-by: Babak K. Shandiz <babakks@github.com>
1 parent d63ab8d commit 5e6a58b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

acceptance/testdata/discussion/discussion-comment.txtar

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ exec gh discussion comment $SECOND_COMMENT_ID --body-file $WORK/reply-body.txt
4343
stdout 'discussioncomment'
4444

4545
# Verify the reply appears
46-
exec gh discussion view $DISCUSSION_URL --replies $FIRST_COMMENT_ID --json comments
46+
exec gh discussion view $FIRST_COMMENT_ID --json comments
4747
stdout2env REPLIES_JSON
4848
jq-assert REPLIES_JSON '.comments.nodes[0].replies.nodes | length' '^1$'
4949
jq-assert REPLIES_JSON '.comments.nodes[0].replies.nodes[0].body' 'Reply to first'
5050
jq2env REPLIES_JSON '.comments.nodes[0].replies.nodes[0].id' FIRST_REPLY_ID
5151

52-
exec gh discussion view $DISCUSSION_URL --replies $SECOND_COMMENT_ID --json comments
52+
exec gh discussion view $SECOND_COMMENT_ID --json comments
5353
stdout2env REPLIES_JSON
5454
jq-assert REPLIES_JSON '.comments.nodes[0].replies.nodes | length' '^1$'
5555
jq-assert REPLIES_JSON '.comments.nodes[0].replies.nodes[0].body' 'Reply from file'
@@ -109,7 +109,7 @@ stdout2env REPLY_URL
109109
stdout 'discussioncomment'
110110

111111
# Verify the reply
112-
exec gh discussion view $DISCUSSION_URL --replies $FIRST_COMMENT_URL --order oldest --json comments
112+
exec gh discussion view $FIRST_COMMENT_URL --order oldest --json comments
113113
stdout2env URL_REPLIES_JSON
114114
jq-assert URL_REPLIES_JSON '.comments.nodes[0].replies.nodes | length' '^2$'
115115

@@ -118,7 +118,7 @@ exec gh discussion comment $REPLY_URL --edit --body 'Edited reply via URL'
118118
stdout 'discussioncomment'
119119

120120
# Verify the edit
121-
exec gh discussion view $DISCUSSION_URL --replies $FIRST_COMMENT_URL --order oldest --json comments
121+
exec gh discussion view $FIRST_COMMENT_URL --order oldest --json comments
122122
stdout2env EDITED_URL_REPLIES_JSON
123123
jq-assert EDITED_URL_REPLIES_JSON '.comments.nodes[0].replies.nodes[0].body' 'Edited first reply'
124124
jq-assert EDITED_URL_REPLIES_JSON '.comments.nodes[0].replies.nodes[1].body' 'Edited reply via URL'
@@ -127,7 +127,7 @@ jq-assert EDITED_URL_REPLIES_JSON '.comments.nodes[0].replies.nodes[1].body' 'Ed
127127
exec gh discussion comment $REPLY_URL --delete --yes
128128

129129
# Verify deletion
130-
exec gh discussion view $DISCUSSION_URL --replies $FIRST_COMMENT_URL --order oldest --json comments
130+
exec gh discussion view $FIRST_COMMENT_URL --order oldest --json comments
131131
stdout2env FINAL_URL_REPLIES_JSON
132132
jq-assert FINAL_URL_REPLIES_JSON '.comments.nodes[0].replies.nodes | length' '^1$'
133133
jq-assert FINAL_URL_REPLIES_JSON '.comments.nodes[0].replies.nodes[0].body' 'Edited first reply'

0 commit comments

Comments
 (0)