Skip to content

Conversation

@liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Apr 28, 2023

Issue number: N/A


What is the current behavior?

Modal tests are using legacy syntax

What is the new behavior?

  • Modal tests use generator syntax

e3e83ef

  • This had an unused screenshot test, so I removed it

Does this introduce a breaking change?

  • Yes
  • No

Other information

Note: Some of these tests are quite slow, so you may see a CI slowdown if this merges. However, I am working on addressing this in #27397.

@bolt-new-by-stackblitz
Copy link

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 Apr 28, 2023
@liamdebeasi liamdebeasi changed the title Modal generator test(modal): migrate to generators Apr 28, 2023
@liamdebeasi liamdebeasi marked this pull request as ready for review May 4, 2023 20:04
@liamdebeasi liamdebeasi requested a review from a team as a code owner May 4, 2023 20:04
@liamdebeasi liamdebeasi enabled auto-merge May 8, 2023 12:39
@liamdebeasi liamdebeasi added this pull request to the merge queue May 8, 2023
Merged via the queue into main with commit c67a0f2 May 8, 2023
@liamdebeasi liamdebeasi deleted the modal-generator branch May 8, 2023 13:07
liamdebeasi added a commit that referenced this pull request May 8, 2023
Issue number: N/A

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

When doing #27331 I
noticed a noticeable increase in the amount of time it took to run all
the modal tests.

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->


b290772

- The a11y custom role E2E test was ported to a spec test.


dd9e2bc

- The htmlAttributes e2e test was ported to a spec test


fa348ea

- The e2e tests that looked at basic functionality of canDismiss were
ported to spec tests (tests that check canDismiss when swiping remain as
e2e tests)


325b115

- The basic rendering test checks LTR and RTL rendering for the card
modal. However, the other scenarios such as stacked cards, custom
modals, tablet viewport, etc does not have RTL-specific behavior. As a
result, I removed the RTL checks/screenshots. The basic test continues
to check LTR/RTL.


0428630

- The card tests were still slow after making the previous change, so I
broke the mobile and tablet tests up into multiple files so they can be
parallelized on CI better.


e5236c0

- The sheet functionality tests do not vary across modes, so I removed
the extra check.

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->
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.

3 participants