Skip to content

test(popover): migrate to generators - #27364

Merged
liamdebeasi merged 17 commits into
mainfrom
popover-generator
May 4, 2023
Merged

liamdebeasi merged 17 commits into
mainfrom
popover-generator

Conversation

@liamdebeasi

@liamdebeasi liamdebeasi commented May 3, 2023 •

Copy link
Copy Markdown
Contributor

Issue number: N/A


What is the current behavior?

Popover tests are using legacy syntax

What is the new behavior?

  • Popover tests are using modern syntax

8195bc6

  • The adjustment behavior test is only looking at y-axis values, which does not vary across mode/directions, so I removed those additional checks.

cb5649c

  • The arrow behavior only exists on iOS, so I removed the MD checks.

2956b85

  • The dismiss on select behavior does not vary across modes/directions, so I removed those additional checks.

2cc0550

  • The inline behavior does not vary across modes/directions, so I removed those additional checks.

9ccc3a5

  • The sizing tests do not vary across modes/directions, so I removed those additional checks.

9d95261

  • The htmlAttributes test is now a spec test
  • I split the translucent tests into its own block and removed mode/direction tests+screenshots since this behavior only exists on iOS and does not vary across directions
  • All the other variants do not vary across directions, so I also split them into their own blocks and disabled RTL checks.

I ran into some difficulty integrating generators into some of the tests, so I decided to break some of the more complex tests up into multiple tests. The old utility functions were also calling scrollIntoView which can cause slowdowns on CI.

4cc1cac

  • I created a popover test fixture and broke the basic tests into separate tests.

e25c769

  • I Broke the reference screenshots into separate tests and had them use the fixture

23a60c7

  • I updated the standalone test to use the fixture

Note: The previous scrollIntoView usage seemed to cause Safari screenshots be sized 1px taller than if scrollIntoView was not used. As a result, there are some screenshot changes: 7eb7d86

However, they should be limited to Safari and only contain the 1px height difference.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions github-actions Bot added the package: core @ionic/core package label May 3, 2023
@liamdebeasi liamdebeasi changed the title Popover generator test(popover): migrate to generators May 3, 2023
@liamdebeasi
liamdebeasi marked this pull request as ready for review May 3, 2023 15:29
@liamdebeasi
liamdebeasi requested a review from a team as a code owner May 3, 2023 15:29

@thetaPC thetaPC left a comment

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.

LGTM

@thetaPC
thetaPC requested a review from a team May 3, 2023 16:37
@averyrousseau
averyrousseau self-requested a review May 4, 2023 14:16
@liamdebeasi
liamdebeasi added this pull request to the merge queue May 4, 2023
Merged via the queue into main with commit 1113bd8 May 4, 2023
@liamdebeasi
liamdebeasi deleted the popover-generator branch May 4, 2023 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants