FolderSettingsPage.test.tsx.snap 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`Render should enable save button 1`] = `
  3. <Page
  4. navModel={Object {}}
  5. >
  6. <PageContents
  7. isLoading={false}
  8. >
  9. <h3
  10. className="page-sub-heading"
  11. >
  12. Folder settings
  13. </h3>
  14. <div
  15. className="section gf-form-group"
  16. >
  17. <form
  18. name="folderSettingsForm"
  19. onSubmit={[Function]}
  20. >
  21. <div
  22. className="gf-form"
  23. >
  24. <label
  25. className="gf-form-label width-7"
  26. >
  27. Name
  28. </label>
  29. <Input
  30. className="gf-form-input width-30"
  31. onChange={[Function]}
  32. type="text"
  33. value="loading"
  34. />
  35. </div>
  36. <div
  37. className="gf-form-button-row"
  38. >
  39. <Button
  40. disabled={false}
  41. type="submit"
  42. >
  43. Save
  44. </Button>
  45. <Button
  46. disabled={false}
  47. onClick={[Function]}
  48. variant="destructive"
  49. >
  50. Delete
  51. </Button>
  52. </div>
  53. </form>
  54. </div>
  55. </PageContents>
  56. </Page>
  57. `;
  58. exports[`Render should render component 1`] = `
  59. <Page
  60. navModel={Object {}}
  61. >
  62. <PageContents
  63. isLoading={false}
  64. >
  65. <h3
  66. className="page-sub-heading"
  67. >
  68. Folder settings
  69. </h3>
  70. <div
  71. className="section gf-form-group"
  72. >
  73. <form
  74. name="folderSettingsForm"
  75. onSubmit={[Function]}
  76. >
  77. <div
  78. className="gf-form"
  79. >
  80. <label
  81. className="gf-form-label width-7"
  82. >
  83. Name
  84. </label>
  85. <Input
  86. className="gf-form-input width-30"
  87. onChange={[Function]}
  88. type="text"
  89. value="loading"
  90. />
  91. </div>
  92. <div
  93. className="gf-form-button-row"
  94. >
  95. <Button
  96. disabled={true}
  97. type="submit"
  98. >
  99. Save
  100. </Button>
  101. <Button
  102. disabled={false}
  103. onClick={[Function]}
  104. variant="destructive"
  105. >
  106. Delete
  107. </Button>
  108. </div>
  109. </form>
  110. </div>
  111. </PageContents>
  112. </Page>
  113. `;