]> source.dussan.org Git - sonarqube.git/blob
0c1b0a28f48a979641bd42ada711f8baf0180675
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: Step wrapper 1`] = `
4 <Step
5   finished={false}
6   onOpen={[MockFunction]}
7   open={true}
8   renderForm={[Function]}
9   stepNumber={2}
10   stepTitle="onboarding.tutorial.with.gitlab_ci.env_variables.title"
11 />
12 `;
13
14 exports[`should render correctly: initial content 1`] = `
15 <div
16   className="boxed-group-inner"
17 >
18   <h2
19     className="spacer-bottom spacer-top"
20   >
21     onboarding.tutorial.with.gitlab_ci.env_variables.section.title
22   </h2>
23   <FormattedMessage
24     defaultMessage="onboarding.tutorial.with.gitlab_ci.env_variables.section.description"
25     id="onboarding.tutorial.with.gitlab_ci.env_variables.section.description"
26     values={
27       {
28         "link": <strong>
29           onboarding.tutorial.with.gitlab_ci.env_variables.description.link
30         </strong>,
31       }
32     }
33   />
34   <ol
35     className="list-styled big-spacer-top"
36   >
37     <li
38       className="big-spacer-bottom"
39     >
40       <FormattedMessage
41         defaultMessage="onboarding.tutorial.env_variables"
42         id="onboarding.tutorial.with.gitlab_ci.env_variables.step1"
43         values={
44           {
45             "extra": <ClipboardIconButton
46               copyValue="SONAR_TOKEN"
47             />,
48             "field": <strong>
49               onboarding.tutorial.with.gitlab_ci.env_variables.step1
50             </strong>,
51             "value": <code
52               className="rule"
53             >
54               SONAR_TOKEN
55             </code>,
56           }
57         }
58       />
59     </li>
60     <TokenStepGenerator
61       component={
62         {
63           "breadcrumbs": [],
64           "key": "my-project",
65           "name": "MyProject",
66           "qualifier": "TRK",
67           "qualityGate": {
68             "isDefault": true,
69             "key": "30",
70             "name": "Sonar way",
71           },
72           "qualityProfiles": [
73             {
74               "deleted": false,
75               "key": "my-qp",
76               "language": "ts",
77               "name": "Sonar way",
78             },
79           ],
80           "tags": [],
81         }
82       }
83       currentUser={
84         {
85           "dismissedNotices": {
86             "educationPrinciples": false,
87           },
88           "groups": [],
89           "isLoggedIn": true,
90           "login": "luke",
91           "name": "Skywalker",
92           "scmAccounts": [],
93         }
94       }
95     />
96     <li
97       className="big-spacer-bottom"
98     >
99       onboarding.tutorial.with.gitlab_ci.env_variables.step3
100     </li>
101     <li
102       className="big-spacer-bottom"
103     >
104       onboarding.tutorial.with.gitlab_ci.env_variables.section.step4
105     </li>
106   </ol>
107   <hr
108     className="no-horizontal-margins"
109   />
110   <h2
111     className="spacer-bottom big-spacer-top"
112   >
113     onboarding.tutorial.with.gitlab_ci.env_variables.section2.title
114   </h2>
115   <FormattedMessage
116     defaultMessage="onboarding.tutorial.with.gitlab_ci.env_variables.section2.description"
117     id="onboarding.tutorial.with.gitlab_ci.env_variables.section2.description"
118     values={
119       {
120         "link": <strong>
121           onboarding.tutorial.with.gitlab_ci.env_variables.description.link
122         </strong>,
123       }
124     }
125   />
126   <ol
127     className="list-styled big-spacer-top big-spacer-bottom"
128   >
129     <li
130       className="big-spacer-bottom"
131     >
132       <FormattedMessage
133         defaultMessage="onboarding.tutorial.env_variables"
134         id="onboarding.tutorial.with.gitlab_ci.env_variables.step1"
135         values={
136           {
137             "extra": <ClipboardIconButton
138               copyValue="SONAR_HOST_URL"
139             />,
140             "field": <strong>
141               onboarding.tutorial.with.gitlab_ci.env_variables.step1
142             </strong>,
143             "value": <code
144               className="rule"
145             >
146               SONAR_HOST_URL
147             </code>,
148           }
149         }
150       />
151     </li>
152     <li
153       className="big-spacer-bottom"
154     >
155       <FormattedMessage
156         defaultMessage="onboarding.tutorial.env_variables"
157         id="onboarding.tutorial.with.gitlab_ci.env_variables.step2"
158         values={
159           {
160             "extra": <ClipboardIconButton
161               copyValue="http://localhost:9000"
162             />,
163             "field": <strong>
164               onboarding.tutorial.env_variables.field
165             </strong>,
166             "value": <code
167               className="rule"
168             >
169               http://localhost:9000
170             </code>,
171           }
172         }
173       />
174     </li>
175     <li
176       className="big-spacer-bottom"
177     >
178       onboarding.tutorial.with.gitlab_ci.env_variables.step3
179     </li>
180     <li
181       className="big-spacer-bottom"
182     >
183       onboarding.tutorial.with.gitlab_ci.env_variables.section2.step4
184     </li>
185   </ol>
186   <Button
187     className="big-spacer-bottom"
188     onClick={[MockFunction]}
189   >
190     continue
191   </Button>
192 </div>
193 `;