-
-
Notifications
You must be signed in to change notification settings - Fork 833
Add test to check block start padding of a continued event tile on modern/group layout #9065
Conversation
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!
Please could you resolve the conflicts and then ping me to merge? |
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.
Please assert the block padding is correct using a percy snapshot rather that css inspection.
cy.get(".mx_RoomView_body .mx_EventTile").contains(".mx_EventTile[data-scroll-tokens]", "Hello Again"); | ||
|
||
// Check block start padding of the second message | ||
cy.get(".mx_EventTile[data-layout=group].mx_EventTile_continuation") |
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.
This check should be captured by a percy snapshot, not explicitly checking the style. These e2e tests should be testing from the POV of the user to see that 1) things work as expected and 2) look as expected.
For #9033
This PR adds a test to check whether block start padding of a continued event tile on modern/group layout is set to zero without
!important
flag.Signed-off-by: Suguru Hirahara luixxiul@users.noreply.github.com
type: task
Checklist
This change is marked as an internal change (Task), so will not be included in the changelog.