]> source.dussan.org Git - sonarqube.git/blob
0aa5d44907e1bc7b03edbc59f35f7e9b23b66403
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders 1`] = `
4 <div
5   className="projects-empty-list"
6 >
7   <h3>
8     projects.no_favorite_projects
9   </h3>
10   <div>
11     <p
12       className="big-spacer-top"
13     >
14       projects.no_favorite_projects.engagement
15     </p>
16     <p
17       className="big-spacer-top"
18     >
19       <Link
20         className="button"
21         onlyActiveOnIndex={false}
22         style={Object {}}
23         to="/projects/all"
24       >
25         projects.explore_projects
26       </Link>
27     </p>
28   </div>
29 </div>
30 `;
31
32 exports[`renders for SonarCloud with organizations 1`] = `
33 <div
34   className="projects-empty-list"
35 >
36   <h3>
37     projects.no_favorite_projects
38   </h3>
39   <div
40     className="spacer-top"
41   >
42     <p>
43       projects.no_favorite_projects.how_to_add_projects
44     </p>
45     <div
46       className="huge-spacer-top"
47     >
48       <Button
49         onClick={[MockFunction]}
50       >
51         provisioning.analyze_new_project
52       </Button>
53       <Dropdown
54         className="display-inline-block big-spacer-left"
55         overlay={
56           <ul
57             className="menu"
58           >
59             <OrganizationListItem
60               organization={
61                 Object {
62                   "actions": Object {
63                     "admin": true,
64                   },
65                   "key": "org1",
66                   "name": "org1",
67                   "projectVisibility": "public",
68                 }
69               }
70             />
71             <OrganizationListItem
72               organization={
73                 Object {
74                   "actions": Object {
75                     "admin": false,
76                   },
77                   "key": "org2",
78                   "name": "org2",
79                   "projectVisibility": "public",
80                 }
81               }
82             />
83           </ul>
84         }
85       >
86         <a
87           className="button"
88           href="#"
89         >
90           projects.no_favorite_projects.favorite_projects_from_orgs
91           <DropdownIcon
92             className="little-spacer-left"
93           />
94         </a>
95       </Dropdown>
96       <Link
97         className="button big-spacer-left"
98         onlyActiveOnIndex={false}
99         style={Object {}}
100         to="/explore/projects"
101       >
102         projects.no_favorite_projects.favorite_public_projects
103       </Link>
104     </div>
105   </div>
106 </div>
107 `;
108
109 exports[`renders for SonarCloud without organizations 1`] = `
110 <div
111   className="projects-empty-list"
112 >
113   <h3>
114     projects.no_favorite_projects
115   </h3>
116   <div
117     className="spacer-top"
118   >
119     <p>
120       projects.no_favorite_projects.how_to_add_projects
121     </p>
122     <div
123       className="huge-spacer-top"
124     >
125       <Button
126         onClick={[MockFunction]}
127       >
128         provisioning.analyze_new_project
129       </Button>
130       <Link
131         className="button big-spacer-left"
132         onlyActiveOnIndex={false}
133         style={Object {}}
134         to="/explore/projects"
135       >
136         projects.no_favorite_projects.favorite_public_projects
137       </Link>
138     </div>
139   </div>
140 </div>
141 `;