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 button vdiff tests #3949

Merged
merged 12 commits into from
Aug 31, 2023
Merged

Migrate button vdiff tests #3949

merged 12 commits into from
Aug 31, 2023

Conversation

bearfriend
Copy link
Contributor

@bearfriend bearfriend commented Aug 30, 2023

TA178549: button and icons

Largely the same as the initial rewrite in #3610 with some minor tweaks

Final Report: https://vdiff.d2l.dev/BrightspaceUI/core/f0a05037a11723c977fe7bc75225ae40b336933b/2023-08-30_22-04-52/report/

@bearfriend bearfriend requested a review from a team as a code owner August 30, 2023 13:36
@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-3949/

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

Comment on lines +32 to +51
[
{ category: 'default-icon', template: html`<d2l-button-subtle icon="tier1:bookmark-hollow" text="Subtle Button"></d2l-button-subtle>` },
{ category: 'default-icon-right', template: html`<d2l-button-subtle icon="tier1:chevron-down" text="Subtle Button" icon-right></d2l-button-subtle>` },
{ category: 'slim-icon', template: html`<d2l-button-subtle slim icon="tier1:bookmark-hollow" text="Subtle Button"></d2l-button-subtle>` },
{ category: 'slim-icon-right', template: html`<d2l-button-subtle slim icon="tier1:chevron-down" text="Subtle Button" icon-right></d2l-button-subtle>` }
].forEach(({ category, template }) => {

describe(category, () => {
[
{ name: 'normal' },
{ name: 'rtl', rtl: true }
].forEach(({ action, name, rtl }) => {
it(name, async() => {
const elem = await fixture(template, { rtl });
if (action) await action(elem);
await expect(elem).to.be.golden();
});
});
});
});
Copy link
Contributor

Choose a reason for hiding this comment

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

I was getting too confused with all the new tests and wanted to make sure we didn't miss properly renaming any of the old ones. I'd like to merge this like this, and then immediately put up a PR that removes this block and uncomments the tests above, giving a set of net new goldens to judge

@bearfriend bearfriend merged commit b72ea43 into main Aug 31, 2023
6 checks passed
@bearfriend bearfriend deleted the dgleckler/button-vdiff branch August 31, 2023 14:00
@ghost
Copy link

ghost commented Sep 1, 2023

🎉 This PR is included in version 2.142.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ghost ghost added the released label Sep 1, 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.

3 participants