OrgPreferences.test.tsx.snap 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`Render should render component 1`] = `
  3. <form
  4. className="section gf-form-group"
  5. onSubmit={[Function]}
  6. >
  7. <h3
  8. className="page-heading"
  9. >
  10. Preferences
  11. </h3>
  12. <div
  13. className="gf-form"
  14. >
  15. <span
  16. className="gf-form-label width-11"
  17. >
  18. UI Theme
  19. </span>
  20. <SimplePicker
  21. getOptionLabel={[Function]}
  22. getOptionValue={[Function]}
  23. onSelected={[Function]}
  24. options={
  25. Array [
  26. Object {
  27. "text": "Default",
  28. "value": "",
  29. },
  30. Object {
  31. "text": "Dark",
  32. "value": "dark",
  33. },
  34. Object {
  35. "text": "Light",
  36. "value": "light",
  37. },
  38. ]
  39. }
  40. width={20}
  41. />
  42. </div>
  43. <div
  44. className="gf-form"
  45. >
  46. <Component
  47. tooltip="Not finding dashboard you want? Star it first, then it should appear in this select box."
  48. width={11}
  49. >
  50. Home Dashboard
  51. </Component>
  52. <SimplePicker
  53. defaultValue={
  54. Object {
  55. "id": 1,
  56. "tags": Array [],
  57. "title": "Standard dashboard",
  58. "type": "",
  59. "uid": "",
  60. "uri": "",
  61. "url": "",
  62. }
  63. }
  64. getOptionLabel={[Function]}
  65. getOptionValue={[Function]}
  66. onSelected={[Function]}
  67. options={
  68. Array [
  69. Object {
  70. "id": 0,
  71. "tags": Array [],
  72. "title": "Default",
  73. "type": "",
  74. "uid": "",
  75. "uri": "",
  76. "url": "",
  77. },
  78. Object {
  79. "id": 1,
  80. "tags": Array [],
  81. "title": "Standard dashboard",
  82. "type": "",
  83. "uid": "",
  84. "uri": "",
  85. "url": "",
  86. },
  87. ]
  88. }
  89. placeholder="Chose default dashboard"
  90. width={20}
  91. />
  92. </div>
  93. <div
  94. className="gf-form"
  95. >
  96. <label
  97. className="gf-form-label width-11"
  98. >
  99. Timezone
  100. </label>
  101. <SimplePicker
  102. getOptionLabel={[Function]}
  103. getOptionValue={[Function]}
  104. onSelected={[Function]}
  105. options={
  106. Array [
  107. Object {
  108. "text": "Default",
  109. "value": "",
  110. },
  111. Object {
  112. "text": "Local browser time",
  113. "value": "browser",
  114. },
  115. Object {
  116. "text": "UTC",
  117. "value": "utc",
  118. },
  119. ]
  120. }
  121. width={20}
  122. />
  123. </div>
  124. <div
  125. className="gf-form-button-row"
  126. >
  127. <button
  128. className="btn btn-success"
  129. type="submit"
  130. >
  131. Save
  132. </button>
  133. </div>
  134. </form>
  135. `;