@digabi/exam-engine-core 22.0.3 → 22.0.4-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (240) hide show
  1. package/dist/__tests__/EditableGradingInstruction.test.d.ts +2 -0
  2. package/dist/__tests__/EditableGradingInstruction.test.d.ts.map +1 -0
  3. package/dist/__tests__/EditableGradingInstruction.test.js +174 -0
  4. package/dist/__tests__/EditableGradingInstruction.test.js.map +1 -0
  5. package/dist/__tests__/EditableGradingInstructionLocalization.test.d.ts +2 -0
  6. package/dist/__tests__/EditableGradingInstructionLocalization.test.d.ts.map +1 -0
  7. package/dist/__tests__/EditableGradingInstructionLocalization.test.js +112 -0
  8. package/dist/__tests__/EditableGradingInstructionLocalization.test.js.map +1 -0
  9. package/dist/__tests__/FormatButton.test.d.ts +2 -0
  10. package/dist/__tests__/FormatButton.test.d.ts.map +1 -0
  11. package/dist/__tests__/FormatButton.test.js +94 -0
  12. package/dist/__tests__/FormatButton.test.js.map +1 -0
  13. package/dist/__tests__/annotations.test.js +7 -7
  14. package/dist/__tests__/annotations.test.js.map +1 -1
  15. package/dist/__tests__/editor/FormatButton.test.d.ts +2 -0
  16. package/dist/__tests__/editor/FormatButton.test.d.ts.map +1 -0
  17. package/dist/__tests__/editor/FormatButton.test.js +98 -0
  18. package/dist/__tests__/editor/FormatButton.test.js.map +1 -0
  19. package/dist/__tests__/editor/Formula.test.d.ts +2 -0
  20. package/dist/__tests__/editor/Formula.test.d.ts.map +1 -0
  21. package/dist/__tests__/editor/Formula.test.js +61 -0
  22. package/dist/__tests__/editor/Formula.test.js.map +1 -0
  23. package/dist/__tests__/editor/ImageUploadButton.test.d.ts +2 -0
  24. package/dist/__tests__/editor/ImageUploadButton.test.d.ts.map +1 -0
  25. package/dist/__tests__/editor/ImageUploadButton.test.js +94 -0
  26. package/dist/__tests__/editor/ImageUploadButton.test.js.map +1 -0
  27. package/dist/__tests__/editor/List.test.d.ts +2 -0
  28. package/dist/__tests__/editor/List.test.d.ts.map +1 -0
  29. package/dist/__tests__/editor/List.test.js +72 -0
  30. package/dist/__tests__/editor/List.test.js.map +1 -0
  31. package/dist/__tests__/editor/Table.test.d.ts +2 -0
  32. package/dist/__tests__/editor/Table.test.d.ts.map +1 -0
  33. package/dist/__tests__/editor/Table.test.js +172 -0
  34. package/dist/__tests__/editor/Table.test.js.map +1 -0
  35. package/dist/__tests__/editor/br.test.d.ts +2 -0
  36. package/dist/__tests__/editor/br.test.d.ts.map +1 -0
  37. package/dist/__tests__/editor/br.test.js +39 -0
  38. package/dist/__tests__/editor/br.test.js.map +1 -0
  39. package/dist/__tests__/editor/hr.test.d.ts +2 -0
  40. package/dist/__tests__/editor/hr.test.d.ts.map +1 -0
  41. package/dist/__tests__/editor/hr.test.js +39 -0
  42. package/dist/__tests__/editor/hr.test.js.map +1 -0
  43. package/dist/__tests__/editor/nbsp.test.d.ts +2 -0
  44. package/dist/__tests__/editor/nbsp.test.d.ts.map +1 -0
  45. package/dist/__tests__/editor/nbsp.test.js +55 -0
  46. package/dist/__tests__/editor/nbsp.test.js.map +1 -0
  47. package/dist/__tests__/editor/noWrap.test.d.ts +2 -0
  48. package/dist/__tests__/editor/noWrap.test.d.ts.map +1 -0
  49. package/dist/__tests__/editor/noWrap.test.js +62 -0
  50. package/dist/__tests__/editor/noWrap.test.js.map +1 -0
  51. package/dist/__tests__/editor/spanWithLang.test.d.ts +2 -0
  52. package/dist/__tests__/editor/spanWithLang.test.d.ts.map +1 -0
  53. package/dist/__tests__/editor/spanWithLang.test.js +38 -0
  54. package/dist/__tests__/editor/spanWithLang.test.js.map +1 -0
  55. package/dist/__tests__/editor/subSup.test.d.ts +2 -0
  56. package/dist/__tests__/editor/subSup.test.d.ts.map +1 -0
  57. package/dist/__tests__/editor/subSup.test.js +50 -0
  58. package/dist/__tests__/editor/subSup.test.js.map +1 -0
  59. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  60. package/dist/__tests__/utils/ProseMirrorWrapper.d.ts +8 -0
  61. package/dist/__tests__/utils/ProseMirrorWrapper.d.ts.map +1 -0
  62. package/dist/__tests__/utils/ProseMirrorWrapper.js +44 -0
  63. package/dist/__tests__/utils/ProseMirrorWrapper.js.map +1 -0
  64. package/dist/__tests__/utils/prosemirror.d.ts +2 -0
  65. package/dist/__tests__/utils/prosemirror.d.ts.map +1 -0
  66. package/dist/__tests__/utils/prosemirror.js +30 -0
  67. package/dist/__tests__/utils/prosemirror.js.map +1 -0
  68. package/dist/__tests__/utils/renderEditableGradingInstruction.d.ts +4 -0
  69. package/dist/__tests__/utils/renderEditableGradingInstruction.d.ts.map +1 -0
  70. package/dist/__tests__/utils/renderEditableGradingInstruction.js +22 -0
  71. package/dist/__tests__/utils/renderEditableGradingInstruction.js.map +1 -0
  72. package/dist/__tests__/utils/util.d.ts +2 -0
  73. package/dist/__tests__/utils/util.d.ts.map +1 -0
  74. package/dist/__tests__/utils/util.js +10 -0
  75. package/dist/__tests__/utils/util.js.map +1 -0
  76. package/dist/components/Localization.d.ts +5 -0
  77. package/dist/components/Localization.d.ts.map +1 -0
  78. package/dist/components/Localization.js +9 -0
  79. package/dist/components/Localization.js.map +1 -0
  80. package/dist/components/context/AnnotationProvider.d.ts +2 -2
  81. package/dist/components/context/AnnotationProvider.d.ts.map +1 -1
  82. package/dist/components/context/AnnotationProvider.js +3 -2
  83. package/dist/components/context/AnnotationProvider.js.map +1 -1
  84. package/dist/components/context/AttachmentContext.d.ts.map +1 -1
  85. package/dist/components/context/CommonExamContext.d.ts +1 -0
  86. package/dist/components/context/CommonExamContext.d.ts.map +1 -1
  87. package/dist/components/context/CommonExamContext.js +3 -0
  88. package/dist/components/context/CommonExamContext.js.map +1 -1
  89. package/dist/components/context/ExamContext.d.ts.map +1 -1
  90. package/dist/components/context/GradingInstructionContext.d.ts +17 -0
  91. package/dist/components/context/GradingInstructionContext.d.ts.map +1 -0
  92. package/dist/components/context/GradingInstructionContext.js +3 -0
  93. package/dist/components/context/GradingInstructionContext.js.map +1 -0
  94. package/dist/components/context/QuestionContext.d.ts.map +1 -1
  95. package/dist/components/context/ResultsContext.d.ts.map +1 -1
  96. package/dist/components/context/SectionContext.d.ts.map +1 -1
  97. package/dist/components/grading-instructions/AnswerGradingInstruction.d.ts.map +1 -1
  98. package/dist/components/grading-instructions/AnswerGradingInstruction.js +7 -2
  99. package/dist/components/grading-instructions/AnswerGradingInstruction.js.map +1 -1
  100. package/dist/components/grading-instructions/EditableGradingInstruction.d.ts +6 -0
  101. package/dist/components/grading-instructions/EditableGradingInstruction.d.ts.map +1 -0
  102. package/dist/components/grading-instructions/EditableGradingInstruction.js +121 -0
  103. package/dist/components/grading-instructions/EditableGradingInstruction.js.map +1 -0
  104. package/dist/components/grading-instructions/GradingInstruction.d.ts +7 -0
  105. package/dist/components/grading-instructions/GradingInstruction.d.ts.map +1 -0
  106. package/dist/components/grading-instructions/GradingInstruction.js +9 -0
  107. package/dist/components/grading-instructions/GradingInstruction.js.map +1 -0
  108. package/dist/components/grading-instructions/GradingInstructionProvider.d.ts +4 -0
  109. package/dist/components/grading-instructions/GradingInstructionProvider.d.ts.map +1 -0
  110. package/dist/components/grading-instructions/GradingInstructionProvider.js +7 -0
  111. package/dist/components/grading-instructions/GradingInstructionProvider.js.map +1 -0
  112. package/dist/components/grading-instructions/GradingInstructions.d.ts +2 -1
  113. package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
  114. package/dist/components/grading-instructions/GradingInstructions.js +18 -15
  115. package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
  116. package/dist/components/grading-instructions/editor/AttributeToggleButton.d.ts +9 -0
  117. package/dist/components/grading-instructions/editor/AttributeToggleButton.d.ts.map +1 -0
  118. package/dist/components/grading-instructions/editor/AttributeToggleButton.js +53 -0
  119. package/dist/components/grading-instructions/editor/AttributeToggleButton.js.map +1 -0
  120. package/dist/components/grading-instructions/editor/CurrentElement.d.ts +2 -0
  121. package/dist/components/grading-instructions/editor/CurrentElement.d.ts.map +1 -0
  122. package/dist/components/grading-instructions/editor/CurrentElement.js +8 -0
  123. package/dist/components/grading-instructions/editor/CurrentElement.js.map +1 -0
  124. package/dist/components/grading-instructions/editor/CurrentLocalization.d.ts +7 -0
  125. package/dist/components/grading-instructions/editor/CurrentLocalization.d.ts.map +1 -0
  126. package/dist/components/grading-instructions/editor/CurrentLocalization.js +13 -0
  127. package/dist/components/grading-instructions/editor/CurrentLocalization.js.map +1 -0
  128. package/dist/components/grading-instructions/editor/FormatButton.d.ts +9 -0
  129. package/dist/components/grading-instructions/editor/FormatButton.d.ts.map +1 -0
  130. package/dist/components/grading-instructions/editor/FormatButton.js +26 -0
  131. package/dist/components/grading-instructions/editor/FormatButton.js.map +1 -0
  132. package/dist/components/grading-instructions/editor/Formula.d.ts +15 -0
  133. package/dist/components/grading-instructions/editor/Formula.d.ts.map +1 -0
  134. package/dist/components/grading-instructions/editor/Formula.js +41 -0
  135. package/dist/components/grading-instructions/editor/Formula.js.map +1 -0
  136. package/dist/components/grading-instructions/editor/FormulaPopup.d.ts +7 -0
  137. package/dist/components/grading-instructions/editor/FormulaPopup.d.ts.map +1 -0
  138. package/dist/components/grading-instructions/editor/FormulaPopup.js +49 -0
  139. package/dist/components/grading-instructions/editor/FormulaPopup.js.map +1 -0
  140. package/dist/components/grading-instructions/editor/ImageUploadButton.d.ts +6 -0
  141. package/dist/components/grading-instructions/editor/ImageUploadButton.d.ts.map +1 -0
  142. package/dist/components/grading-instructions/editor/ImageUploadButton.js +77 -0
  143. package/dist/components/grading-instructions/editor/ImageUploadButton.js.map +1 -0
  144. package/dist/components/grading-instructions/editor/List.d.ts +9 -0
  145. package/dist/components/grading-instructions/editor/List.d.ts.map +1 -0
  146. package/dist/components/grading-instructions/editor/List.js +41 -0
  147. package/dist/components/grading-instructions/editor/List.js.map +1 -0
  148. package/dist/components/grading-instructions/editor/Localization.d.ts +3 -0
  149. package/dist/components/grading-instructions/editor/Localization.d.ts.map +1 -0
  150. package/dist/components/grading-instructions/editor/Localization.js +36 -0
  151. package/dist/components/grading-instructions/editor/Localization.js.map +1 -0
  152. package/dist/components/grading-instructions/editor/LocalizationButtons.d.ts +6 -0
  153. package/dist/components/grading-instructions/editor/LocalizationButtons.d.ts.map +1 -0
  154. package/dist/components/grading-instructions/editor/LocalizationButtons.js +14 -0
  155. package/dist/components/grading-instructions/editor/LocalizationButtons.js.map +1 -0
  156. package/dist/components/grading-instructions/editor/NBSP.d.ts +4 -0
  157. package/dist/components/grading-instructions/editor/NBSP.d.ts.map +1 -0
  158. package/dist/components/grading-instructions/editor/NBSP.js +17 -0
  159. package/dist/components/grading-instructions/editor/NBSP.js.map +1 -0
  160. package/dist/components/grading-instructions/editor/Table.d.ts +6 -0
  161. package/dist/components/grading-instructions/editor/Table.d.ts.map +1 -0
  162. package/dist/components/grading-instructions/editor/Table.js +186 -0
  163. package/dist/components/grading-instructions/editor/Table.js.map +1 -0
  164. package/dist/components/grading-instructions/editor/findNode.d.ts +3 -0
  165. package/dist/components/grading-instructions/editor/findNode.d.ts.map +1 -0
  166. package/dist/components/grading-instructions/editor/findNode.js +10 -0
  167. package/dist/components/grading-instructions/editor/findNode.js.map +1 -0
  168. package/dist/components/grading-instructions/editor/localizatio.d.ts +3 -0
  169. package/dist/components/grading-instructions/editor/localizatio.d.ts.map +1 -0
  170. package/dist/components/grading-instructions/editor/localizatio.js +36 -0
  171. package/dist/components/grading-instructions/editor/localizatio.js.map +1 -0
  172. package/dist/components/grading-instructions/editor/localizationSpan.d.ts +3 -0
  173. package/dist/components/grading-instructions/editor/localizationSpan.d.ts.map +1 -0
  174. package/dist/components/grading-instructions/editor/localizationSpan.js +36 -0
  175. package/dist/components/grading-instructions/editor/localizationSpan.js.map +1 -0
  176. package/dist/components/grading-instructions/editor/schemas/formulaSchema.d.ts +4 -0
  177. package/dist/components/grading-instructions/editor/schemas/formulaSchema.d.ts.map +1 -0
  178. package/dist/components/grading-instructions/editor/schemas/formulaSchema.js +62 -0
  179. package/dist/components/grading-instructions/editor/schemas/formulaSchema.js.map +1 -0
  180. package/dist/components/grading-instructions/editor/schemas/image-schema.d.ts +4 -0
  181. package/dist/components/grading-instructions/editor/schemas/image-schema.d.ts.map +1 -0
  182. package/dist/components/grading-instructions/editor/schemas/image-schema.js +47 -0
  183. package/dist/components/grading-instructions/editor/schemas/image-schema.js.map +1 -0
  184. package/dist/components/grading-instructions/editor/schemas/imageSchema.d.ts +4 -0
  185. package/dist/components/grading-instructions/editor/schemas/imageSchema.d.ts.map +1 -0
  186. package/dist/components/grading-instructions/editor/schemas/imageSchema.js +61 -0
  187. package/dist/components/grading-instructions/editor/schemas/imageSchema.js.map +1 -0
  188. package/dist/components/grading-instructions/editor/schemas/listSchema.d.ts +72 -0
  189. package/dist/components/grading-instructions/editor/schemas/listSchema.d.ts.map +1 -0
  190. package/dist/components/grading-instructions/editor/schemas/listSchema.js +7 -0
  191. package/dist/components/grading-instructions/editor/schemas/listSchema.js.map +1 -0
  192. package/dist/components/grading-instructions/editor/schemas/localizationSchema.d.ts +3 -0
  193. package/dist/components/grading-instructions/editor/schemas/localizationSchema.d.ts.map +1 -0
  194. package/dist/components/grading-instructions/editor/schemas/localizationSchema.js +39 -0
  195. package/dist/components/grading-instructions/editor/schemas/localizationSchema.js.map +1 -0
  196. package/dist/components/grading-instructions/editor/schemas/spanWithLangSchema.d.ts +3 -0
  197. package/dist/components/grading-instructions/editor/schemas/spanWithLangSchema.d.ts.map +1 -0
  198. package/dist/components/grading-instructions/editor/schemas/spanWithLangSchema.js +19 -0
  199. package/dist/components/grading-instructions/editor/schemas/spanWithLangSchema.js.map +1 -0
  200. package/dist/components/grading-instructions/editor/schemas/spanWithNowrapSchema.d.ts +3 -0
  201. package/dist/components/grading-instructions/editor/schemas/spanWithNowrapSchema.d.ts.map +1 -0
  202. package/dist/components/grading-instructions/editor/schemas/spanWithNowrapSchema.js +19 -0
  203. package/dist/components/grading-instructions/editor/schemas/spanWithNowrapSchema.js.map +1 -0
  204. package/dist/components/grading-instructions/editor/schemas/subSupSchema.d.ts +3 -0
  205. package/dist/components/grading-instructions/editor/schemas/subSupSchema.d.ts.map +1 -0
  206. package/dist/components/grading-instructions/editor/schemas/subSupSchema.js +23 -0
  207. package/dist/components/grading-instructions/editor/schemas/subSupSchema.js.map +1 -0
  208. package/dist/components/grading-instructions/editor/schemas/tableSchema.d.ts +3 -0
  209. package/dist/components/grading-instructions/editor/schemas/tableSchema.d.ts.map +1 -0
  210. package/dist/components/grading-instructions/editor/schemas/tableSchema.js +43 -0
  211. package/dist/components/grading-instructions/editor/schemas/tableSchema.js.map +1 -0
  212. package/dist/components/grading-instructions/editor/spanWithNowrap.d.ts +3 -0
  213. package/dist/components/grading-instructions/editor/spanWithNowrap.d.ts.map +1 -0
  214. package/dist/components/grading-instructions/editor/spanWithNowrap.js +19 -0
  215. package/dist/components/grading-instructions/editor/spanWithNowrap.js.map +1 -0
  216. package/dist/components/grading-instructions/editor/spanWithPath.d.ts +3 -0
  217. package/dist/components/grading-instructions/editor/spanWithPath.d.ts.map +1 -0
  218. package/dist/components/grading-instructions/editor/spanWithPath.js +24 -0
  219. package/dist/components/grading-instructions/editor/spanWithPath.js.map +1 -0
  220. package/dist/components/grading-instructions/editor/util.d.ts +6 -0
  221. package/dist/components/grading-instructions/editor/util.d.ts.map +1 -0
  222. package/dist/components/grading-instructions/editor/util.js +10 -0
  223. package/dist/components/grading-instructions/editor/util.js.map +1 -0
  224. package/dist/components/shared/AnnotationMark.d.ts +1 -1
  225. package/dist/components/shared/AnnotationMark.d.ts.map +1 -1
  226. package/dist/components/shared/AnnotationPopup.d.ts +1 -1
  227. package/dist/components/shared/AnnotationPopup.d.ts.map +1 -1
  228. package/dist/components/shared/AnnotationPopup.js +11 -70
  229. package/dist/components/shared/AnnotationPopup.js.map +1 -1
  230. package/dist/components/shared/Popup.d.ts +15 -0
  231. package/dist/components/shared/Popup.d.ts.map +1 -0
  232. package/dist/components/shared/Popup.js +90 -0
  233. package/dist/components/shared/Popup.js.map +1 -0
  234. package/dist/components/shared/markText.d.ts +1 -1
  235. package/dist/components/shared/markText.d.ts.map +1 -1
  236. package/dist/components/shared/markText.js.map +1 -1
  237. package/dist/main-bundle.js +1 -1
  238. package/dist/main-bundle.js.LICENSE.txt +1 -1
  239. package/dist/main.css +1 -1
  240. package/package.json +11 -2
