android / android/android-test

Make `WithEffectiveVisibilityMatcher` print a log detailing which view had the wrong visibility

Open
#838 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.2k
Forks
342
Avg merge
11h 29m
Merged PRs (30d)
2

Description

### Description

When using EffectiveVisibilityMatcher it would be very helpful to know WHICH view had the wrong visibility.
It could be the view itself or any in the parent hierarchy.
It should use `HumanReadables.getViewHierarchyErrorMessage` to print a message detailing which views triggered the matcher to return false.

This is especially useful when `WithEffectiveVisibilityMatcher` is used in `getConstraints`

### AndroidX Test and Android OS Versions
AndroidX Test 1.3.0

Contributor guide

Open the contributing guide

Research direction

Start with WithEffectiveVisibilityMatcher and HumanReadables.getViewHierarchyErrorMessage, then trace how the matcher is used in getConstraints. Done means a failed visibility match logs which view or parent-hierarchy views caused the matcher to return false, including when used through getConstraints.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile-dev, testing
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.