AlertRuleList.jest.tsx.snap 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`AlertRuleList should render 1 rule 1`] = `
  3. <li
  4. className="alert-rule-item"
  5. >
  6. <span
  7. className="alert-rule-item__icon alert-state-ok"
  8. >
  9. <i
  10. className="icon-gf icon-gf-online"
  11. />
  12. </span>
  13. <div
  14. className="alert-rule-item__body"
  15. >
  16. <div
  17. className="alert-rule-item__header"
  18. >
  19. <div
  20. className="alert-rule-item__name"
  21. >
  22. <a
  23. href="d/ufkcofof/my-goal?panelId=3&fullscreen=true&edit=true&tab=alert"
  24. >
  25. <Highlighter
  26. highlightClassName="highlight-search-match"
  27. searchWords={
  28. Array [
  29. "",
  30. ]
  31. }
  32. textToHighlight="Panel Title alert"
  33. >
  34. <span>
  35. <span
  36. className=""
  37. key="0"
  38. >
  39. Panel Title alert
  40. </span>
  41. </span>
  42. </Highlighter>
  43. </a>
  44. </div>
  45. <div
  46. className="alert-rule-item__text"
  47. >
  48. <span
  49. className="alert-state-ok"
  50. >
  51. <Highlighter
  52. highlightClassName="highlight-search-match"
  53. searchWords={
  54. Array [
  55. "",
  56. ]
  57. }
  58. textToHighlight="OK"
  59. >
  60. <span>
  61. <span
  62. className=""
  63. key="0"
  64. >
  65. OK
  66. </span>
  67. </span>
  68. </Highlighter>
  69. </span>
  70. <span
  71. className="alert-rule-item__time"
  72. >
  73. for
  74. 5 minutes
  75. </span>
  76. </div>
  77. </div>
  78. </div>
  79. <div
  80. className="alert-rule-item__actions"
  81. >
  82. <button
  83. className="btn btn-small btn-inverse alert-list__btn width-2"
  84. onClick={[Function]}
  85. title="Pausing an alert rule prevents it from executing"
  86. >
  87. <i
  88. className="fa fa-pause"
  89. />
  90. </button>
  91. <a
  92. className="btn btn-small btn-inverse alert-list__btn width-2"
  93. href="d/ufkcofof/my-goal?panelId=3&fullscreen=true&edit=true&tab=alert"
  94. title="Edit alert rule"
  95. >
  96. <i
  97. className="icon-gf icon-gf-settings"
  98. />
  99. </a>
  100. </div>
  101. </li>
  102. `;