-
-
Notifications
You must be signed in to change notification settings - Fork 829
Fix a FilePanel test to have Percy take a snapshot of file tiles on the panel #10429
Conversation
…he panel Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
…into test-file-panel
…into test-file-panel
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
The snapshot was taken as expected. Please note that the audio player's seek bar and the timestamp on the bottom next to the profile name are hidden. Checking whether the timestamp is rendered only on the latest updated file would be a next task (element-hq/element-web#24719). |
}); | ||
|
||
// Make the viewport tall enough to display all of the file tiles on FilePanel | ||
cy.viewport(660, 1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is required to check visibility of all of the file tiles. Otherwise it will return an error on the default viewport size (1000, 600)
.
The viewport size should be reset after each test. Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
Failed due to Percy allowance being used up. It passed previously, so merging. |
Thanks for reviewing! |
This PR should fix the issue reported here that Percy screenshot test for
FilePanel
does not take a screenshot ofEventTile
s onFilePanel
, by specifying the correct element and ensuring that they are visible before having Percy take a screenshot.It is recommended to run Percy before merging this PR to check if it works as expected.
type: task
Signed-off-by: Suguru Hirahara luixxiul@users.noreply.github.com
Checklist
This change is marked as an internal change (Task), so will not be included in the changelog.