AlertRuleItem.test.tsx.snap 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`Render should render component 1`] = `
  3. <li
  4. className="alert-rule-item"
  5. >
  6. <span
  7. className="alert-rule-item__icon state class"
  8. >
  9. <i
  10. className="icon"
  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="https://something.something.darkside?panelId=1&fullscreen=true&edit=true&tab=alert"
  24. >
  25. <Highlighter
  26. highlightClassName="highlight-search-match"
  27. searchWords={
  28. Array [
  29. "",
  30. ]
  31. }
  32. textToHighlight="Some rule"
  33. />
  34. </a>
  35. </div>
  36. <div
  37. className="alert-rule-item__text"
  38. >
  39. <span
  40. className="state class"
  41. >
  42. <Highlighter
  43. highlightClassName="highlight-search-match"
  44. searchWords={
  45. Array [
  46. "",
  47. ]
  48. }
  49. textToHighlight="state text"
  50. />
  51. </span>
  52. <span
  53. className="alert-rule-item__time"
  54. >
  55. for
  56. age
  57. </span>
  58. </div>
  59. </div>
  60. </div>
  61. <div
  62. className="alert-rule-item__actions"
  63. >
  64. <button
  65. className="btn btn-small btn-inverse alert-list__btn width-2"
  66. onClick={[MockFunction]}
  67. title="Pausing an alert rule prevents it from executing"
  68. >
  69. <i
  70. className="fa fa-pause"
  71. />
  72. </button>
  73. <a
  74. className="btn btn-small btn-inverse alert-list__btn width-2"
  75. href="https://something.something.darkside?panelId=1&fullscreen=true&edit=true&tab=alert"
  76. title="Edit alert rule"
  77. >
  78. <i
  79. className="icon-gf icon-gf-settings"
  80. />
  81. </a>
  82. </div>
  83. </li>
  84. `;