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.

WebhooksList-test.tsx.snap 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should correctly render empty webhook list 1`] = `
  3. <p>
  4. webhooks.no_result
  5. </p>
  6. `;
  7. exports[`should correctly render the webhooks 1`] = `
  8. <table
  9. className="data zebra"
  10. >
  11. <thead>
  12. <tr>
  13. <th>
  14. name
  15. </th>
  16. <th>
  17. webhooks.url
  18. </th>
  19. <th>
  20. webhooks.secret_header
  21. </th>
  22. <th>
  23. webhooks.last_execution
  24. </th>
  25. <th
  26. className="sw-text-right"
  27. >
  28. actions
  29. </th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. <WebhookItem
  34. key="2"
  35. onDelete={[MockFunction]}
  36. onUpdate={[MockFunction]}
  37. webhook={
  38. {
  39. "hasSecret": false,
  40. "key": "2",
  41. "name": "jenkins webhook",
  42. "url": "http://jenkins.target",
  43. }
  44. }
  45. />
  46. <WebhookItem
  47. key="1"
  48. onDelete={[MockFunction]}
  49. onUpdate={[MockFunction]}
  50. webhook={
  51. {
  52. "hasSecret": false,
  53. "key": "1",
  54. "name": "my webhook",
  55. "url": "http://webhook.target",
  56. }
  57. }
  58. />
  59. </tbody>
  60. </table>
  61. `;