Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peterMuriuki committed Nov 9, 2023
1 parent 525bea9 commit 1cf4fad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 207 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,212 +400,6 @@ exports[`renders correctly when listing resources: table row 5 page 1 4`] = `
</td>
`;

exports[`renders correctly when listing resources: user details 1`] = `
<div
data-testid="key-value"
>
<dl
class="singleKeyValue"
>
<div
class="singleKeyValue-pair"
>
<dt
class="singleKeyValue-pair__label"
>
<span
class="ant-typography ant-typography-secondary css-dev-only-do-not-override-k7429z"
>
Keycloak UUID
</span>
</dt>
<dd
class="singleKeyValue-pair__value"
>
<span
class="ant-typography css-dev-only-do-not-override-k7429z"
>
081724e8-5fc1-47dd-8d0c-fa0c6ae6ddf0
</span>
</dd>
</div>
</dl>
</div>
`;

exports[`renders correctly when listing resources: user details 2`] = `
<div
data-testid="key-value"
>
<dl
class="singleKeyValue"
>
<div
class="singleKeyValue-pair"
>
<dt
class="singleKeyValue-pair__label"
>
<span
class="ant-typography ant-typography-secondary css-dev-only-do-not-override-k7429z"
>
Username
</span>
</dt>
<dd
class="singleKeyValue-pair__value"
>
<span
class="ant-typography css-dev-only-do-not-override-k7429z"
>
april4petertest
</span>
</dd>
</div>
</dl>
</div>
`;

exports[`renders correctly when listing resources: user details 3`] = `
<div
data-testid="key-value"
>
<dl
class="singleKeyValue"
>
<div
class="singleKeyValue-pair"
>
<dt
class="singleKeyValue-pair__label"
>
<span
class="ant-typography ant-typography-secondary css-dev-only-do-not-override-k7429z"
>
Practitioner ID
</span>
</dt>
<dd
class="singleKeyValue-pair__value"
>
<span
class="ant-typography css-dev-only-do-not-override-k7429z"
>
206
</span>
</dd>
</div>
</dl>
</div>
`;

exports[`renders correctly when listing resources: user details 4`] = `
<div
data-testid="key-value"
>
<dl
class="singleKeyValue"
>
<div
class="singleKeyValue-pair"
>
<dt
class="singleKeyValue-pair__label"
>
<span
class="ant-typography ant-typography-secondary css-dev-only-do-not-override-k7429z"
>
Practitioner UUID
</span>
</dt>
<dd
class="singleKeyValue-pair__value"
>
<span
class="ant-typography css-dev-only-do-not-override-k7429z"
>
c1d36d9a-b771-410b-959e-af2c04d132a2
</span>
</dd>
</div>
</dl>
</div>
`;

exports[`renders correctly when listing resources: user details 5`] = `
<div
data-testid="key-value"
>
<dl
class="singleKeyValue"
>
<div
class="singleKeyValue-pair"
>
<dt
class="singleKeyValue-pair__label"
>
<span
class="ant-typography ant-typography-secondary css-dev-only-do-not-override-k7429z"
>
Practitioner status
</span>
</dt>
<dd
class="singleKeyValue-pair__value"
>
<span
class="ant-typography css-dev-only-do-not-override-k7429z"
>
inactive
</span>
</dd>
</div>
</dl>
</div>
`;

exports[`renders correctly when listing resources: user details 6`] = `
<div
data-testid="key-value"
>
<dl
class="singleKeyValue"
>
<div
class="singleKeyValue-pair"
>
<dt
class="singleKeyValue-pair__label"
>
<span
class="ant-typography ant-typography-secondary css-dev-only-do-not-override-k7429z"
>
User Type
</span>
</dt>
<dd
class="singleKeyValue-pair__value"
>
<span
class="ant-typography css-dev-only-do-not-override-k7429z"
>
<ul
id="user-type"
>
<li
data-testid="user-type"
>
practitioner
</li>
</ul>
</span>
</dd>
</div>
</dl>
</div>
`;

exports[`renders correctly when listing resources: yes button 1`] = `
<button
class="ant-btn css-dev-only-do-not-override-k7429z ant-btn-primary ant-btn-sm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ test('Renders without crashing', async () => {
fireEvent.click(leaveBtn);

await waitFor(() => {
expect(successMock).toHaveBeenCalledWith('User was removed from the keycloak group');
expect(successMock).toHaveBeenCalledWith(
'User has been successfully removed from the keycloak group'
);
});

// go to practitioners
Expand Down

0 comments on commit 1cf4fad

Please sign in to comment.