docbrown/app/javascript/__tests__/__snapshots__/asyncUserStatusCheck.test.js.snap
Joshua Wehner c91a652245
Allow trusted users to see whether a user is suspended (#20061)
* Async append user suspended status pill

* Rubocop

* Relocate JS tests, for build & coverage

* Better error-handling for this controller

* Refactor HTML to render pill outside h1

* Continuing to tweak design

* JS class prepended
2023-09-15 08:44:31 -04:00

29 lines
1.1 KiB
Text

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`asyncUserStatusCheck user **is** suspended **does** badge the user 1`] = `
"
<div class=\\"profile-header__details\\" data-url=\\"/users/123\\" data-status-checked=\\"true\\">
<div class=\\"js-username-container\\">
<h1 class=\\"crayons-title\\">User Hasaname</h1>
<span data-testid=\\"user-status\\" class=\\"ml-3 c-indicator c-indicator--danger c-indicator--relaxed\\">Suspended</span></div>
<p class=\\"\\">Animi et qui. Voluptatum voluptas omnis. Libero voluptatem cum. Unde.</p>
<div class=\\"profile-header__meta\\">
</div>
</div>
"
`;
exports[`asyncUserStatusCheck user is **NOT** suspended does not badge the user 1`] = `
"
<div class=\\"profile-header__details\\" data-url=\\"/users/123\\" data-status-checked=\\"true\\">
<div class=\\"js-username-container\\">
<h1 class=\\"crayons-title\\">User Hasaname</h1>
</div>
<p class=\\"\\">Animi et qui. Voluptatum voluptas omnis. Libero voluptatem cum. Unde.</p>
<div class=\\"profile-header__meta\\">
</div>
</div>
"
`;