@@ -0,0 +1,2 @@
1
+ import '@testing-library/jest-dom';
2
+ //# sourceMappingURL=EditableGradingInstruction.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditableGradingInstruction.test.d.ts","sourceRoot":"","sources":["../../__tests__/EditableGradingInstruction.test.tsx"],"names":[],"mappings":"AAIA,OAAO,2BAA2B,CAAA"}
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const react_1 = require("@testing-library/react");
7
+ const user_event_1 = __importDefault(require("@testing-library/user-event"));
8
+ const renderEditableGradingInstruction_1 = require("./utils/renderEditableGradingInstruction");
9
+ const util_1 = require("./utils/util");
10
+ require("@testing-library/jest-dom");
11
+ const act = react_1.act;
12
+ describe('EditableGradingInstruction', () => {
13
+ let cleanup;
14
+ let onContentChangeMock;
15
+ beforeEach(() => {
16
+ onContentChangeMock = jest.fn();
17
+ });
18
+ afterEach(() => {
19
+ if (cleanup) {
20
+ cleanup();
21
+ }
22
+ cleanup = null;
23
+ });
24
+ describe('table', () => {
25
+ it('Table is rendered as expected', () => {
26
+ const inputData = '<table class="e-table"><tbody><tr><td>foo</td></tr></tbody></table>';
27
+ const expectedOutput = '<table class="e-table"><tbody><tr><td>foo</td></tr></tbody></table>';
28
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData);
29
+ const table = result.container.querySelector('.ProseMirror');
30
+ expect(table.innerHTML).toBe(expectedOutput);
31
+ });
32
+ it('Change in table is returned as expected', async () => {
33
+ cleanup = mockCreateRange();
34
+ const inputData = '<table class="e-table"><tbody><tr><td>foo</td></tr></tbody></table>';
35
+ const expectedOutput = '<table class="e-table"><tbody><tr><td>bar</td></tr></tbody></table>';
36
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
37
+ await act(async () => {
38
+ (0, util_1.insertText)(await result.findByText('foo'), 'bar');
39
+ });
40
+ expect(onContentChangeMock).toHaveBeenCalledTimes(1);
41
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
42
+ });
43
+ it('Insert table adds expected table', async () => {
44
+ const inputData = '';
45
+ const expectedOutput = '<table class="e-table e-width-half"><tbody><tr><td></td><td></td></tr><tr><td></td><td></td></tr></tbody></table>';
46
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
47
+ await act(async () => {
48
+ await user_event_1.default.click(await result.findByTestId('editor-menu-add-table'));
49
+ });
50
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
51
+ });
52
+ it('Remove table removes table', async () => {
53
+ const inputData = '<table><tbody><tr><td>foo</td></tr></tbody></table>';
54
+ const expectedOutput = '<p></p>';
55
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
56
+ await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Poista taulukko');
57
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
58
+ });
59
+ it('Insert column adds column', async () => {
60
+ const inputData = '<table><tbody><tr><td>foo</td></tr></tbody></table>';
61
+ const expectedOutput = '<table><tbody><tr><td>foo</td><td></td></tr></tbody></table>';
62
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
63
+ await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Lisää sarake');
64
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
65
+ });
66
+ it('Remove column removes column', async () => {
67
+ const inputData = '<table><tbody><tr><td>foo</td><td>bar</td></tr></tbody></table>';
68
+ const expectedOutput = '<table><tbody><tr><td>bar</td></tr></tbody></table>';
69
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
70
+ await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Poista sarake');
71
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
72
+ });
73
+ it('Insert row adds row', async () => {
74
+ const inputData = '<table><tbody><tr><td>foo</td></tr></tbody></table>';
75
+ const expectedOutput = '<table><tbody><tr><td>foo</td></tr><tr><td></td></tr></tbody></table>';
76
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
77
+ await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Lisää rivi');
78
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
79
+ });
80
+ it('Remove row removes row', async () => {
81
+ const inputData = '<table><tbody><tr><td>foo</td></tr><tr><td>bar</td></tr></tbody></table>';
82
+ const expectedOutput = '<table><tbody><tr><td>bar</td></tr></tbody></table>';
83
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
84
+ await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Poista rivi');
85
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
86
+ });
87
+ it('Full width changes full width class to table', async () => {
88
+ const inputData = '<table class="e-width-half"><tbody><tr><td>foo</td></tr></tbody></table>';
89
+ const expectedOutput = '<table class="e-width-full"><tbody><tr><td>foo</td></tr></tbody></table>';
90
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
91
+ expect(result.queryByText('Puolikas leveys')).not.toBeInTheDocument();
92
+ await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Täysi leveys');
93
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
94
+ });
95
+ it('Half width changes half width class to table', async () => {
96
+ const inputData = '<table class="e-width-full"><tbody><tr><td>foo</td></tr></tbody></table>';
97
+ const expectedOutput = '<table class="e-width-half"><tbody><tr><td>foo</td></tr></tbody></table>';
98
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
99
+ expect(result.queryByText('Täysi leveys')).not.toBeInTheDocument();
100
+ await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Puolikas leveys');
101
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
102
+ });
103
+ it('Remove borders adds e-table--borderless class to table', async () => {
104
+ const inputData = '<table><tbody><tr><td>foo</td></tr></tbody></table>';
105
+ const expectedOutput = '<table class="e-table--borderless"><tbody><tr><td>foo</td></tr></tbody></table>';
106
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
107
+ expect(result.queryByText('Lisää reunat')).not.toBeInTheDocument();
108
+ await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Poista reunat');
109
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
110
+ });
111
+ it('Add borders removes e-table--borderless class from table', async () => {
112
+ const inputData = '<table class="e-table--borderless"><tbody><tr><td>foo</td></tr></tbody></table>';
113
+ const expectedOutput = '<table><tbody><tr><td>foo</td></tr></tbody></table>';
114
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
115
+ expect(result.queryByText('Poista reunat')).not.toBeInTheDocument();
116
+ await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Lisää reunat');
117
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
118
+ });
119
+ it('Remove zebra removes class from table', async () => {
120
+ const inputData = '<table class="e-table--zebra"><tbody><tr><td>foo</td></tr></tbody></table>';
121
+ const expectedOutput = '<table><tbody><tr><td>foo</td></tr></tbody></table>';
122
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
123
+ expect(result.queryByText('Lisää raidat')).not.toBeInTheDocument();
124
+ await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Poista raidat');
125
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
126
+ });
127
+ it('Add zebra adds e-table--zebra class to table', async () => {
128
+ const inputData = '<table><tbody><tr><td>foo</td></tr></tbody></table>';
129
+ const expectedOutput = '<table class="e-table--zebra"><tbody><tr><td>foo</td></tr></tbody></table>';
130
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
131
+ expect(result.queryByText('Poista raidat')).not.toBeInTheDocument();
132
+ await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Lisää raidat');
133
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
134
+ });
135
+ });
136
+ });
137
+ async function clickTableMenuButtonWithFocusOnCell(result, cellText, buttonText) {
138
+ await act(async () => {
139
+ await focusOnTablesCell(result, cellText);
140
+ await user_event_1.default.click(await result.findByText(buttonText));
141
+ });
142
+ }
143
+ async function focusOnTablesCell(result, text) {
144
+ // Replace cell's text with same text
145
+ // Hack to get focus on cell without need to mock createRange
146
+ (0, util_1.insertText)(await result.findByText(text), text);
147
+ }
148
+ function mockCreateRange() {
149
+ const originalCreateRange = global.window.document.createRange;
150
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
151
+ // @ts-expect-error
152
+ global.Range = function Range() { };
153
+ const createContextualFragment = (html) => {
154
+ const div = document.createElement('div');
155
+ div.innerHTML = html;
156
+ return div.children[0];
157
+ };
158
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
159
+ // @ts-expect-error
160
+ Range.prototype.createContextualFragment = (html) => createContextualFragment(html);
161
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
162
+ // @ts-expect-error
163
+ global.window.document.createRange = function createRange() {
164
+ return {
165
+ setEnd: () => { },
166
+ setStart: () => { },
167
+ getBoundingClientRect: () => ({ right: 0 }),
168
+ getClientRects: () => [],
169
+ createContextualFragment
170
+ };
171
+ };
172
+ return () => (global.window.document.createRange = originalCreateRange);
173
+ }
174
+ //# sourceMappingURL=EditableGradingInstruction.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditableGradingInstruction.test.js","sourceRoot":"","sources":["../../__tests__/EditableGradingInstruction.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAqE;AACrE,6EAAmD;AACnD,+FAAmF;AACnF,uCAAyC;AACzC,qCAAkC;AAElC,MAAM,GAAG,GAAG,WAAuD,CAAA;AAEnE,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IAC1C,IAAI,OAA4B,CAAA;IAChC,IAAI,mBAA8B,CAAA;IAElC,UAAU,CAAC,GAAG,EAAE;QACd,mBAAmB,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IACjC,CAAC,CAAC,CAAA;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,EAAE,CAAA;QACX,CAAC;QACD,OAAO,GAAG,IAAI,CAAA;IAChB,CAAC,CAAC,CAAA;IAEF,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;QACrB,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;YACvC,MAAM,SAAS,GAAG,qEAAqE,CAAA;YACvF,MAAM,cAAc,GAAG,qEAAqE,CAAA;YAC5F,MAAM,MAAM,GAAG,IAAA,2DAAwB,EAAC,SAAS,CAAC,CAAA;YAClD,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,cAAc,CAAC,CAAA;YAC5D,MAAM,CAAC,KAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;QAC/C,CAAC,CAAC,CAAA;QAEF,EAAE,CAAC,yCAAyC,EAAE,KAAK,IAAI,EAAE;YACvD,OAAO,GAAG,eAAe,EAAE,CAAA;YAC3B,MAAM,SAAS,GAAG,qEAAqE,CAAA;YACvF,MAAM,cAAc,GAAG,qEAAqE,CAAA;YAC5F,MAAM,MAAM,GAAG,IAAA,2DAAwB,EAAC,S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AC;AAED,SAAS,eAAe;IACtB,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAA;IAC9D,6DAA6D;IAC7D,mBAAmB;IACnB,MAAM,CAAC,KAAK,GAAG,SAAS,KAAK,KAAI,CAAC,CAAA;IAElC,MAAM,wBAAwB,GAAG,CAAC,IAAY,EAAE,EAAE;QAChD,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;QACzC,GAAG,CAAC,SAAS,GAAG,IAAI,CAAA;QACpB,OAAO,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;IACxB,CAAC,CAAA;IACD,6DAA6D;IAC7D,mBAAmB;IACnB,KAAK,CAAC,SAAS,CAAC,wBAAwB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAA;IAE3F,6DAA6D;IAC7D,mBAAmB;IACnB,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,GAAG,SAAS,WAAW;QACvD,OAAO;YACL,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;YAChB,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;YAClB,qBAAqB,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;YAC3C,cAAc,EAAE,GAAG,EAAE,CAAC,EAAE;YACxB,wBAAwB;SACzB,CAAA;IACH,CAAC,CAAA;IACD,OAAO,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,GAAG,mBAAmB,CAAC,CAAA;AACzE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=EditableGradingInstructionLocalization.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditableGradingInstructionLocalization.test.d.ts","sourceRoot":"","sources":["../../__tests__/EditableGradingInstructionLocalization.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("@testing-library/react");
4
+ const renderEditableGradingInstruction_1 = require("./utils/renderEditableGradingInstruction");
5
+ const util_1 = require("./utils/util");
6
+ const prosemirror_1 = require("./utils/prosemirror");
7
+ const act = react_1.act;
8
+ describe('EditableGradingInstructionLocalization', () => {
9
+ let cleanup;
10
+ let onContentChangeMock;
11
+ beforeEach(() => {
12
+ onContentChangeMock = jest.fn();
13
+ cleanup = (0, prosemirror_1.mockCreateRange)();
14
+ });
15
+ afterEach(() => {
16
+ if (cleanup) {
17
+ cleanup();
18
+ }
19
+ cleanup = null;
20
+ });
21
+ it('preserves localization tags with data-editor-id attribute on save', async () => {
22
+ // data-editor-id attribute is added on mastering exam
23
+ const inputData = '<p><span lang="sv-FI" exam-type="hearing-impaired" data-editor-id="e-localization-inline">placeholder</span></p>';
24
+ const expectedOutput = '<p><e:localization lang="sv-FI" exam-type="hearing-impaired">lokalisaatio</e:localization></p>';
25
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
26
+ await act(async () => {
27
+ (0, util_1.insertText)(await result.findByText('placeholder'), 'lokalisaatio');
28
+ });
29
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
30
+ });
31
+ it('preserves nesting localization tags with data-editor-id attribute on save', async () => {
32
+ const inputData = '<p><div lang="sv-FI" data-editor-id="e-localization-block"><p><span exam-type="hearing-impaired" data-editor-id="e-localization-inline">placeholder</span></p></div></p>';
33
+ const expectedOutput = '<p></p><e:localization lang="sv-FI"><p><e:localization exam-type="hearing-impaired">lokalisaatio</e:localization></p></e:localization><p></p>';
34
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
35
+ await act(async () => {
36
+ (0, util_1.insertText)(await result.findByText('placeholder'), 'lokalisaatio');
37
+ });
38
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
39
+ });
40
+ it('block localization preserves block elements (like <p>) on save', async () => {
41
+ // data-editor-id attribute is added on mastering exam
42
+ const inputData = '<div lang="sv-FI" exam-type="hearing-impaired" data-editor-id="e-localization-block"><p>placeholder</p></div>';
43
+ const expectedOutput = '<e:localization lang="sv-FI" exam-type="hearing-impaired"><p>lokalisaatio</p></e:localization>';
44
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
45
+ await act(async () => {
46
+ (0, util_1.insertText)(await result.findByText('placeholder'), 'lokalisaatio');
47
+ });
48
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
49
+ });
50
+ it('localization tags with wrong block type are ignored', async () => {
51
+ const inputData = '<p><span lang="sv-FI" exam-type="hearing-impaired" data-editor-id="e-localization-block">placeholder</span></p>';
52
+ const expectedOutput = '<p>lokalisaatio</p>';
53
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
54
+ await act(async () => {
55
+ (0, util_1.insertText)(await result.findByText('placeholder'), 'lokalisaatio');
56
+ });
57
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
58
+ });
59
+ it('localization tags without data-editor attribute are ignored', async () => {
60
+ const inputData = '<div lang="sv-FI" exam-type="hearing-impaired"><p>placeholder</p></div>';
61
+ const expectedOutput = '<p>lokalisaatio</p>';
62
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
63
+ await act(async () => {
64
+ (0, util_1.insertText)(await result.findByText('placeholder'), 'lokalisaatio');
65
+ });
66
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
67
+ });
68
+ it('localization tags without unknown data-editor attribute are ignored', async () => {
69
+ const inputData = '<p><span lang="sv-FI" exam-type="hearing-impaired" data-editor-id="foo">placeholder</span></p>';
70
+ const expectedOutput = '<p>lokalisaatio</p>';
71
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
72
+ await act(async () => {
73
+ (0, util_1.insertText)(await result.findByText('placeholder'), 'lokalisaatio');
74
+ });
75
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
76
+ });
77
+ it("removes localization's data-editor-id and hidden attributes on save", async () => {
78
+ const inputData = '<p>Tämä <span exam-type="visually-impaired" data-editor-id="e-localization-inline" hidden="hidden">on</span> piilossa</p>';
79
+ const expectedOutput = '<p>Tämä <e:localization exam-type="visually-impaired">ei ole</e:localization> piilossa</p>';
80
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
81
+ await act(async () => {
82
+ (0, util_1.insertText)(await result.findByText('on'), 'ei ole');
83
+ });
84
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
85
+ });
86
+ it('saves all grading instructions as a whole regardless which localization is edited', async () => {
87
+ const inputData = `
88
+ <p>Not localized</p>
89
+ <p>
90
+ <span data-editor-id="e-localization-inline">Localized without attributes</span>
91
+ <span data-editor-id="e-localization-inline" lang="fi-FI">Localized with language</span>
92
+ <span data-editor-id="e-localization-inline" exam-type="visually-impaired">Localized with exam-type</span>
93
+ <span data-editor-id="e-localization-inline" lang="sv-FI" exam-type="visually-impaired">Localized with language and exam-type</span>
94
+ </p>
95
+ `.replace(/\n/g, '');
96
+ const expectedOutput = `
97
+ <p>Not localized</p>
98
+ <p>
99
+ <e:localization>Localized without attributes</e:localization>
100
+ <e:localization lang="fi-FI">Localized with language</e:localization>
101
+ <e:localization exam-type="visually-impaired">Localized with examType</e:localization>
102
+ <e:localization lang="sv-FI" exam-type="visually-impaired">Localized with language and exam-type</e:localization>
103
+ </p>
104
+ `.replace(/\n/g, '');
105
+ const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
106
+ await act(async () => {
107
+ (0, util_1.insertText)(await result.findByText('Localized with exam-type'), 'Localized with examType');
108
+ });
109
+ expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
110
+ });
111
+ });
112
+ //# sourceMappingURL=EditableGradingInstructionLocalization.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditableGradingInstructionLocalization.test.js","sourceRoot":"","sources":["../../__tests__/EditableGradingInstructionLocalization.test.tsx"],"names":[],"mappings":";;AAAA,kDAAuD;AACvD,+FAAmF;AACnF,uCAAyC;AACzC,qDAAqD;AAErD,MAAM,GAAG,GAAG,WAAuD,CAAA;AAEnE,QAAQ,CAAC,wCAAwC,EAAE,GAAG,EAAE;IACtD,IAAI,OAA4B,CAAA;IAChC,IAAI,mBAA8B,CAAA;IAElC,UAAU,CAAC,GAAG,EAAE;QACd,mBAAmB,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;QAC/B,OAAO,GAAG,IAAA,6BAAe,GAAE,CAAA;IAC7B,CAAC,CAAC,CAAA;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,EAAE,CAAA;QACX,CAAC;QACD,OAAO,GAAG,IAAI,CAAA;IAChB,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,mEAAmE,EAAE,KAAK,IAAI,EAAE;QACjF,sDAAsD;QACtD,MAAM,SAAS,GACb,kHAAkH,CAAA;QACpH,MAAM,cAAc,GAClB,gGAAgG,CAAA;QAClG,MAAM,MAAM,GAAG,IAAA,2DAAwB,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAA;QACvE,MAAM,GAAG,CAAC,KAAK,IAAI,EAAE;YACnB,IAAA,iBAAU,EAAC,MAAM,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,cAAc,CAAC,CAAA;QACpE,CAAC,CAAC,CAAA;QACF,MAAM,CAAC,mBAAmB,CAAC,CAAC,oBAAoB,CAAC,cAAc,EAAE,EAAE,CAAC,CAAA;IACtE,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,2EAA2E,EAAE,KAAK,IAAI,EAAE;QACzF,MAAM,SAAS,GACb,0K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AAE,mBAAmB,CAAC,CAAA;QACvE,MAAM,GAAG,CAAC,KAAK,IAAI,EAAE;YACnB,IAAA,iBAAU,EAAC,MAAM,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAA;QACrD,CAAC,CAAC,CAAA;QACF,MAAM,CAAC,mBAAmB,CAAC,CAAC,oBAAoB,CAAC,cAAc,EAAE,EAAE,CAAC,CAAA;IACtE,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,mFAAmF,EAAE,KAAK,IAAI,EAAE;QACjG,MAAM,SAAS,GAAG;;;;;;;;CAQrB,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;QAChB,MAAM,cAAc,GAAG;;;;;;;;CAQ1B,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;QAChB,MAAM,MAAM,GAAG,IAAA,2DAAwB,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAA;QACvE,MAAM,GAAG,CAAC,KAAK,IAAI,EAAE;YACnB,IAAA,iBAAU,EAAC,MAAM,MAAM,CAAC,UAAU,CAAC,0BAA0B,CAAC,EAAE,yBAAyB,CAAC,CAAA;QAC5F,CAAC,CAAC,CAAA;QACF,MAAM,CAAC,mBAAmB,CAAC,CAAC,oBAAoB,CAAC,cAAc,EAAE,EAAE,CAAC,CAAA;IACtE,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ import '@testing-library/jest-dom';
2
+ //# sourceMappingURL=FormatButton.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormatButton.test.d.ts","sourceRoot":"","sources":["../../__tests__/FormatButton.test.tsx"],"names":[],"mappings":"AACA,OAAO,2BAA2B,CAAA"}
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const react_1 = __importDefault(require("react"));
7
+ require("@testing-library/jest-dom");
8
+ const react_2 = require("@testing-library/react");
9
+ const ProseMirrorWrapper_1 = __importDefault(require("./utils/ProseMirrorWrapper"));
10
+ const prosemirror_1 = require("./utils/prosemirror");
11
+ const FormatButton_1 = __importDefault(require("../src/components/grading-instructions/editor/FormatButton"));
12
+ const user_event_1 = __importDefault(require("@testing-library/user-event"));
13
+ const act = react_2.act;
14
+ describe('FormatButton', () => {
15
+ beforeAll(() => {
16
+ (0, prosemirror_1.mockCreateRange)();
17
+ });
18
+ afterEach(() => {
19
+ (0, react_2.cleanup)();
20
+ });
21
+ describe('Italics', () => {
22
+ it('Renders italics button', () => {
23
+ const props = { markName: 'em', displayName: 'Italic' };
24
+ const { button } = renderEditorWithFormatButton(props);
25
+ expect(button).toHaveTextContent(props.displayName);
26
+ });
27
+ it('Toggles button active state when clicked', async () => {
28
+ const props = { markName: 'em', displayName: 'Italic' };
29
+ const { button } = renderEditorWithFormatButton(props);
30
+ expect(button).toHaveStyle('font-weight: normal');
31
+ await user_event_1.default.click(button);
32
+ expect(button).toHaveStyle('font-weight: bold');
33
+ await user_event_1.default.click(button);
34
+ expect(button).toHaveStyle('font-weight: normal');
35
+ });
36
+ it('formats text', async () => {
37
+ const props = { markName: 'em', displayName: 'Italic' };
38
+ const { button, paragraph } = renderEditorWithFormatButton(props);
39
+ await user_event_1.default.click(button);
40
+ await act(async () => await (0, prosemirror_1.promisifiedFireEventInput)(paragraph, { target: { innerHTML: 'hello' } }));
41
+ expect((0, react_2.within)(paragraph).getByRole('emphasis')).toHaveTextContent('hello');
42
+ });
43
+ it('em tags are rendered as italic', () => {
44
+ const props = { markName: 'em', displayName: 'Italic', innerHtml: '<em>Italic text</em>' };
45
+ const { paragraph } = renderEditorWithFormatButton(props);
46
+ expect((0, react_2.within)(paragraph).getByRole('emphasis')).toHaveTextContent('Italic text');
47
+ });
48
+ it('i tags are rendered as italic', () => {
49
+ const props = { markName: 'em', displayName: 'Italic', innerHtml: '<i>Italic text</i>' };
50
+ const { paragraph } = renderEditorWithFormatButton(props);
51
+ expect((0, react_2.within)(paragraph).getByRole('emphasis')).toHaveTextContent('Italic text');
52
+ });
53
+ });
54
+ describe('Bold', () => {
55
+ it('Renders bold button', () => {
56
+ const props = { markName: 'strong', displayName: 'Bold' };
57
+ const { button } = renderEditorWithFormatButton(props);
58
+ expect(button).toHaveTextContent(props.displayName);
59
+ });
60
+ it('Toggles button active state when clicked', async () => {
61
+ const props = { markName: 'strong', displayName: 'Bold' };
62
+ const { button } = renderEditorWithFormatButton(props);
63
+ expect(button).toHaveStyle('font-weight: normal');
64
+ await user_event_1.default.click(button);
65
+ expect(button).toHaveStyle('font-weight: bold');
66
+ await user_event_1.default.click(button);
67
+ expect(button).toHaveStyle('font-weight: normal');
68
+ });
69
+ it('formats text', async () => {
70
+ const props = { markName: 'strong', displayName: 'Bold' };
71
+ const { button, paragraph } = renderEditorWithFormatButton(props);
72
+ await user_event_1.default.click(button);
73
+ await act(async () => await (0, prosemirror_1.promisifiedFireEventInput)(paragraph, { target: { innerHTML: 'hello' } }));
74
+ expect((0, react_2.within)(paragraph).getByRole('strong')).toHaveTextContent('hello');
75
+ });
76
+ it('b tags are rendered as bold', () => {
77
+ const props = { markName: 'strong', displayName: 'bold', innerHtml: '<b>Bold text</b>' };
78
+ const { paragraph } = renderEditorWithFormatButton(props);
79
+ expect((0, react_2.within)(paragraph).getByRole('strong')).toHaveTextContent('Bold text');
80
+ });
81
+ it('strong tags are rendered as bold', () => {
82
+ const props = { markName: 'strong', displayName: 'bold', innerHtml: '<strong>Bold text</strong>' };
83
+ const { paragraph } = renderEditorWithFormatButton(props);
84
+ expect((0, react_2.within)(paragraph).getByRole('strong')).toHaveTextContent('Bold text');
85
+ });
86
+ });
87
+ function renderEditorWithFormatButton(props) {
88
+ const { markName, displayName, innerHtml = '' } = props;
89
+ const { getByRole } = (0, react_2.render)(react_1.default.createElement(ProseMirrorWrapper_1.default, { innerHtml: innerHtml },
90
+ react_1.default.createElement(FormatButton_1.default, { markName: markName, displayName: displayName })));
91
+ return { button: getByRole('button'), paragraph: getByRole('paragraph') };
92
+ }
93
+ });
94
+ //# sourceMappingURL=FormatButton.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormatButton.test.js","sourceRoot":"","sources":["../../__tests__/FormatButton.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,qCAAkC;AAClC,kDAAgF;AAChF,oFAA2D;AAC3D,qDAAgF;AAChF,8GAAqF;AACrF,6EAAmD;AAEnD,MAAM,GAAG,GAAG,WAAuD,CAAA;AAEnE,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,SAAS,CAAC,GAAG,EAAE;QACb,IAAA,6BAAe,GAAE,CAAA;IACnB,CAAC,CAAC,CAAA;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,IAAA,eAAO,GAAE,CAAA;IACX,CAAC,CAAC,CAAA;IAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;QACvB,EAAE,CAAC,wBAAwB,EAAE,GAAG,EAAE;YAChC,MAAM,KAAK,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAA;YACvD,MAAM,EAAE,MAAM,EAAE,GAAG,4BAA4B,CAAC,KAAK,CAAC,CAAA;YACtD,MAAM,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAA;QACrD,CAAC,CAAC,CAAA;QAEF,EAAE,CAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;YACxD,MAAM,KAAK,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAA;YACvD,MAAM,EAAE,MAAM,EAAE,GAAG,4BAA4B,CAAC,KAAK,CAAC,CAAA;YAEtD,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAA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AAC,KAAK,CAAC,CAAA;YACzD,MAAM,CAAC,IAAA,cAAM,EAAC,SAAS,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;QAC9E,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IAEF,SAAS,4BAA4B,CAAC,KAAoE;QACxG,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,KAAK,CAAA;QACvD,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,cAAM,EAC1B,8BAAC,4BAAkB,IAAC,SAAS,EAAE,SAAS;YACtC,8BAAC,sBAAY,IAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,GAAI,CAC3C,CACtB,CAAA;QACD,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,EAAE,CAAA;IAC3E,CAAC;AACH,CAAC,CAAC,CAAA"}
@@ -59,7 +59,7 @@ describe('Annotations', () => {
59
59
  it('popup is rendered', async () => {
60
60
  const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), annotations: [], onClickAnnotation: () => { }, onSaveAnnotation: () => { } }));
