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.

ApplicationBranches-test.tsx.snap 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render correctly: can create branches 1`] = `
  3. <div
  4. className="app-branches-console"
  5. >
  6. <div
  7. className="boxed-group-actions"
  8. >
  9. <Button
  10. disabled={false}
  11. onClick={[Function]}
  12. >
  13. application_console.branches.create
  14. </Button>
  15. </div>
  16. <h2
  17. className="text-limited big-spacer-top"
  18. title="application_console.branches"
  19. >
  20. application_console.branches
  21. </h2>
  22. <p>
  23. application_console.branches.help
  24. </p>
  25. <div
  26. className="app-branches-list"
  27. >
  28. <table
  29. className="data zebra"
  30. >
  31. <tbody>
  32. <ApplicationProjectBranch
  33. application={
  34. Object {
  35. "branches": Array [
  36. Object {
  37. "analysisDate": "2018-01-01",
  38. "excludedFromPurge": true,
  39. "isMain": false,
  40. "name": "branch-6.7",
  41. },
  42. ],
  43. "key": "foo",
  44. "name": "Foo",
  45. "projects": Array [
  46. Object {
  47. "branch": "master",
  48. "enabled": true,
  49. "isMain": true,
  50. "key": "bar",
  51. "name": "Bar",
  52. },
  53. ],
  54. "visibility": "private",
  55. }
  56. }
  57. branch={
  58. Object {
  59. "analysisDate": "2018-01-01",
  60. "excludedFromPurge": true,
  61. "isMain": false,
  62. "name": "branch-6.7",
  63. }
  64. }
  65. key="branch-6.7"
  66. onUpdateBranches={[MockFunction]}
  67. />
  68. </tbody>
  69. </table>
  70. </div>
  71. </div>
  72. `;
  73. exports[`should render correctly: creating branch 1`] = `
  74. <div
  75. className="app-branches-console"
  76. >
  77. <div
  78. className="boxed-group-actions"
  79. >
  80. <Button
  81. disabled={true}
  82. onClick={[Function]}
  83. >
  84. application_console.branches.create
  85. </Button>
  86. </div>
  87. <h2
  88. className="text-limited big-spacer-top"
  89. title="application_console.branches"
  90. >
  91. application_console.branches
  92. </h2>
  93. <p>
  94. application_console.branches.help
  95. </p>
  96. <div
  97. className="app-branches-list"
  98. >
  99. <p
  100. className="text-center big-spacer-top"
  101. >
  102. application_console.branches.no_branches
  103. </p>
  104. </div>
  105. <CreateBranchForm
  106. application={
  107. Object {
  108. "branches": Array [
  109. Object {
  110. "analysisDate": "2018-01-01",
  111. "excludedFromPurge": true,
  112. "isMain": false,
  113. "name": "branch-6.7",
  114. },
  115. ],
  116. "key": "foo",
  117. "name": "Foo",
  118. "projects": Array [
  119. Object {
  120. "branch": "master",
  121. "isMain": true,
  122. "key": "bar",
  123. "name": "Bar",
  124. },
  125. ],
  126. "visibility": "private",
  127. }
  128. }
  129. enabledProjectsKey={
  130. Array [
  131. "bar",
  132. ]
  133. }
  134. onClose={[Function]}
  135. onCreate={[Function]}
  136. onUpdate={[Function]}
  137. />
  138. </div>
  139. `;
  140. exports[`should render correctly: default 1`] = `
  141. <div
  142. className="app-branches-console"
  143. >
  144. <div
  145. className="boxed-group-actions"
  146. >
  147. <Button
  148. disabled={true}
  149. onClick={[Function]}
  150. >
  151. application_console.branches.create
  152. </Button>
  153. </div>
  154. <h2
  155. className="text-limited big-spacer-top"
  156. title="application_console.branches"
  157. >
  158. application_console.branches
  159. </h2>
  160. <p>
  161. application_console.branches.help
  162. </p>
  163. <div
  164. className="app-branches-list"
  165. >
  166. <p
  167. className="text-center big-spacer-top"
  168. >
  169. application_console.branches.no_branches
  170. </p>
  171. </div>
  172. </div>
  173. `;