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

Add regression test to attribute-behavior fixture #28349

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Feb 15, 2024

Summary

This fixture changed multiple times in the past without us noticing. This adds an automated test using Playwright that ensures the snapshot is unchanged. The new snapshot is saved as an artifact to make it easier to save if changes are intentional.

The test itself currently takes ~35s. The whole job takes ~2min13s and does not increase wall time of the full pipeline.

The main motivation are smoke tests for other fixtures (e.g. #28350). I only started with attribute-behavior because I know it's up-to-date and I'm familiar with it.

How did you test this change?

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Feb 15, 2024
"@playwright/test": "^1.41.2"
},
"optionalDependencies": {
"fsevents": "1.2.13"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Required to work around yarnpkg/yarn#7273 on Linux.

Also requires running install with --ignore-optional

@react-sizebot
Copy link

react-sizebot commented Feb 15, 2024

Comparing: bf09089...2c3e242

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 168.12 kB 168.12 kB = 52.72 kB 52.72 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 169.92 kB 169.92 kB = 53.26 kB 53.26 kB
facebook-www/ReactDOM-prod.classic.js = 588.50 kB 588.50 kB = 103.50 kB 103.50 kB
facebook-www/ReactDOM-prod.modern.js = 564.35 kB 564.35 kB = 99.66 kB 99.66 kB
test_utils/ReactAllWarnings.js Deleted 64.24 kB 0.00 kB Deleted 16.03 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
test_utils/ReactAllWarnings.js Deleted 64.24 kB 0.00 kB Deleted 16.03 kB 0.00 kB

Generated by 🚫 dangerJS against 2c3e242

@eps1lon eps1lon force-pushed the test/fixture-attribute-behavior branch 5 times, most recently from e53d7c8 to 7ae6e02 Compare February 15, 2024 20:55
@eps1lon eps1lon marked this pull request as ready for review February 15, 2024 21:05
@eps1lon eps1lon force-pushed the test/fixture-attribute-behavior branch from 7ae6e02 to fa93c58 Compare February 15, 2024 22:19
@eps1lon eps1lon force-pushed the test/fixture-attribute-behavior branch from 958bbd7 to 2c3e242 Compare April 12, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants