Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Add test to check block start padding of a continued event tile on modern/group layout#9065

Closed
luixxiul wants to merge 0 commit into
matrix-org:developfrom
luixxiul:EventTile_continuation
Closed

Add test to check block start padding of a continued event tile on modern/group layout#9065
luixxiul wants to merge 0 commit into
matrix-org:developfrom
luixxiul:EventTile_continuation

Conversation

@luixxiul
Copy link
Copy Markdown
Contributor

@luixxiul luixxiul commented Jul 16, 2022

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

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

This change is marked as an internal change (Task), so will not be included in the changelog.

@github-actions github-actions Bot added Z-Community-PR Issue is solved by a community member's PR T-Task Refactoring, enabling or disabling functionality, other engineering tasks labels Jul 16, 2022
@luixxiul luixxiul marked this pull request as ready for review July 17, 2022 02:48
@luixxiul luixxiul requested a review from a team as a code owner July 17, 2022 02:48
@luixxiul luixxiul changed the title Add test to check inline block padding of a continued event tile on modern/group layout Add test to check block start padding of a continued event tile on modern/group layout Jul 17, 2022
Copy link
Copy Markdown
Member

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@andybalaam
Copy link
Copy Markdown
Member

Please could you resolve the conflicts and then ping me to merge?

Copy link
Copy Markdown
Contributor

@kerryarchibald kerryarchibald left a 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")
Copy link
Copy Markdown
Contributor

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.

@turt2live turt2live removed their request for review July 19, 2022 15:53
@luixxiul luixxiul closed this Mar 6, 2023
@luixxiul luixxiul deleted the EventTile_continuation branch March 6, 2023 19:54
@renovate renovate Bot temporarily deployed to Netlify March 6, 2023 21:22 Inactive
@renovate renovate Bot temporarily deployed to Netlify March 6, 2023 21:22 Inactive
@renovate renovate Bot temporarily deployed to Cypress March 6, 2023 21:22 Inactive
@renovate renovate Bot temporarily deployed to Cypress March 6, 2023 21:22 Inactive
@renovate renovate Bot temporarily deployed to Cypress March 6, 2023 21:22 Inactive
@renovate renovate Bot temporarily deployed to Cypress March 6, 2023 21:22 Inactive
@renovate renovate Bot temporarily deployed to Cypress March 6, 2023 21:22 Inactive
@renovate renovate Bot temporarily deployed to Cypress March 6, 2023 21:22 Inactive
@renovate renovate Bot temporarily deployed to Cypress March 6, 2023 21:22 Inactive
@renovate renovate Bot temporarily deployed to Cypress March 6, 2023 21:22 Inactive
@renovate renovate Bot temporarily deployed to Netlify March 6, 2023 21:23 Inactive
@renovate renovate Bot temporarily deployed to Cypress March 6, 2023 21:25 Inactive
@renovate renovate Bot temporarily deployed to Cypress March 6, 2023 21:25 Inactive
@renovate renovate Bot temporarily deployed to Cypress March 6, 2023 21:25 Inactive
@renovate renovate Bot temporarily deployed to Testrail March 6, 2023 21:38 Inactive
@renovate renovate Bot temporarily deployed to Testrail March 6, 2023 21:39 Inactive
@renovate renovate Bot temporarily deployed to Testrail March 6, 2023 21:39 Inactive
@renovate renovate Bot temporarily deployed to Testrail March 6, 2023 21:40 Inactive
@luixxiul luixxiul temporarily deployed to Netlify March 7, 2023 05:40 — with GitHub Actions Inactive
@luixxiul luixxiul temporarily deployed to Cypress March 7, 2023 05:40 — with GitHub Actions Inactive
@luixxiul luixxiul temporarily deployed to Cypress March 7, 2023 05:40 — with GitHub Actions Inactive
@luixxiul luixxiul temporarily deployed to Cypress March 7, 2023 05:40 — with GitHub Actions Inactive
@luixxiul luixxiul temporarily deployed to Cypress March 7, 2023 05:40 — with GitHub Actions Inactive
@luixxiul luixxiul temporarily deployed to Testrail March 7, 2023 05:55 — with GitHub Actions Inactive
@luixxiul luixxiul temporarily deployed to Netlify March 7, 2023 06:14 — with GitHub Actions Inactive
@luixxiul luixxiul temporarily deployed to Cypress March 7, 2023 06:14 — with GitHub Actions Inactive
@luixxiul luixxiul temporarily deployed to Cypress March 7, 2023 06:14 — with GitHub Actions Inactive
@luixxiul luixxiul temporarily deployed to Cypress March 7, 2023 06:14 — with GitHub Actions Inactive
@luixxiul luixxiul temporarily deployed to Netlify March 7, 2023 07:35 — with GitHub Actions Inactive
@luixxiul luixxiul temporarily deployed to Cypress March 7, 2023 07:36 — with GitHub Actions Inactive
@luixxiul luixxiul temporarily deployed to Cypress March 7, 2023 07:36 — with GitHub Actions Inactive
@luixxiul luixxiul temporarily deployed to Cypress March 7, 2023 07:36 — with GitHub Actions Inactive
@luixxiul luixxiul temporarily deployed to Cypress March 7, 2023 07:36 — with GitHub Actions Inactive
@luixxiul luixxiul temporarily deployed to Testrail March 7, 2023 07:51 — with GitHub Actions Inactive
@t3chguy t3chguy temporarily deployed to Netlify March 7, 2023 09:51 — with GitHub Actions Inactive
@t3chguy t3chguy temporarily deployed to Cypress March 7, 2023 09:51 — with GitHub Actions Inactive
@t3chguy t3chguy temporarily deployed to Cypress March 7, 2023 09:51 — with GitHub Actions Inactive
@t3chguy t3chguy temporarily deployed to Cypress March 7, 2023 09:51 — with GitHub Actions Inactive
@t3chguy t3chguy temporarily deployed to Cypress March 7, 2023 09:51 — with GitHub Actions Inactive
@t3chguy t3chguy temporarily deployed to Testrail March 7, 2023 10:06 — with GitHub Actions Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

T-Task Refactoring, enabling or disabling functionality, other engineering tasks Z-Community-PR Issue is solved by a community member's PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants