Skip to content

[QA-2081] Part 1 - Add testTags to Block Auto-fill settings row and blocked-URI field#7149

Open
Corbet-BW wants to merge 1 commit into
mainfrom
QA-2081/adding-automationIDs-to-BlockAutoFillScreen
Open

[QA-2081] Part 1 - Add testTags to Block Auto-fill settings row and blocked-URI field#7149
Corbet-BW wants to merge 1 commit into
mainfrom
QA-2081/adding-automationIDs-to-BlockAutoFillScreen

Conversation

@Corbet-BW

@Corbet-BW Corbet-BW commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🎟️ Tracking

QA-2081

📔 Objective

Add stable testTags to the Block Auto-fill screens so automation can drop brittle text-/class-based Appium locators for stable resource-ids:

  • BlockAutoFillButton — the "Block autofill" row in Autofill settings (AutoFillScreen.kt), matching the sibling DefaultUriMatchDetectionChooser.
  • BlockedUriEntry — the add/edit blocked-URI dialog field (AddEditBlockedUriDialog.kt), via BitwardenTextField's textFieldTestTag param so the tag lands on the inner EditText.

The per-row overflow ("...") button keeps the shared static Options testTag. Every repeating list in the app (RecordedLogs, VaultItemListing) uses a shared static tag; per-item resolution would require a dynamic testTag with no precedent in the app, so per-URI row scoping stays on the test side.

Test-side locator swaps (bitwarden/test) will follow once a build with these tags ships.

📸 Screenshots

N/A — no visual change.

…I field

Add BlockAutoFillButton to the Autofill settings 'Block autofill' row and
BlockedUriEntry to the add/edit blocked-URI dialog field, replacing the
text-/class-based Appium locators in bitwarden/test with stable resource-ids.

The per-row overflow button keeps the shared static 'Options' testTag: every
existing repeating list (RecordedLogs, VaultItemListing) uses a shared static
tag, and per-item resolution would require a dynamic testTag with no precedent
in the app. Per-URI row scoping stays on the test side.
@Corbet-BW Corbet-BW requested review from a team and david-livefront as code owners July 8, 2026 00:29
@Corbet-BW Corbet-BW added the t:tech-debt Change Type - Tech debt label Jul 8, 2026
@github-actions github-actions Bot added app:password-manager Bitwarden Password Manager app context and removed t:tech-debt Change Type - Tech debt labels Jul 8, 2026
@Corbet-BW Corbet-BW added the t:tech-debt Change Type - Tech debt label Jul 8, 2026
@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.25%. Comparing base (fe2e7c0) to head (b8b768f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7149      +/-   ##
==========================================
- Coverage   86.76%   86.25%   -0.52%     
==========================================
  Files         868      912      +44     
  Lines       63975    65588    +1613     
  Branches     9585     9600      +15     
==========================================
+ Hits        55511    56575    +1064     
- Misses       5023     5570     +547     
- Partials     3441     3443       +2     
Flag Coverage Δ
app-data 17.26% <0.00%> (-0.34%) ⬇️
app-ui-auth-tools 18.80% <0.00%> (-0.01%) ⬇️
app-ui-platform 16.81% <100.00%> (+0.33%) ⬆️
app-ui-vault 28.05% <0.00%> (+0.55%) ⬆️
authenticator 6.13% <0.00%> (-0.05%) ⬇️
lib-core-network-bridge 4.05% <0.00%> (-0.04%) ⬇️
lib-data-ui 1.14% <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 changed the title [QA-2081] Add testTags to Block Auto-fill settings row and blocked-URI field [QA-2081] Part 1 - Add testTags to Block Auto-fill settings row and blocked-URI field Jul 8, 2026
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.

1 participant