Automattic / Automattic/ScreenObject
Offer `static` version of `isLoaded`
- Vorherrschende Sprache
- Swift
- Sterne
- 6
- Forks
- 2
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
While working on [this](https://github.com/Automattic/simplenote-ios/pull/1401) Simplenote iOS automation PR, I found myself implementing a `static` version of `isLoaded`. That's a functionality that we'll need in different screens across our projects, so it would be great to push it down to the `ScreenObject` base class.
One obstacle in the way is that, currently, the `init` method makes the tests fail if the element is not found. I think we should change this to simply throwing an error, or even not checking that the screen exists (maybe) to:
1. Allow a `static` `isLoaded` implementation that internally initializes and instance and calls its `isLoaded` instance property
2. Be less opinionated and let consumers deal with the screen not being available at init time
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne mit der Basisklasse ScreenObject und konzentriere dich auf ihre init-Methode und die Instanzeigenschaft isLoaded. Überprüfe anschließend den verknüpften Simplenote iOS-Automatisierungs-PR. Lege fest, wie ein statisches isLoaded den Screen initialisieren sollte und wie nicht verfügbare Elemente bei der Initialisierung behandelt werden sollten. Die Aufgabe ist abgeschlossen, wenn Nutzer die statische Prüfung über mehrere Screens hinweg verwenden können, ohne dass die Initialisierung vorzeitig fehlschlägt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- swift
- Bereich
- mobile, testing
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 25/100