-
Notifications
You must be signed in to change notification settings - Fork 56
Description
First, I would like to thank all the contributors for their work on this project. It's really nice.
I'm just getting to learn this library and I want to be able to interact with the widget under test prior to capturing the golden image. For example, I would like the golden image to render my widget (that has a DropdownButton) when the button has been clicked so the image will show the expanded version of the button, allowing me to see all the options that are available within it.
I've gone through the examples and see that there is a "whilePerforming" property in the "goldenTest" method.
In my case, the "builder" for my "goldenTest" method returns a "GoldenTestGroup" which contains a few "GoldenTestScenario"s. It seems to me that my "whilePerforming" method could be greatly simplified if it was possible to specify it directly on the "GoldenTestScenario" instead of on the "goldenTest" method.
So there are two purposes for this issue.
-
Does anyone know of a more detailed/robust example how to implement "whilePerforming" methods, or where is the documentation or more complex examples how to interact with the tester provided to that method?
-
Discuss the API for "whilePerforming" to see if it would be possible to add it directly to the "GoldenTestScenario"? Intuitively, I think of a "test scenario" as a stand alone test, so it feels like if I need to interact with the widget within that scenario, I should be able to access it directly from within that context.
Thanks!