google / google/EarlGrey

`grey_text` matcher does not work for SwiftUI `Text` view

Open
#1,679 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
5.7k
Forks
737
Avg merge
1d 20h
Merged PRs (30d)
5

Description

The `grey_text` matcher does not work for a SwiftUI [Text](https://developer.apple.com/documentation/swiftui/text) view. This is demonstrated by the UI testing target defined [here](https://github.com/adil-hussain-84/EarlGrey2-SwiftUI-Experiment/tree/master/EarlGrey2ExperimentUITests) which tests the application target defined [here](https://github.com/adil-hussain-84/EarlGrey2-SwiftUI-Experiment/tree/master/EarlGrey2Experiment).

Contributor guide

Open the contributing guide

Research direction

Start by running the linked EarlGrey2ExperimentUITests target against the application target in the linked EarlGrey2-SwiftUI-Experiment repository and reproduce the grey_text failure for SwiftUI Text. Then trace the matcher behavior in EarlGrey and its iOS UI testing integration. Done means grey_text correctly matches the demonstrated SwiftUI Text view.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile-dev, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.