Skip to content

Commit dad76de

Browse files
committed
Corrected issue with PrivateNotes display
1 parent be45bfc commit dad76de

File tree

3 files changed

+66
-2
lines changed

3 files changed

+66
-2
lines changed

web-ui/src/components/private-note/PrivateNote.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const PrivateNote = () => {
162162
) : (
163163
<Editor
164164
apiKey="246ojmsp6c7qtnr9aoivktvi3mi5t7ywuf0vevn6wllfcn9e"
165-
id="tiny-mce-checkin-notes"
165+
id="tiny-mce-checkin-private-notes"
166166
value={note && note.description ? note.description : ''}
167167
onEditorChange={handleNoteChange}
168168
readOnly={

web-ui/src/components/private-note/PrivateNote.test.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const initialState = {
3838
workEmail: '[email protected]'
3939
},
4040
role: ['MEMBER'],
41+
permissions: [{id:1, permission: 'CAN_ADMINISTER_CHECKIN_DOCUMENTS', description: ''}],
4142
imageUrl:
4243
'https://upload.wikimedia.org/wikipedia/commons/7/74/SNL_MrBill_Doll.jpg'
4344
},
Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,66 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`renders correctly 1`] = `<div />`;
3+
exports[`renders correctly 1`] = `
4+
<div>
5+
<div
6+
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation1 MuiCard-root private-note css-bhp9pd-MuiPaper-root-MuiCard-root"
7+
>
8+
<div
9+
class="MuiCardHeader-root css-185gdzj-MuiCardHeader-root"
10+
>
11+
<div
12+
class="MuiCardHeader-avatar css-1ssile9-MuiCardHeader-avatar"
13+
>
14+
<svg
15+
aria-hidden="true"
16+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
17+
data-testid="LockIcon"
18+
focusable="false"
19+
viewBox="0 0 24 24"
20+
>
21+
<path
22+
d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"
23+
/>
24+
</svg>
25+
</div>
26+
<div
27+
class="MuiCardHeader-content css-1qbkelo-MuiCardHeader-content"
28+
>
29+
<h2
30+
class="MuiTypography-root MuiTypography-h5 MuiCardHeader-title css-1qvr50w-MuiTypography-root"
31+
>
32+
Private Notes
33+
</h2>
34+
</div>
35+
</div>
36+
<div
37+
class="MuiCardContent-root css-46bh2p-MuiCardContent-root"
38+
>
39+
<div
40+
class="container"
41+
>
42+
<div
43+
class="skeleton"
44+
>
45+
<span
46+
class="MuiSkeleton-root MuiSkeleton-text MuiSkeleton-pulse css-1e1x4vv-MuiSkeleton-root"
47+
style="height: 2rem;"
48+
/>
49+
<span
50+
class="MuiSkeleton-root MuiSkeleton-text MuiSkeleton-pulse css-1e1x4vv-MuiSkeleton-root"
51+
style="height: 2rem;"
52+
/>
53+
<span
54+
class="MuiSkeleton-root MuiSkeleton-text MuiSkeleton-pulse css-1e1x4vv-MuiSkeleton-root"
55+
style="height: 2rem;"
56+
/>
57+
<span
58+
class="MuiSkeleton-root MuiSkeleton-text MuiSkeleton-pulse css-1e1x4vv-MuiSkeleton-root"
59+
style="height: 2rem;"
60+
/>
61+
</div>
62+
</div>
63+
</div>
64+
</div>
65+
</div>
66+
`;

0 commit comments

Comments
 (0)