Skip to content

Conversation

@shai-almog
Copy link
Collaborator

Summary

  • simplify the iOS UI test helper to focus on running the Codename One workspace and exporting xcresult screenshots
  • adjust the Codename One UI test template to favour non-empty app screenshots over blank captures
  • update the demo POM to reference Codename One 7.0.209

Testing

  • not run (CI only)

https://chatgpt.com/codex/tasks/task_e_68ff083a182483319eaf75127d555b79

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +114 to +120
SIM_DEVICE_NAME="${IOS_SIM_DEVICE_NAME:-iPhone 16}"
SIM_UDID=""
ensure_booted_device "$SIM_DEVICE_NAME" || true
if [ -z "$SIM_UDID" ]; then
ri_log "Falling back to 'booted' simulator for destination"
SIM_DESTINATION="platform=iOS Simulator,name=$SIM_DEVICE_NAME"
else

Choose a reason for hiding this comment

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

P1 Badge Restore fallback when default simulator is missing

The new script always targets IOS_SIM_DEVICE_NAME (default iPhone 16) and, on failure, simply uses platform=iOS Simulator,name=$SIM_DEVICE_NAME without trying to discover another available simulator. Earlier versions parsed xcodebuild -showdestinations/simctl list and auto‑selected a usable device when the default wasn’t present. In environments where the requested device isn’t installed (e.g., older Xcode images or custom CI with a different simulator set), ensure_booted_device leaves SIM_UDID empty, and the subsequent xcodebuild invocation will exit with “Unable to find a destination matching the provided destination specifier”, causing all UI tests to fail even though other simulators are available. Please retain an automatic fallback to any available simulator when the preferred device cannot be found.

Useful? React with 👍 / 👎.

@github-actions
Copy link

github-actions bot commented Oct 27, 2025

Developer Guide build artifacts are available for download from this workflow run:

Developer Guide quality checks:

  • AsciiDoc linter: No issues found (report)
  • Vale: 18729 alert(s) (2754 errors, 6353 warnings, 9622 suggestions) (exit code 1) (report)
  • Image references: No unused images detected (report)

@shai-almog shai-almog closed this Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants