forked from quipucords/quipucords-ui
/
authentication.test.js.snap
121 lines (117 loc) · 3.03 KB
/
authentication.test.js.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Authentication Component should render a connected component: connected 1`] = `
<Connect(Authentication)>
<span
className="test"
>
lorem
</span>
</Connect(Authentication)>
`;
exports[`Authentication Component should render a non-connected component authorized: non-connected authorized 1`] = `
<Authentication
authorizeUser={[Function]}
session={
Object {
"authorized": true,
"error": false,
"errorMessage": "",
"pending": false,
}
}
t={[Function]}
>
<span
className="test"
>
lorem
</span>
</Authentication>
`;
exports[`Authentication Component should render a non-connected component error: non-connected error 1`] = `
<Alert
title="t(view.error, {\\"context\\":\\"authentication\\"})"
variant="danger"
>
<div
aria-label="Danger Alert"
className="pf-c-alert pf-m-danger"
data-ouia-component-id="OUIA-Generated-Alert-danger-1"
data-ouia-component-type="PF4/Alert"
data-ouia-safe={true}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
>
<AlertIcon
variant="danger"
>
<div
className="pf-c-alert__icon"
>
<ExclamationCircleIcon
color="currentColor"
noVerticalAlign={false}
size="sm"
>
<svg
aria-hidden={true}
aria-labelledby={null}
fill="currentColor"
height="1em"
role="img"
style={
Object {
"verticalAlign": "-0.125em",
}
}
viewBox="0 0 512 512"
width="1em"
>
<path
d="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"
/>
</svg>
</ExclamationCircleIcon>
</div>
</AlertIcon>
<h4
className="pf-c-alert__title"
>
<span
className="pf-u-screen-reader"
>
Danger alert:
</span>
t(view.error, {"context":"authentication"})
</h4>
<div
className="pf-c-alert__description"
>
t(view.error-message, {"context":"authentication","message":"Authentication credentials were not provided."}, [object Object])
</div>
</div>
</Alert>
`;
exports[`Authentication Component should render a non-connected component pending: non-connected pending 1`] = `
<Modal
aria-label={null}
backdrop={false}
className={null}
disableFocusTrap={true}
footer={null}
header={null}
isOpen={true}
position="top"
positionOffset="5%"
showClose={false}
t={[Function]}
variant="medium"
>
<div
className="spinner spinner-xl"
/>
<Bullseye>
t(view.loading, {"context":"authentication"})
</Bullseye>
</Modal>
`;