61
61
  await annotateText(exam, defaultAnnotationAnchor);
62
- expect(exam.getByTestId('annotation-popup')).toBeVisible();
62
+ expect(exam.getByTestId('e-popup')).toBeVisible();
63
63
  });
64
64
  it('popup is not rendered if annotation props are not passed', async () => {
65
65
  const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps() }));
@@ -67,13 +67,13 @@ describe('Annotations', () => {
67
67
  const textElement = exam.getByText(text);
68
68
  mockWindowSelection(text, textElement, text.length);
69
69
  await user_event_1.default.click(textElement);
70
- expect(exam.queryByTestId('annotation-popup')).not.toBeInTheDocument();
70
+ expect(exam.queryByTestId('e-popup')).not.toBeInTheDocument();
71
71
  });
72
72
  it('callback is called when annotation is saved', async () => {
73
73
  const saveAnnotationMock = jest.fn();
74
74
  const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), annotations: [], onClickAnnotation: () => { }, onSaveAnnotation: saveAnnotationMock }));
75
75
  await annotateText(exam, defaultAnnotationAnchor);
76
- const textbox = exam.getByTestId('edit-comment');
76
+ const textbox = exam.getByTestId('e-popup-content');
77
77
  react_1.fireEvent.input(textbox, {
78
78
  target: { innerText: 'New comment', innerHTML: 'New comment' }
79
79
  });
