8000 QA-1070: Fixing broken textField accessibility IDs by ifernandezdiaz · Pull Request #1336 · bitwarden/ios · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

QA-1070: Fixing broken textField accessibility IDs #1336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ifernandezdiaz
Copy link
Contributor
@ifernandezdiaz ifernandezdiaz commented Feb 7, 2025

🎟️ Tracking

📔 Objective

This work is a subtask of QA-947, a story created to group all the native app views that contain elements without Automation IDs.
NOTE: Not all the elements will require an AutomationID. We are adding the ones we currently need so we can reduce the flakiness on some critical Mobile e2e tests

📸 Screenshots

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link
codecov bot commented Feb 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.60%. Comparing base (3c07376) to head (821f00b).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1336   +/-   ##
=======================================
  Coverage   89.60%   89.60%           
=======================================
  Files         749      750    +1     
  Lines       47004    47035   +31     
=======================================
+ Hits        42119    42148   +29     
- Misses       4885     4887    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor
github-actions bot commented Feb 7, 2025

Logo
Checkmarx One – Scan Summary & Details0511ec9c-78ae-4448-86a4-e66c84ee8f98

Great job, no security vulnerabilities found in this Pull Request

Comment on lines 140 to 141
/// After some investigation, we found that .id(..) needs to be the final modifier
/// to avoid breaking accessibilityIds used on our mobile automation test suite
Copy link
Member

Choose a reason for hiding this comment

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

⛏️ I'd move this just before the first TextField using the workaround given that it's not a comment for the whole property.
Additionally, from what I see .id(...) doesn't have to be the final modifier; it just needs to be after .accessibilityIdentifier(...), right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I rechecked it, and I found that the accessibilityId should also be set before the .hidden call, so I assume some other actions affect them (apart from setting an ID and hiding the element)

@ifernandezdiaz ifernandezdiaz merged commit b15f660 into main Feb 10, 2025
9 checks passed
@ifernandezdiaz ifernandezdiaz deleted the QA-1070/fixing-textfield-duplicated-accessibility-ids branch February 10, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0