UsersActionBar.test.tsx.snap 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`Render should render component 1`] = `
  3. <div
  4. className="page-action-bar"
  5. >
  6. <div
  7. className="gf-form gf-form--grow"
  8. >
  9. <label
  10. className="gf-form--has-input-icon"
  11. >
  12. <input
  13. className="gf-form-input width-20"
  14. onChange={[Function]}
  15. placeholder="Filter by name or type"
  16. type="text"
  17. value=""
  18. />
  19. <i
  20. className="gf-form-input-icon fa fa-search"
  21. />
  22. </label>
  23. <div
  24. className="page-action-bar__spacer"
  25. />
  26. </div>
  27. </div>
  28. `;
  29. exports[`Render should render pending invites button 1`] = `
  30. <div
  31. className="page-action-bar"
  32. >
  33. <div
  34. className="gf-form gf-form--grow"
  35. >
  36. <label
  37. className="gf-form--has-input-icon"
  38. >
  39. <input
  40. className="gf-form-input width-20"
  41. onChange={[Function]}
  42. placeholder="Filter by name or type"
  43. type="text"
  44. value=""
  45. />
  46. <i
  47. className="gf-form-input-icon fa fa-search"
  48. />
  49. </label>
  50. <div
  51. style={
  52. Object {
  53. "marginLeft": "1rem",
  54. }
  55. }
  56. >
  57. <button
  58. className="btn toggle-btn active"
  59. key="users"
  60. onClick={[MockFunction]}
  61. >
  62. Users
  63. </button>
  64. <button
  65. className="btn toggle-btn"
  66. key="pending-invites"
  67. onClick={[MockFunction]}
  68. >
  69. Pending Invites (
  70. 5
  71. )
  72. </button>
  73. </div>
  74. <div
  75. className="page-action-bar__spacer"
  76. />
  77. </div>
  78. </div>
  79. `;
  80. exports[`Render should show external user management button 1`] = `
  81. <div
  82. className="page-action-bar"
  83. >
  84. <div
  85. className="gf-form gf-form--grow"
  86. >
  87. <label
  88. className="gf-form--has-input-icon"
  89. >
  90. <input
  91. className="gf-form-input width-20"
  92. onChange={[Function]}
  93. placeholder="Filter by name or type"
  94. type="text"
  95. value=""
  96. />
  97. <i
  98. className="gf-form-input-icon fa fa-search"
  99. />
  100. </label>
  101. <div
  102. className="page-action-bar__spacer"
  103. />
  104. <a
  105. className="btn btn-success"
  106. href="some/url"
  107. target="_blank"
  108. >
  109. <i
  110. className="fa fa-external-link-square"
  111. />
  112. </a>
  113. </div>
  114. </div>
  115. `;
  116. exports[`Render should show invite button 1`] = `
  117. <div
  118. className="page-action-bar"
  119. >
  120. <div
  121. className="gf-form gf-form--grow"
  122. >
  123. <label
  124. className="gf-form--has-input-icon"
  125. >
  126. <input
  127. className="gf-form-input width-20"
  128. onChange={[Function]}
  129. placeholder="Filter by name or type"
  130. type="text"
  131. value=""
  132. />
  133. <i
  134. className="gf-form-input-icon fa fa-search"
  135. />
  136. </label>
  137. <div
  138. className="page-action-bar__spacer"
  139. />
  140. <a
  141. className="btn btn-success"
  142. href="org/users/invite"
  143. >
  144. <span>
  145. Invite
  146. </span>
  147. </a>
  148. </div>
  149. </div>
  150. `;