diff options
Diffstat (limited to 'tests/test-integration-acceptance.el')
| -rw-r--r-- | tests/test-integration-acceptance.el | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test-integration-acceptance.el b/tests/test-integration-acceptance.el index 523d1b3..0e1c64d 100644 --- a/tests/test-integration-acceptance.el +++ b/tests/test-integration-acceptance.el @@ -29,7 +29,7 @@ ;; and a field-setter command — runs for real against a temp active file. ;; ;; Components integrated (all real unless noted): -;; - pearl-run-saved-query -> --build-issue-filter -> --query-issues-async +;; - pearl-run-local-view -> --build-issue-filter -> --query-issues-async ;; - --query-issues-async -> --graphql-request-async (MOCKED at the wire) ;; - --render-query-result -> --normalize-issue -> --sort-issues ;; - --update-org-from-issues (real disk write + buffer surface, surface MOCKED) @@ -102,7 +102,7 @@ because the description-update mutation contains both `IssueDescription' and (pearl-org-file-path tmp) (pearl-api-key "test-key") (pearl-fold-after-update nil) - (pearl-saved-queries + (pearl-local-views '(("Open" :filter (:open t) :sort priority :order asc) ("Bugs" :filter (:labels ("bug") :open t)))) (test-integration--ops nil)) @@ -124,9 +124,9 @@ because the description-update mutation contains both `IssueDescription' and (ignore-errors (delete-file tmp)))))) (ert-deftest test-integration-run-saved-query-renders-active-file () - "A saved query fetches, renders to the active file with a source header, and surfaces a buffer." + "A local view fetches, renders to the active file with a source header, and surfaces a buffer." (test-integration--with-env - (pearl-run-saved-query "Open") + (pearl-run-local-view "Open") (let ((buf (find-buffer-visiting pearl-org-file-path))) (should (buffer-live-p buf)) (with-current-buffer buf @@ -146,7 +146,7 @@ because the description-update mutation contains both `IssueDescription' and (ert-deftest test-integration-refresh-reruns-recorded-source () "Refresh reads the recorded source from the buffer and merges a re-fetch in place." (test-integration--with-env - (pearl-run-saved-query "Open") + (pearl-run-local-view "Open") (with-current-buffer (find-buffer-visiting pearl-org-file-path) (setq test-integration--ops nil) (pearl-refresh-current-view) @@ -159,22 +159,22 @@ because the description-update mutation contains both `IssueDescription' and (should (re-search-forward "Second issue" nil t))))) (ert-deftest test-integration-switch-source-protects-dirty-buffer () - "Switching to a different saved query with unsaved edits does not overwrite them." + "Switching to a different local view with unsaved edits does not overwrite them." (test-integration--with-env - (pearl-run-saved-query "Open") + (pearl-run-local-view "Open") (with-current-buffer (find-buffer-visiting pearl-org-file-path) (goto-char (point-max)) (insert "\nUNSAVED LOCAL EDIT\n") (should (buffer-modified-p)) ;; the switch must defer rather than clobber the dirty buffer - (pearl-run-saved-query "Bugs") + (pearl-run-local-view "Bugs") (goto-char (point-min)) (should (re-search-forward "UNSAVED LOCAL EDIT" nil t))))) (ert-deftest test-integration-issue-commands-from-subtree () "From inside a rendered issue subtree: syncing an edited body pushes, adding a comment inserts it, and setting priority drives a field update — all through the real request path." (test-integration--with-env - (pearl-run-saved-query "Open") + (pearl-run-local-view "Open") (with-current-buffer (find-buffer-visiting pearl-org-file-path) ;; --- sync a description edit (remote unchanged -> clean push) --- (goto-char (point-min)) |
