PlaybookScreenshotFiles class
Decides where the screenshots of one playbook run are saved, one
nylo.playbook event at a time, as they arrive.
A step's screenshots go in screenshots/<playbook>: 01-visit-sign-up.png
for the first step, named after its title, and cart.png for
screenshot('cart'). Steps inside a scene() carry the scene's number
first (03-02-tap-pay.png), so the files sort in the order they ran. The
screen of a failing step goes in build/playbooks/failures as
<playbook>-<step>.png.
A screenshot taken in a locale or theme of its own, or during a pass of
--locales/--themes, goes in a folder for it (es, dark or
es-dark), and a failure gets it in its name.
Constructors
- PlaybookScreenshotFiles({required String root, String? device, LiveCell? cell})
-
Creates a PlaybookScreenshotFiles saving in
root.
Properties
- cell → LiveCell?
-
The locale and theme of the pass being played, or null.
final
- device → String?
-
The device's folder name, or null for one app.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- root → String
-
The project directory.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
filesFor(
Map< String, Object?> event) → List<PlaybookScreenshotFile> -
The screenshots
eventreported, with where each one is saved. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited