Skip to content

[QA-2428] Add testTag to the Make a copy button on the View Send screen - #7356

Merged
Corbet-BW merged 1 commit into
mainfrom
QA-2428/send-make-a-copy-testtag
Sep 4, 2026
Merged

Corbet-BW merged 1 commit into
mainfrom
QA-2428/send-make-a-copy-testtag

Conversation

@Corbet-BW

Copy link
Copy Markdown
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/QA-2428

📔 Objective

The "Make a copy" action on the View Send policy-restriction banner had no stable identifier, so QA automation (QA-2416, Testmo 10268506) currently locates it by its localized English content-desc ("Make a copy") — fragile under a non-English locale or a wording change.

This adds a static testTag = "SendMakeACopyButton" to the existing BitwardenButtonData, surfaced as an Appium resource-id via testTagsAsResourceId, matching the sibling SendPolicyRestrictionBanner tag on the same card. No behavioral or visual change.

📸 Screenshots

N/A — no UI change (adds a test identifier only).

The policy-restriction banner's "Make a copy" action had no stable identifier,
so test automation located it by its localized content-desc. Add a static
testTag ("SendMakeACopyButton"), surfaced as a resource-id via
testTagsAsResourceId, matching the sibling SendPolicyRestrictionBanner tag.
@Corbet-BW
Corbet-BW requested review from a team and david-livefront as code owners September 4, 2026 14:08
@github-actions github-actions Bot added the app:password-manager Bitwarden Password Manager app context label Sep 4, 2026
@github-actions

github-actions Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Bitwarden Claude Code Review

Overall Assessment: APPROVE

This PR adds a single static testTag = "SendMakeACopyButton" to the existing BitwardenButtonData for the "Make a copy" action on the View Send policy-restriction card. Verified that BitwardenButtonData.testTag is threaded through BitwardenActionCard to BitwardenFilledButton via nullableTestTag, so the tag is applied to the rendered button. The literal-string tag matches the convention used throughout ViewSendScreen.kt, and the tag value is unique across the codebase, so no existing test or Compose node matcher is affected. No behavioral or visual change, and no security, correctness, or compatibility concerns.

@codecov

codecov Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.27%. Comparing base (7d1fdd8) to head (e6c50e5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7356      +/-   ##
==========================================
- Coverage   86.21%   85.27%   -0.94%     
==========================================
  Files         901      947      +46     
  Lines       66274    68038    +1764     
  Branches    10172    10214      +42     
==========================================
+ Hits        57135    58021     +886     
- Misses       5561     6426     +865     
- Partials     3578     3591      +13     
Flag Coverage Δ
app-data 18.20% <0.00%> (-0.20%) ⬇️
app-ui-auth-tools 18.95% <100.00%> (+0.21%) ⬆️
app-ui-platform 16.80% <0.00%> (+0.50%) ⬆️
app-ui-vault 27.07% <0.00%> (-0.01%) ⬇️
authenticator 5.99% <0.00%> (-0.02%) ⬇️
lib-core-network-bridge 4.03% <0.00%> (-0.01%) ⬇️
lib-data-ui 1.18% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Corbet-BW Corbet-BW added the t:tech-debt Change Type - Tech debt label Sep 4, 2026
@Corbet-BW
Corbet-BW added this pull request to the merge queue Sep 4, 2026
Merged via the queue into main with commit ffefc06 Sep 4, 2026
30 of 31 checks passed
@Corbet-BW
Corbet-BW deleted the QA-2428/send-make-a-copy-testtag branch September 4, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app:password-manager Bitwarden Password Manager app context t:tech-debt Change Type - Tech debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants