Skip to content

Address review feedback on PR #765 tests - #767

Merged
hannesa2 merged 1 commit into
masterfrom
fixTest
Oct 12, 2026
Merged

hannesa2 merged 1 commit into
masterfrom
fixTest

Conversation

@hannesa2

Copy link
Copy Markdown
Contributor
  • testRepositoryFolderOpensThroughLaunchServices: close the repository window via its close button instead of Cmd-W, which was not reliably closing the window on every machine. The expectation now asserts the wait actually completed, and a comment clarifies that any window seen after the Launch Services open event must be newly created, since the original was confirmed fully closed beforehand.
  • Run make format to apply clang-format to the lines added in PBGitXDocumentTypesTests.m and GitXScreenshotTests.m (array literal spacing, wrapped URLByAppendingPathComponent: calls, argument alignment, and brace placement on the new test method).

- testRepositoryFolderOpensThroughLaunchServices: close the repository
  window via its close button instead of Cmd-W, which was not reliably
  closing the window on every machine. The expectation now asserts the
  wait actually completed, and a comment clarifies that any window seen
  after the Launch Services open event must be newly created, since the
  original was confirmed fully closed beforehand.
- Run `make format` to apply clang-format to the lines added in
  PBGitXDocumentTypesTests.m and GitXScreenshotTests.m (array literal
  spacing, wrapped URLByAppendingPathComponent: calls, argument
  alignment, and brace placement on the new test method).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused test reliability fix is correct, bounded, and consistently formatted.

0 open findings

What changed in this PR

Improves reliability and formatting of Launch Services tests.

Changes:

  • Closes the repository window through its close button and verifies completion.
  • Applies clang-format to modified Objective-C tests.
File Description
GitXUITests/​GitXScreenshotTests.m Makes repository reopening test more reliable.
GitXTests/​PBGitXDocumentTypesTests.m Formats Launch Services test code.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@hannesa2
hannesa2 requested a review from goneng October 11, 2026 07:58
@hannesa2 hannesa2 added the test Test related label Oct 11, 2026
@hannesa2

Copy link
Copy Markdown
Contributor Author

Screenshot differs: emulatorApi=arm64 with 1 screenshot(s)

setpoint (old) | diff | actual screenshot (new)

repository-folder-open.pngscreenshot

@goneng goneng left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hannesa2
hannesa2 merged commit 5baf289 into master Oct 12, 2026
6 of 7 checks passed
@hannesa2
hannesa2 deleted the fixTest branch October 12, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants