You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PageHeader-test.tsx.snap 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render correctly 1`] = `
  3. <header
  4. className="page-header"
  5. >
  6. <h1
  7. className="page-title"
  8. >
  9. system_info.page
  10. </h1>
  11. <PageActions
  12. canDownloadLogs={false}
  13. cluster={true}
  14. logLevel="INFO"
  15. onLogLevelChange={[MockFunction]}
  16. />
  17. </header>
  18. `;
  19. exports[`should render correctly 2`] = `
  20. <header
  21. className="page-header"
  22. >
  23. <h1
  24. className="page-title"
  25. >
  26. system_info.page
  27. </h1>
  28. <div
  29. className="page-actions"
  30. >
  31. <i
  32. className="spinner"
  33. />
  34. </div>
  35. </header>
  36. `;
  37. exports[`should render correctly 3`] = `
  38. <header
  39. className="page-header"
  40. >
  41. <h1
  42. className="page-title"
  43. >
  44. system_info.page
  45. </h1>
  46. <PageActions
  47. canDownloadLogs={false}
  48. cluster={true}
  49. logLevel="INFO"
  50. onLogLevelChange={[MockFunction]}
  51. serverId="foo-bar"
  52. />
  53. <div
  54. className="system-info-copy-paste-id-info boxed-group "
  55. >
  56. <div
  57. className="display-flex-center"
  58. >
  59. <div
  60. className="flex-1"
  61. >
  62. <table
  63. className="width-100"
  64. >
  65. <tbody>
  66. <tr>
  67. <th>
  68. <strong>
  69. system.server_id
  70. </strong>
  71. </th>
  72. <td>
  73. <code>
  74. foo-bar
  75. </code>
  76. </td>
  77. </tr>
  78. <tr>
  79. <th>
  80. <strong>
  81. system.version
  82. </strong>
  83. </th>
  84. <td>
  85. <AppVersionStatus />
  86. </td>
  87. </tr>
  88. </tbody>
  89. </table>
  90. </div>
  91. <ClipboardButton
  92. className="flex-0"
  93. copyValue="SonarQube ID information
  94. Server ID: foo-bar
  95. Version: 7.7.0.1234
  96. Date: 2019-01-01
  97. "
  98. >
  99. system.copy_id_info
  100. </ClipboardButton>
  101. </div>
  102. </div>
  103. </header>
  104. `;
  105. exports[`should render correctly: on embedded database 1`] = `
  106. <header
  107. className="page-header"
  108. >
  109. <h1
  110. className="page-title"
  111. >
  112. system_info.page
  113. </h1>
  114. <PageActions
  115. canDownloadLogs={false}
  116. cluster={true}
  117. logLevel="INFO"
  118. onLogLevelChange={[MockFunction]}
  119. serverId="foo-bar"
  120. />
  121. <div
  122. className="system-info-copy-paste-id-info boxed-group "
  123. >
  124. <Alert
  125. className="width-100"
  126. variant="warning"
  127. >
  128. system.not_production_database_warning
  129. </Alert>
  130. <div
  131. className="display-flex-center"
  132. >
  133. <div
  134. className="flex-1"
  135. >
  136. <table
  137. className="width-100"
  138. >
  139. <tbody>
  140. <tr>
  141. <th>
  142. <strong>
  143. system.server_id
  144. </strong>
  145. </th>
  146. <td>
  147. <code>
  148. foo-bar
  149. </code>
  150. </td>
  151. </tr>
  152. <tr>
  153. <th>
  154. <strong>
  155. system.version
  156. </strong>
  157. </th>
  158. <td>
  159. <AppVersionStatus />
  160. </td>
  161. </tr>
  162. </tbody>
  163. </table>
  164. </div>
  165. <ClipboardButton
  166. className="flex-0"
  167. copyValue="SonarQube ID information
  168. Server ID: foo-bar
  169. Version: 7.7.0.1234
  170. Date: 2019-01-01
  171. "
  172. >
  173. system.copy_id_info
  174. </ClipboardButton>
  175. </div>
  176. </div>
  177. </header>
  178. `;