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(antd): disable antd hashed class name in testing suites #1043

Merged
merged 1 commit into from
Feb 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions __mocks__/react-dom.js

This file was deleted.

60 changes: 30 additions & 30 deletions components/Article/__snapshots__/Article.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
style="opacity: 0; transform: translateX(-200px) translateZ(0);"
>
<span
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold hover:shadow-lg dark:shadow-primary css-dev-only-do-not-override-j0nf2s"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold hover:shadow-lg dark:shadow-primary"
style="background-color: rgb(245, 159, 0);"
>
<a
Expand All @@ -20,7 +20,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
</a>
</span>
<span
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold hover:shadow-lg dark:shadow-primary css-dev-only-do-not-override-j0nf2s"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold hover:shadow-lg dark:shadow-primary"
style="background-color: rgb(55, 178, 77);"
>
<a
Expand All @@ -30,7 +30,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
</a>
</span>
<span
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold hover:shadow-lg dark:shadow-primary css-dev-only-do-not-override-j0nf2s"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold hover:shadow-lg dark:shadow-primary"
style="background-color: rgb(112, 72, 232);"
>
<a
Expand All @@ -40,12 +40,12 @@ exports[`Article should render correctly (snapshot) 1`] = `
</a>
</span>
<h1
class="ant-typography mdx-heading dark:text-light heading title h1 css-dev-only-do-not-override-j0nf2s"
class="ant-typography mdx-heading dark:text-light heading title h1"
>
1 Basic Notes
</h1>
<span
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark css-dev-only-do-not-override-j0nf2s"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="calendar"
Expand All @@ -71,7 +71,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
</span>
</span>
<span
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark css-dev-only-do-not-override-j0nf2s"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="edit"
Expand All @@ -97,7 +97,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
</span>
</span>
<span
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark css-dev-only-do-not-override-j0nf2s"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="clock-circle"
Expand Down Expand Up @@ -135,7 +135,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
class=""
>
<div
class="css-dev-only-do-not-override-j0nf2s ant-anchor-wrapper"
class="ant-anchor-wrapper"
style="max-height: calc(100vh - 150px);"
>
<div
Expand Down Expand Up @@ -165,13 +165,13 @@ exports[`Article should render correctly (snapshot) 1`] = `
>
<article>
<h2
class="ant-typography mdx-heading dark:text-light heading h2 css-dev-only-do-not-override-j0nf2s"
class="ant-typography mdx-heading dark:text-light heading h2"
>
1 Basic Notes
</h2>
</article>
<div
class="ant-divider css-dev-only-do-not-override-j0nf2s ant-divider-horizontal ant-divider-with-text ant-divider-with-text-center divider dark:border-light dark:text-light"
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-center divider dark:border-light dark:text-light"
role="separator"
>
<span
Expand Down Expand Up @@ -247,7 +247,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
</div>
</div>
<div
class="ant-divider css-dev-only-do-not-override-j0nf2s ant-divider-horizontal ant-divider-with-text ant-divider-with-text-center divider dark:border-light dark:text-light"
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-center divider dark:border-light dark:text-light"
role="separator"
>
<span
Expand Down Expand Up @@ -282,7 +282,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
id="disqus_thread"
/>
<div
class="ant-space css-dev-only-do-not-override-j0nf2s ant-space-vertical ant-space-align-center fixed top-1/2 right-0 z-10 hidden -translate-y-1/2 md:visible md:inline-flex"
class="ant-space ant-space-vertical ant-space-align-center fixed top-1/2 right-0 z-10 hidden -translate-y-1/2 md:visible md:inline-flex"
>
<div
class="ant-space-item"
Expand All @@ -294,7 +294,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
tabindex="0"
>
<a
class="ant-btn css-dev-only-do-not-override-j0nf2s ant-btn-link ant-btn-lg ant-btn-icon-only button rounded-none"
class="ant-btn ant-btn-link ant-btn-lg ant-btn-icon-only button rounded-none"
href="https://twitter.com/intent/tweet?url=https://blog.tazimi.dev/post/1BasicNotes"
role="link"
style="background-color: rgb(29, 161, 242);"
Expand Down Expand Up @@ -331,7 +331,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
tabindex="0"
>
<a
class="ant-btn css-dev-only-do-not-override-j0nf2s ant-btn-link ant-btn-lg ant-btn-icon-only button rounded-none"
class="ant-btn ant-btn-link ant-btn-lg ant-btn-icon-only button rounded-none"
href="https://www.facebook.com/sharer.php?u=https://blog.tazimi.dev/post/1BasicNotes"
role="link"
style="background-color: rgb(24, 119, 242);"
Expand Down Expand Up @@ -368,7 +368,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
tabindex="0"
>
<a
class="ant-btn css-dev-only-do-not-override-j0nf2s ant-btn-link ant-btn-lg ant-btn-icon-only button rounded-none"
class="ant-btn ant-btn-link ant-btn-lg ant-btn-icon-only button rounded-none"
href="https://www.linkedin.com/shareArticle?mini=true&url=https://blog.tazimi.dev/post/1BasicNotes"
role="link"
style="background-color: rgb(10, 102, 194);"
Expand Down Expand Up @@ -404,7 +404,7 @@ exports[`Article should render correctly (snapshot) 1`] = `
tabindex="0"
>
<a
class="ant-btn css-dev-only-do-not-override-j0nf2s ant-btn-link ant-btn-lg ant-btn-icon-only button rounded-none"
class="ant-btn ant-btn-link ant-btn-lg ant-btn-icon-only button rounded-none"
href="https://service.weibo.com/share/share.php?url=https://blog.tazimi.dev/post/1BasicNotes"
role="link"
style="background-color: rgb(230, 22, 45);"
Expand Down Expand Up @@ -447,7 +447,7 @@ exports[`Article should render correctly with partial data (snapshot) 1`] = `
style="opacity: 0; transform: translateX(-200px) translateZ(0);"
>
<span
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold hover:shadow-lg dark:shadow-primary css-dev-only-do-not-override-j0nf2s"
class="ant-tag ant-tag-has-color mb-1 rounded-none text-base font-extrabold hover:shadow-lg dark:shadow-primary"
style="background-color: rgb(22, 119, 255);"
>
<a
Expand All @@ -457,12 +457,12 @@ exports[`Article should render correctly with partial data (snapshot) 1`] = `
</a>
</span>
<h1
class="ant-typography mdx-heading dark:text-light heading title h1 css-dev-only-do-not-override-j0nf2s"
class="ant-typography mdx-heading dark:text-light heading title h1"
>
1 Basic Notes
</h1>
<span
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark css-dev-only-do-not-override-j0nf2s"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="calendar"
Expand All @@ -488,7 +488,7 @@ exports[`Article should render correctly with partial data (snapshot) 1`] = `
</span>
</span>
<span
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark css-dev-only-do-not-override-j0nf2s"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="edit"
Expand All @@ -514,7 +514,7 @@ exports[`Article should render correctly with partial data (snapshot) 1`] = `
</span>
</span>
<span
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark css-dev-only-do-not-override-j0nf2s"
class="ant-tag mt-1 inline-flex items-center justify-center rounded-none border-black bg-black text-base font-extrabold text-light dark:border-light dark:bg-light dark:text-dark"
>
<span
aria-label="clock-circle"
Expand Down Expand Up @@ -552,7 +552,7 @@ exports[`Article should render correctly with partial data (snapshot) 1`] = `
class=""
>
<div
class="css-dev-only-do-not-override-j0nf2s ant-anchor-wrapper"
class="ant-anchor-wrapper"
style="max-height: calc(100vh - 150px);"
>
<div
Expand Down Expand Up @@ -582,13 +582,13 @@ exports[`Article should render correctly with partial data (snapshot) 1`] = `
>
<article>
<h2
class="ant-typography mdx-heading dark:text-light heading h2 css-dev-only-do-not-override-j0nf2s"
class="ant-typography mdx-heading dark:text-light heading h2"
>
1 Basic Notes
</h2>
</article>
<div
class="ant-divider css-dev-only-do-not-override-j0nf2s ant-divider-horizontal ant-divider-with-text ant-divider-with-text-center divider dark:border-light dark:text-light"
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-center divider dark:border-light dark:text-light"
role="separator"
>
<span
Expand Down Expand Up @@ -664,7 +664,7 @@ exports[`Article should render correctly with partial data (snapshot) 1`] = `
</div>
</div>
<div
class="ant-divider css-dev-only-do-not-override-j0nf2s ant-divider-horizontal ant-divider-with-text ant-divider-with-text-center divider dark:border-light dark:text-light"
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-center divider dark:border-light dark:text-light"
role="separator"
>
<span
Expand Down Expand Up @@ -699,7 +699,7 @@ exports[`Article should render correctly with partial data (snapshot) 1`] = `
id="disqus_thread"
/>
<div
class="ant-space css-dev-only-do-not-override-j0nf2s ant-space-vertical ant-space-align-center fixed top-1/2 right-0 z-10 hidden -translate-y-1/2 md:visible md:inline-flex"
class="ant-space ant-space-vertical ant-space-align-center fixed top-1/2 right-0 z-10 hidden -translate-y-1/2 md:visible md:inline-flex"
>
<div
class="ant-space-item"
Expand All @@ -711,7 +711,7 @@ exports[`Article should render correctly with partial data (snapshot) 1`] = `
tabindex="0"
>
<a
class="ant-btn css-dev-only-do-not-override-j0nf2s ant-btn-link ant-btn-lg ant-btn-icon-only button rounded-none"
class="ant-btn ant-btn-link ant-btn-lg ant-btn-icon-only button rounded-none"
href="https://twitter.com/intent/tweet?url=https://blog.tazimi.dev/post/1BasicNotes"
role="link"
style="background-color: rgb(29, 161, 242);"
Expand Down Expand Up @@ -748,7 +748,7 @@ exports[`Article should render correctly with partial data (snapshot) 1`] = `
tabindex="0"
>
<a
class="ant-btn css-dev-only-do-not-override-j0nf2s ant-btn-link ant-btn-lg ant-btn-icon-only button rounded-none"
class="ant-btn ant-btn-link ant-btn-lg ant-btn-icon-only button rounded-none"
href="https://www.facebook.com/sharer.php?u=https://blog.tazimi.dev/post/1BasicNotes"
role="link"
style="background-color: rgb(24, 119, 242);"
Expand Down Expand Up @@ -785,7 +785,7 @@ exports[`Article should render correctly with partial data (snapshot) 1`] = `
tabindex="0"
>
<a
class="ant-btn css-dev-only-do-not-override-j0nf2s ant-btn-link ant-btn-lg ant-btn-icon-only button rounded-none"
class="ant-btn ant-btn-link ant-btn-lg ant-btn-icon-only button rounded-none"
href="https://www.linkedin.com/shareArticle?mini=true&url=https://blog.tazimi.dev/post/1BasicNotes"
role="link"
style="background-color: rgb(10, 102, 194);"
Expand Down Expand Up @@ -821,7 +821,7 @@ exports[`Article should render correctly with partial data (snapshot) 1`] = `
tabindex="0"
>
<a
class="ant-btn css-dev-only-do-not-override-j0nf2s ant-btn-link ant-btn-lg ant-btn-icon-only button rounded-none"
class="ant-btn ant-btn-link ant-btn-lg ant-btn-icon-only button rounded-none"
href="https://service.weibo.com/share/share.php?url=https://blog.tazimi.dev/post/1BasicNotes"
role="link"
style="background-color: rgb(230, 22, 45);"
Expand Down
2 changes: 1 addition & 1 deletion components/Article/__snapshots__/ArticleToc.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`ArticleToc should render correctly (snapshot) 1`] = `
class=""
>
<div
class="css-dev-only-do-not-override-j0nf2s ant-anchor-wrapper"
class="ant-anchor-wrapper"
style="max-height: calc(100vh - 150px);"
>
<div
Expand Down
Loading