]> source.dussan.org Git - sonarqube.git/blob
cc1cf2fc27ae0ad7f5a95a1b34009f452b26d7cd
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders correctly: default 1`] = `
4 <Fragment>
5   <div
6     className="page-header big-spacer-bottom"
7   >
8     <h1
9       className="page-title"
10     >
11       onboarding.project_analysis.header
12     </h1>
13     <p
14       className="page-description"
15     >
16       <InstanceMessage
17         message="onboarding.project_analysis.description"
18       />
19     </p>
20   </div>
21   <TokenStep
22     currentUser={
23       Object {
24         "groups": Array [],
25         "isLoggedIn": true,
26         "login": "luke",
27         "name": "Skywalker",
28         "scmAccounts": Array [],
29       }
30     }
31     finished={false}
32     initialTokenName="Analyze \\"MyProject\\""
33     onContinue={[Function]}
34     onOpen={[Function]}
35     open={true}
36     stepNumber={1}
37   />
38   <ProjectAnalysisStep
39     component={
40       Object {
41         "breadcrumbs": Array [],
42         "key": "my-project",
43         "name": "MyProject",
44         "organization": "foo",
45         "qualifier": "TRK",
46         "qualityGate": Object {
47           "isDefault": true,
48           "key": "30",
49           "name": "Sonar way",
50         },
51         "qualityProfiles": Array [
52           Object {
53             "deleted": false,
54             "key": "my-qp",
55             "language": "ts",
56             "name": "Sonar way",
57           },
58         ],
59         "tags": Array [],
60       }
61     }
62     displayRowLayout={true}
63     open={false}
64     stepNumber={2}
65   />
66 </Fragment>
67 `;
68
69 exports[`renders correctly: with back button 1`] = `
70 <Fragment>
71   <div
72     className="page-header big-spacer-bottom"
73   >
74     <h1
75       className="page-title"
76     >
77       <Tooltip
78         overlay="onboarding.tutorial.return_to_list"
79       >
80         <a
81           aria-label="onboarding.tutorial.return_to_list"
82           className="link-no-underline big-spacer-right"
83           onClick={[MockFunction]}
84         >
85           <BackIcon />
86         </a>
87       </Tooltip>
88       onboarding.project_analysis.header
89     </h1>
90     <p
91       className="page-description"
92     >
93       <InstanceMessage
94         message="onboarding.project_analysis.description"
95       />
96     </p>
97   </div>
98   <TokenStep
99     currentUser={
100       Object {
101         "groups": Array [],
102         "isLoggedIn": true,
103         "login": "luke",
104         "name": "Skywalker",
105         "scmAccounts": Array [],
106       }
107     }
108     finished={false}
109     initialTokenName="Analyze \\"MyProject\\""
110     onContinue={[Function]}
111     onOpen={[Function]}
112     open={true}
113     stepNumber={1}
114   />
115   <ProjectAnalysisStep
116     component={
117       Object {
118         "breadcrumbs": Array [],
119         "key": "my-project",
120         "name": "MyProject",
121         "organization": "foo",
122         "qualifier": "TRK",
123         "qualityGate": Object {
124           "isDefault": true,
125           "key": "30",
126           "name": "Sonar way",
127         },
128         "qualityProfiles": Array [
129           Object {
130             "deleted": false,
131             "key": "my-qp",
132             "language": "ts",
133             "name": "Sonar way",
134           },
135         ],
136         "tags": Array [],
137       }
138     }
139     displayRowLayout={true}
140     open={false}
141     stepNumber={2}
142   />
143 </Fragment>
144 `;