]> source.dussan.org Git - sonarqube.git/blob
2b604303996832b3e874731d35713fd0d7619fdd
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: show prompt to configure CI 1`] = `
4 <DismissableAlert
5   alertKey="config_ci_pr_deco.my-project"
6   variant="info"
7 >
8   <FormattedMessage
9     defaultMessage="overview.project.next_steps.set_up_ci"
10     id="overview.project.next_steps.set_up_ci"
11     values={
12       {
13         "link": <ForwardRef(Link)
14           to={
15             {
16               "pathname": "/tutorials",
17               "search": "?id=my-project",
18             }
19           }
20         >
21           overview.project.next_steps.links.set_up_ci
22         </ForwardRef(Link)>,
23       }
24     }
25   />
26 </DismissableAlert>
27 `;
28
29 exports[`should render correctly: show prompt to configure PR decoration + CI, project admin 1`] = `
30 <DismissableAlert
31   alertKey="config_ci_pr_deco.my-project"
32   variant="info"
33 >
34   <FormattedMessage
35     defaultMessage="overview.project.next_steps.set_up_pr_deco_and_ci.admin"
36     id="overview.project.next_steps.set_up_pr_deco_and_ci.admin"
37     values={
38       {
39         "link_ci": <ForwardRef(Link)
40           to={
41             {
42               "pathname": "/tutorials",
43               "search": "?id=my-project",
44             }
45           }
46         >
47           overview.project.next_steps.links.set_up_ci
48         </ForwardRef(Link)>,
49         "link_project_settings": <ForwardRef(Link)
50           to={
51             {
52               "pathname": "/project/settings",
53               "search": "?id=my-project&category=pull_request_decoration_binding",
54             }
55           }
56         >
57           overview.project.next_steps.links.project_settings
58         </ForwardRef(Link)>,
59       }
60     }
61   />
62 </DismissableAlert>
63 `;
64
65 exports[`should render correctly: show prompt to configure PR decoration + CI, regular user 1`] = `
66 <DismissableAlert
67   alertKey="config_ci_pr_deco.my-project"
68   variant="info"
69 >
70   <FormattedMessage
71     defaultMessage="overview.project.next_steps.set_up_pr_deco_and_ci"
72     id="overview.project.next_steps.set_up_pr_deco_and_ci"
73     values={
74       {
75         "link_ci": <ForwardRef(Link)
76           to={
77             {
78               "pathname": "/tutorials",
79               "search": "?id=my-project",
80             }
81           }
82         >
83           overview.project.next_steps.links.set_up_ci
84         </ForwardRef(Link)>,
85       }
86     }
87   />
88 </DismissableAlert>
89 `;
90
91 exports[`should render correctly: show prompt to configure PR decoration, project admin 1`] = `
92 <DismissableAlert
93   alertKey="config_ci_pr_deco.my-project"
94   variant="info"
95 >
96   <FormattedMessage
97     defaultMessage="overview.project.next_steps.set_up_pr_deco.admin"
98     id="overview.project.next_steps.set_up_pr_deco.admin"
99     values={
100       {
101         "link_project_settings": <ForwardRef(Link)
102           to={
103             {
104               "pathname": "/project/settings",
105               "search": "?id=my-project&category=pull_request_decoration_binding",
106             }
107           }
108         >
109           overview.project.next_steps.links.project_settings
110         </ForwardRef(Link)>,
111       }
112     }
113   />
114 </DismissableAlert>
115 `;
116
117 exports[`should render correctly: show prompt to configure PR decoration, regular user 1`] = `
118 <DismissableAlert
119   alertKey="config_ci_pr_deco.my-project"
120   variant="info"
121 >
122   overview.project.next_steps.set_up_pr_deco
123 </DismissableAlert>
124 `;