- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 33.2k
Refs #34043 -- Added GitHub action to capture screenshots in Selenium tests. #16963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
d4d6814    to
    5ef7a92      
    Compare
  
    | I'm not sure if this is helpful? Maybe you've already seen it! | 
| 
 
 
 Crossing out comment as the approach has since changed, leaving this comment misleading. | 
0b9ae54    to
    c119757      
    Compare
  
    184859e    to
    fa1cc06      
    Compare
  
    67bfeb0    to
    7478d47      
    Compare
  
    | @sarahboyce Thanks for all your efforts 👍 I would like to merge/discuss the remaining code in two steps: 
 | 
787e83d    to
    280fda2      
    Compare
  
    5cf7db3    to
    fa5197e      
    Compare
  
    | I moved the first commit with small edits (release notes, comments) to the #17374. | 
| @sarahboyce Many thanks! rebased. | 
| 
 This reverts a bunch of what was discussed in this comment, in particular reducing the visibility of screenshots taken on previous runs. Being able to easily access multiple downloads is useful for comparison. Maybe an alternative is not to edit existing comments, but just create new ones every time? | 
| 
 Yes, I was thinking about the same 👍 | 
| This also make it easier to compare results when pushing fixes. | 
| 
 I'm not a fan of a new message with each push/commit. When you get enough comments, like this PR, conversations become hidden even when they're not resolved. I missed that Nick's suggestion earlier was to append to an existing message. Can try that? Or that a message is created in a thread? Worried a new message each push/commit might pollute a review process 🤔 | 
| Let's check how it works with updating a comment, felixxm#8. | 
| All good, but  | 
| Finally, it works! 🎉 felixxm#9 | 
| 
 Ah I love it! | 


This is a proposal to help us confidently make UI changes. 💪
Testing UI is always hard and many of us would not describe ourselves as frontend developers. Adding a layer of visual testing to our automated test suite will not only make our lives easier but can open up possibilities to us such as tests to cover visual regressions.
In ticket 34043, there is a suggestion that we should have a test suite/tooling to keep track of UI changes automatically.
This PR adds the screenshot tests to our GitHub actions. This is currently triggered when a PR has the
seleniumlabel.You can see the screenshots (in a zip file at the bottom called screenshots) here: https://github.com/django/django/actions/runs/5386413722?pr=16963
The action "fails" because I do not have write permissions to the repo. please see this comment #16963 (comment). I have tested this against my fork where I do have write permissions. This should be resolved on merge.