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

Migrate input radio & checkbox vdiffs #4083

Merged
merged 6 commits into from
Sep 21, 2023

Conversation

dlockhart
Copy link
Member

Nothing major here, although anything "disabled" because it's using opacity is perceived as a difference. I renamed some of the tests/goldens to not have wc- in them.

@dlockhart dlockhart requested a review from a team as a code owner September 20, 2023 19:12
[false, true].forEach(disabled => {
const checkedStates = ['checked', 'unchecked'];
if (!skeleton) {
checkedStates.push('indeterminate');
Copy link
Member Author

Choose a reason for hiding this comment

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

The old HTML file actually has fixtures for skeleton + indeterminate but I've excluded them to be consistent. I can add them in though if we think they're valuable.

Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting, as in had fixtures for them but no actual tests/goldens? It would clean up three lines of code for some (hopefully) simple, non-flaky diffs, but not sure how valuable they are. I'd say I'm indifferent

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah exactly. They're not testing anything interesting IMO so I'm going to leave them off.

Copy link
Member Author

Choose a reason for hiding this comment

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

Centralized this since a few of our vdiff tests need it now.

@github-actions
Copy link
Contributor

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-4083/

Note
The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

await visualDiff.screenshotAndCompare(page, this.test.fullTitle(), { clip: rect });
});
if (state !== 'disabled') {
it(`${id}-focus`, async function() {
Copy link
Contributor

@svanherk svanherk Sep 20, 2023

Choose a reason for hiding this comment

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

Looks like these focus ones didn't get moved over, was that on purpose?

Edit: Specifically the sass ones, I missed that the others were

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops yep thanks. Splitting wc out made it complicated and I forgot about those -- restored them now.

Co-authored-by: github-actions <github-actions@github.com>
@dlockhart dlockhart force-pushed the dlockhart/vdiff-input-checkbox-radio branch from da7e6a0 to 1b3b27a Compare September 21, 2023 13:00
Co-authored-by: github-actions <github-actions@github.com>
@dlockhart dlockhart merged commit c047952 into main Sep 21, 2023
7 checks passed
@dlockhart dlockhart deleted the dlockhart/vdiff-input-checkbox-radio branch September 21, 2023 15:55
@ghost
Copy link

ghost commented Sep 21, 2023

🎉 This PR is included in version 2.149.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ghost ghost added the released label Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants