Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(toggle): update snapshots #29913

Merged
merged 1 commit into from
Sep 27, 2024
Merged

test(toggle): update snapshots #29913

merged 1 commit into from
Sep 27, 2024

Conversation

thetaPC
Copy link
Contributor

@thetaPC thetaPC commented Sep 27, 2024

Issue number: internal


What is the current behavior?

Playwright was not importing the correct ionic bundle file, which has caused some snapshots to not be correct. This is apparent when a test uses setContent. There are several components that are needing their snapshots to be re-generated. In order to not have a PR with an immense amount of snapshots, several PRs will be created to split off the work to make it easier on reviewers.

The snapshots for toggle are not accurate. This can be verified by comparing it to the test pages, which do import the right bundle file.

What is the new behavior?

  • Updated snapshots

Does this introduce a breaking change?

  • Yes
  • No

Other information

Base branch

Copy link

vercel bot commented Sep 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2024 7:04pm

Copy link
Member

Choose a reason for hiding this comment

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

Is dark mode not expected to work due to the new file imports?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Honestly not sure why it had a black background in the first place because when you comment out the bundle files, the background is still white in the test pages.

ionic theme hasn't been set up for dark mode. For example, the list background will always be white regardless of palette. If you compare this to md, that theme is changing the background based on a global variable. The value for this variable changes based on the palette file.

@thetaPC thetaPC marked this pull request as ready for review September 27, 2024 21:43
@thetaPC thetaPC requested a review from a team as a code owner September 27, 2024 21:43
@thetaPC thetaPC merged commit d5d1262 into ROU-11149-base Sep 27, 2024
27 of 46 checks passed
@thetaPC thetaPC deleted the ROU-11149-toggle branch September 27, 2024 22:05
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.

2 participants