fix(e2e): migrate all hardcoded testID strings to TestIds enum#1987
fix(e2e): migrate all hardcoded testID strings to TestIds enum#1987Copilot wants to merge 5 commits intodevelopmentfrom
Conversation
Co-authored-by: andrew-bierman <94939237+andrew-bierman@users.noreply.github.com> Agent-Logs-Url: https://github.com/PackRat-AI/PackRat/sessions/489dcc9d-aba2-4676-8f71-0dbe06253e42
There was a problem hiding this comment.
Pull request overview
This PR completes the migration away from hardcoded testID string literals in the Expo app by switching remaining Maestro-critical selectors to the centralized TestIds enum (apps/expo/lib/testIds.ts). This keeps UI selectors type-safe and aligned with existing Maestro YAML id: selectors.
Changes:
- Replaced 9 hardcoded
testID="..."literals across 4 screens/components withtestID={TestIds.*}. - Added
TestIdsimports to each updated file.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| apps/expo/features/packs/screens/PackDetailScreen.tsx | Migrates pack detail action buttons to TestIds enum values. |
| apps/expo/features/packs/components/AddPackItemActions.tsx | Migrates add-item modal option selectors to TestIds. |
| apps/expo/features/catalog/screens/CatalogItemDetailScreen.tsx | Migrates catalog detail CTA buttons to TestIds. |
| apps/expo/app/(app)/(tabs)/profile/index.tsx | Migrates sign-out button selector to TestIds.SignOutButton. |
|
@copilot fix failing actions |
Co-authored-by: andrew-bierman <94939237+andrew-bierman@users.noreply.github.com> Agent-Logs-Url: https://github.com/PackRat-AI/PackRat/sessions/3a7e69c4-fe44-4b69-bd48-7aba5ef5a95e
Fixed in 4f64897. Three issues were causing the CI failures:
|
|
@copilot are the maestro actions passing? Need to get these passing |
Co-authored-by: andrew-bierman <94939237+andrew-bierman@users.noreply.github.com> Agent-Logs-Url: https://github.com/PackRat-AI/PackRat/sessions/6bb4e664-92be-4d90-8621-4bff36bbb55f
The Maestro run was failing with Fixed in 6889471: added |
|
@copilot why does android have a different bundle id ? Can you check actions again and make sure we are all green? |
Android bundle ID difference: By design in CI status: The Biome and Check Types checks passed on commit Note: the same |
|
@copilot resolve merge conflicts |
Done in c2a4401. There was one conflict in |
|
@copilot builds and actions are failing... you need to run these commands before finishing turn |
Ran The CI checks on this branch show Our code-level fixes remain intact after the merge:
|
organizeImportserrors in PackDetailScreen.tsx and profile/index.tsxShareimport)appId: com.andrewbierman.packrat+---config section to all 14 flow files (required by Maestro 1.40.0)Original prompt
⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.