-
Couldn't load subscription status.
- Fork 1.4k
Description
Describe the problem this feature would solve
As a maintainer, I want a way to quickly see the visual appearance of all the controls so that I can check for visual issues that are hard to find or catch threw automation.
Describe the solution
Add a script or tool in the repository that can be easily run ( maybe a cake script), that will initialize controls in as many relevant UI contexts as possible (In a window/ScrollViewe/Fullscreen/different container sizes?), with as many configurations of the control as possible, and take screen shots of every of every combination.
We can call these combinations Scenes.
The script can be run and once it is complete the screen shots of the Scenes would cover more UI scenarios per controls than any reviewer normally would "clicking around" and "trying things" and they can be viewed more quickly.
We would want to avoid having to manually write code describing these Scenes as it would be hard to have a lot of coverage and we would have to maintain every Scene we write.
We could use a combination of different methods to get Scenes. Listed from most preferred to least preferred.
- Generate Scenes
- Use samples from the sample app
- Write Scenes
We can choose to generate screen shots of the all or some of the Scenes in CI at different events (on commit in a PR, on merge, etc) or we can simply leave it as a tool in the repo.
Describe alternatives you've considered
- Write a script that runs the sample app and pokes around in there while taking screen shots.
- Add an option to take screen shots in the UITests and the Unit tests that render controls on a window.