@@ -95,14 +95,14 @@ describe('Annotations', () => {
95
95
  const annotationAnchor_7_1 = 'e:exam:0 > e:section:2 > e:question:7 > e:question:7.1 > e:question-title:0 > span:0 > #text:0';
96
96
  const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), annotations: [], onClickAnnotation: () => { }, onSaveAnnotation: () => { } }));
97
97
  await annotateText(exam, defaultAnnotationAnchor);
98
- const textbox = exam.getByTestId('edit-comment');
98
+ const textbox = exam.getByTestId('e-popup-content');
99
99
  react_1.fireEvent.input(textbox, {
100
100
  target: { innerText: 'New Value', innerHTML: 'New Value' }
101
101
  });
102
102
  await user_event_1.default.click(exam.getByText('Tallenna'));
103
103
  // text picked by getMarkedText includes leading/trailing whitespace, so they must be here too
104
104
  await annotateText(exam, annotationAnchor_7_1);
105
- expect(exam.getByTestId('edit-comment').textContent).toHaveLength(0);
105
+ expect(exam.getByTestId('e-popup-content').textContent).toHaveLength(0);
106
106
  });
107
107
  it('callback is called when annotation is clicked', async () => {
108
108
  const clickAnnotationMock = jest.fn();
@@ -223,13 +223,13 @@ describe('Annotations', () => {
223
223
  it('grading instructions can be annotated', async () => {
224
224
  const gi = (0, react_1.render)(react_2.default.createElement(GradingInstructions_1.default, { ...getCommonProps(), annotations: [], onClickAnnotation: () => { }, onSaveAnnotation: () => { } }));
225
225
  await annotateText(gi, defaultAnnotationAnchor);
226
- expect(gi.getByTestId('annotation-popup')).toBeVisible();
226
+ expect(gi.getByTestId('e-popup')).toBeVisible();
227
227
  });
228
228
  it('attachments can be annotated', async () => {
229
229
  const annotationAnchor_7_A = 'e:exam:0 > e:section:2 > e:question:7 > e:external-material:3 > e:attachment:0 > span:1 > p:3 > #text:0';
230
230
  const gi = (0, react_1.render)(react_2.default.createElement(Attachments_1.default, { ...getCommonProps(), annotations: [], onClickAnnotation: () => { }, onSaveAnnotation: () => { } }));
231
231
  await annotateText(gi, annotationAnchor_7_A);
232
- expect(gi.getByTestId('annotation-popup')).toBeVisible();
232
+ expect(gi.getByTestId('e-popup')).toBeVisible();
233
233
  });
234
234
  function createAnnotations(annotations) {
235
235
  const annotationsById = (0, lodash_1.groupBy)(annotations, 'id');
@@ -1 +1 @@
1
- {"version":3,"file":"annotations.test.js","sourceRoot":"","sources":["../../__tests__/annotations.test.tsx"],"names":[],"mappings":";;;;;AAAA,iEAAuD;AACvD,yEAAyF;AACzF,qCAAkC;AAClC,kDAAwE;AACxE,6EAAmD;AACnD,2BAAmC;AACnC,gDAAuB;AACvB,kDAAyB;AACzB,yEAAgD;AAEhD,4FAAmE;AACnE,uEAA8E;AAC9E,qHAA4F;AAC5F,mDAA+C;AAC/C,mCAAgC;AAEhC,MAAM,oBAAoB;IAA1B;QACE,SAAI,GAAG,IAAI,CAAA;QACX,eAAU,GAAG,EAAE,CAAA;QACf,eAAU,GAAG,EAAE,CAAA;QACf,eAAU,GAAG,GAAG,EAAE,CAAC,IAAI,CAAA;QACvB,YAAO,GAAG,GAAG,EAAE,CAAC,IAAI,CAAA;QACpB,gBAAW,GAAG,GAAG,EAAE,CAAC,EAAE,CAAA;QACtB,cAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAA;IACxB,CAAC;CAAA;AACD,MAAM,CAAC,oBAAoB,GAAG,oBAAoB,CAAA;AAClD,MAAM,CAAC,oBAAoB,GAAG,oBAAoB,CAAA;AAClD,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;AAC3B,QAAQ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C;IAED,SAAS,cAAc;QACrB,OAAO;YACL,GAAG;YACH,OAAO,EAAE,EAAE;YACX,cAAc,EAAE,cAAc;YAC9B,iBAAiB,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,gBAAgB,kBAAkB,CAAC,QAAQ,CAAC,EAAE;SACxF,CAAA;IACH,CAAC;IAED,SAAS,YAAY;QACnB,MAAM,SAAS,GAAc;YAC3B,GAAG,cAAc,EAAE;YACnB,SAAS,EAAE,WAAW;YACtB,aAAa,EAAb,6BAAa;YACb,4BAA4B,EAAE,EAAE;YAChC,WAAW,EAAE,iBAAiB;YAC9B,YAAY,EAAE,KAAK;YACnB,aAAa,EAAE;gBACb,UAAU,EAAE,CAAC;gBACb,KAAK,EAAE,EAAE;gBACT,KAAK,EAAE,GAAG,EAAE,CAAC,SAAS;gBACtB,aAAa,EAAE,GAAG,EAAE,CAAC,SAAS;aAC/B;SACF,CAAA;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;AACH,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"annotations.test.js","sourceRoot":"","sources":["../../__tests__/annotations.test.tsx"],"names":[],"mappings":";;;;;AAAA,iEAAuD;AACvD,yEAAyF;AACzF,qCAAkC;AAClC,kDAAwE;AACxE,6EAAmD;AACnD,2BAAmC;AACnC,gDAAuB;AACvB,kDAAyB;AACzB,yEAAgD;AAEhD,4FAAmE;AACnE,uEAA8E;AAC9E,qHAA4F;AAC5F,mDAA+C;AAC/C,mCAAgC;AAEhC,MAAM,oBAAoB;IAA1B;QACE,SAAI,GAAG,IAAI,CAAA;QACX,eAAU,GAAG,EAAE,CAAA;QACf,eAAU,GAAG,EAAE,CAAA;QACf,eAAU,GAAG,GAAG,EAAE,CAAC,IAAI,CAAA;QACvB,YAAO,GAAG,GAAG,EAAE,CAAC,IAAI,CAAA;QACpB,gBAAW,GAAG,GAAG,EAAE,CAAC,EAAE,CAAA;QACtB,cAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAA;IACxB,C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AAO;gBACrB,aAAa,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC;aAC3E,CAAC;SACH,CAAC,CAAC,CAAA;IACL,CAAC;IAED,SAAS,cAAc;QACrB,OAAO;YACL,GAAG;YACH,OAAO,EAAE,EAAE;YACX,cAAc,EAAE,cAAc;YAC9B,iBAAiB,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,gBAAgB,kBAAkB,CAAC,QAAQ,CAAC,EAAE;SACxF,CAAA;IACH,CAAC;IAED,SAAS,YAAY;QACnB,MAAM,SAAS,GAAc;YAC3B,GAAG,cAAc,EAAE;YACnB,SAAS,EAAE,WAAW;YACtB,aAAa,EAAb,6BAAa;YACb,4BAA4B,EAAE,EAAE;YAChC,WAAW,EAAE,iBAAiB;YAC9B,YAAY,EAAE,KAAK;YACnB,aAAa,EAAE;gBACb,UAAU,EAAE,CAAC;gBACb,KAAK,EAAE,EAAE;gBACT,KAAK,EAAE,GAAG,EAAE,CAAC,SAAS;gBACtB,aAAa,EAAE,GAAG,EAAE,CAAC,SAAS;aAC/B;SACF,CAAA;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;AACH,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ import '@testing-library/jest-dom';
2
+ //# sourceMappingURL=FormatButton.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormatButton.test.d.ts","sourceRoot":"","sources":["../../../__tests__/editor/FormatButton.test.tsx"],"names":[],"mappings":"AACA,OAAO,2BAA2B,CAAA"}