]> source.dussan.org Git - sonarqube.git/blob
c16bf79e93d69f2bc393b7b1c269329f4dbb9aec
[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       Object {
13         "link": <Link
14           to={
15             Object {
16               "pathname": "/tutorials",
17               "search": "?id=my-project",
18             }
19           }
20         >
21           overview.project.next_steps.links.set_up_ci
22         </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       Object {
39         "link_ci": <Link
40           to={
41             Object {
42               "pathname": "/tutorials",
43               "search": "?id=my-project",
44             }
45           }
46         >
47           overview.project.next_steps.links.set_up_ci
48         </Link>,
49         "link_project_settings": <Link
50           to={
51             Object {
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         </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       Object {
75         "link_ci": <Link
76           to={
77             Object {
78               "pathname": "/tutorials",
79               "search": "?id=my-project",
80             }
81           }
82         >
83           overview.project.next_steps.links.set_up_ci
84         </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       Object {
101         "link_project_settings": <Link
102           to={
103             Object {
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         </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 `;