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-952: Adding test tags for Toggle items #4153

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

ifernandezdiaz
Copy link
Contributor

@ifernandezdiaz ifernandezdiaz commented Oct 24, 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

Logo
Checkmarx One – Scan Summary & Details5d1de187-320a-4dc6-bbcb-a618a9018c32

No New Or Fixed Issues Found

Copy link

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.92%. Comparing base (6217532) to head (ecf96ba).
Report is 13 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4153   +/-   ##
=======================================
  Coverage   88.92%   88.92%           
=======================================
  Files         437      437           
  Lines       37938    37938           
  Branches     5324     5324           
=======================================
  Hits        33735    33735           
  Misses       2347     2347           
  Partials     1856     1856           

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

@@ -100,7 +102,8 @@ fun BitwardenWideSwitch(

Switch(
modifier = Modifier
.height(56.dp),
.height(56.dp)
.testTag("SwitchToggle"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems way to generic, most of the places we use the switch already have the test tags.

Copy link
Contributor Author

@ifernandezdiaz ifernandezdiaz Oct 25, 2024

Choose a reason for hiding this comment

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

I decided to add this generic ID at the component level due to a refactor we made on the automation side.
Now, each Switch element will contain its name label and toggle element, making most of our validations easier

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see, what about the description?

@ifernandezdiaz ifernandezdiaz added this pull request to the merge queue Oct 25, 2024
Merged via the queue into main with commit 33a4304 Oct 25, 2024
9 checks passed
@ifernandezdiaz ifernandezdiaz deleted the QA-952/adding-testTags-for-collection-list-items branch October 25, 2024 16:19
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