aboutsummaryrefslogtreecommitdiff
path: root/tests/test-integration-acceptance.el
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-integration-acceptance.el')
-rw-r--r--tests/test-integration-acceptance.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/test-integration-acceptance.el b/tests/test-integration-acceptance.el
index f83c891..de5f0e7 100644
--- a/tests/test-integration-acceptance.el
+++ b/tests/test-integration-acceptance.el
@@ -37,7 +37,7 @@
;; - pearl-refresh-current-view -> --merge-query-result (in-place merge)
;; - pearl-sync-current-issue -> --sync-decision -> --update-issue-description-async
;; - pearl-add-comment -> --create-comment-async -> --append-comment-to-issue
-;; - pearl-set-priority -> --push-issue-field -> --update-issue-async
+;; - edit the priority cookie + pearl-save-issue -> --save-priority-field -> --update-issue-async
;;; Code:
@@ -77,6 +77,7 @@ because the description-update mutation contains both `IssueDescription' and
(pageInfo (hasNextPage . :json-false)
(endCursor . "c"))))))
('fetch-desc '((data (issue (description . "Original body.")
+ (priority . 2)
(updatedAt . "2026-05-24T00:00:00.000Z")))))
('comment-create '((data (commentCreate
(success . t)
@@ -189,11 +190,14 @@ because the description-update mutation contains both `IssueDescription' and
(goto-char (point-min))
(should (re-search-forward "^\\*\\*\\* Comments$" nil t))
(should (re-search-forward "looks good" nil t))
- ;; --- set priority from inside the subtree ---
+ ;; --- edit the priority cookie, then save (reconcile-on-save) ---
(goto-char (point-min))
(re-search-forward "First issue")
+ (org-back-to-heading t)
+ (let ((org-priority-highest ?A) (org-priority-lowest ?D))
+ (org-priority ?A)) ; [#B] (2) -> [#A] (1)
(setq test-integration--ops nil)
- (pearl-set-priority "Urgent")
+ (pearl-save-issue)
(should (memq 'issue-update test-integration--ops)))))
(provide 'test-integration-acceptance)