]> source.dussan.org Git - sonarqube.git/blob
e75d8c66ab33271e22de9e91acc600f0eead9a32
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <tr>
5   <td
6     className="hide-overflow nowrap"
7     title="foo"
8   >
9     foo
10   </td>
11   <td
12     className="hide-overflow thin"
13     title="users.tokens.USER_TOKEN"
14   >
15     users.tokens.USER_TOKEN.short
16   </td>
17   <td
18     className="hide-overflow"
19   />
20   <td
21     className="thin nowrap"
22   >
23     <DateFromNow
24       date="2019-01-18T15:06:33+0100"
25       hourPrecision={true}
26     />
27   </td>
28   <td
29     className="thin nowrap text-right"
30   >
31     <DateFormatter
32       date="2019-01-15T15:06:33+0100"
33       long={true}
34     />
35   </td>
36   <td
37     className="thin nowrap text-right"
38   >
39     <DeferredSpinner
40       loading={false}
41     >
42       <i
43         className="deferred-spinner-placeholder"
44       />
45     </DeferredSpinner>
46     <Button
47       className="button-red input-small spacer-left"
48       disabled={false}
49       onClick={[Function]}
50     >
51       users.tokens.revoke
52     </Button>
53   </td>
54 </tr>
55 `;
56
57 exports[`should render correctly 2`] = `
58 <tr>
59   <td
60     className="hide-overflow nowrap"
61     title="foo"
62   >
63     foo
64   </td>
65   <td
66     className="hide-overflow thin"
67     title="users.tokens.USER_TOKEN"
68   >
69     users.tokens.USER_TOKEN.short
70   </td>
71   <td
72     className="hide-overflow"
73   />
74   <td
75     className="thin nowrap"
76   >
77     <DateFromNow
78       date="2019-01-18T15:06:33+0100"
79       hourPrecision={true}
80     />
81   </td>
82   <td
83     className="thin nowrap text-right"
84   >
85     <DateFormatter
86       date="2019-01-15T15:06:33+0100"
87       long={true}
88     />
89   </td>
90   <td
91     className="thin nowrap text-right"
92   >
93     <DeferredSpinner
94       loading={false}
95     >
96       <i
97         className="deferred-spinner-placeholder"
98       />
99     </DeferredSpinner>
100     <ConfirmButton
101       confirmButtonText="users.tokens.revoke_token"
102       isDestructive={true}
103       modalBody={
104         <FormattedMessage
105           defaultMessage="users.tokens.sure_X"
106           id="users.tokens.sure_X"
107           values={
108             Object {
109               "token": <strong>
110                 foo
111               </strong>,
112             }
113           }
114         />
115       }
116       modalHeader="users.tokens.revoke_token"
117       onConfirm={[Function]}
118     >
119       <Component />
120     </ConfirmButton>
121   </td>
122 </tr>
123 `;
124
125 exports[`should revoke the token using inline confirmation 1`] = `
126 <Button
127   className="button-red input-small spacer-left"
128   disabled={false}
129   onClick={[Function]}
130 >
131   users.tokens.revoke
132 </Button>
133 `;
134
135 exports[`should revoke the token using inline confirmation 2`] = `
136 <Button
137   className="button-red input-small spacer-left"
138   disabled={false}
139   onClick={[Function]}
140 >
141   users.tokens.sure
142 </Button>
143 `;