Skip to content
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

QA-954: Add testtags to Send screen elements #4162

Merged
merged 5 commits into from
Oct 29, 2024

Conversation

ifernandezdiaz
Copy link
Contributor

@ifernandezdiaz ifernandezdiaz commented Oct 25, 2024

🎟️ 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
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation 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
Contributor

github-actions bot commented Oct 25, 2024

Logo
Checkmarx One – Scan Summary & Details450e16d9-43fc-4d75-9d17-bee54b0d9772

No New Or Fixed Issues Found

modifier = Modifier.semantics {
increaseButtonTestTag?.let { testTag = it }
},
modifier = Modifier.testTag("IncrementValue"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

What about the custom test tag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since we consider the Stepper a component, we require a fixed ID for each inner element (Increment/Decrease buttons, inner text field, etc.).
That's why I made that change. Does it affect your UI unit tests?

Copy link
Collaborator

@david-livefront david-livefront Oct 25, 2024

Choose a reason for hiding this comment

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

No, our tests should be fine. We never use test tags in unit tests since they make for a weaker test.

But can you remove the increaseButtonTestTag and decreaseButtonTestTag params if they are no longer needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

Copy link
Collaborator

Choose a reason for hiding this comment

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

You removed the properties but did not update all the places that call those properties

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My bad! Fixed

Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.95%. Comparing base (53d4c4c) to head (30d4669).
Report is 28 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4162      +/-   ##
==========================================
- Coverage   88.95%   88.95%   -0.01%     
==========================================
  Files         439      439              
  Lines       38080    38075       -5     
  Branches     5336     5336              
==========================================
- Hits        33874    33869       -5     
  Misses       2346     2346              
  Partials     1860     1860              

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

@ifernandezdiaz ifernandezdiaz added this pull request to the merge queue Oct 29, 2024
Merged via the queue into main with commit 540ece5 Oct 29, 2024
9 checks passed
@ifernandezdiaz ifernandezdiaz deleted the QA-954/add-testtags-to-send-elements branch October 29, 2024 23:48
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.

2 participants