@digabi/exam-engine-core 21.0.4-annoteta-react.0 → 22.0.1-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/__tests__/annotations.test.d.ts.map +1 -1
- package/dist/__tests__/annotations.test.js +175 -60
- package/dist/__tests__/annotations.test.js.map +1 -1
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/components/RenderIf.d.ts.map +1 -1
- package/dist/components/attachments/Attachments.d.ts.map +1 -1
- package/dist/components/attachments/Attachments.js +7 -9
- package/dist/components/attachments/Attachments.js.map +1 -1
- package/dist/components/context/AnnotationProvider.d.ts +7 -2
- package/dist/components/context/AnnotationProvider.d.ts.map +1 -1
- package/dist/components/context/AnnotationProvider.js +30 -4
- package/dist/components/context/AnnotationProvider.js.map +1 -1
- package/dist/components/context/CommonExamContext.d.ts +1 -0
- package/dist/components/context/CommonExamContext.d.ts.map +1 -1
- package/dist/components/context/CommonExamContext.js +3 -0
- package/dist/components/context/CommonExamContext.js.map +1 -1
- package/dist/components/context/GradingInstructionContext.d.ts +17 -0
- package/dist/components/context/GradingInstructionContext.d.ts.map +1 -0
- package/dist/components/context/GradingInstructionContext.js +3 -0
- package/dist/components/context/GradingInstructionContext.js.map +1 -0
- package/dist/components/context/IsInSidebarContext.d.ts +0 -1
- package/dist/components/context/IsInSidebarContext.d.ts.map +1 -1
- package/dist/components/context/ResultsContext.d.ts.map +1 -1
- package/dist/components/context/ResultsContext.js.map +1 -1
- package/dist/components/context/TOCContext.d.ts +0 -1
- package/dist/components/context/TOCContext.d.ts.map +1 -1
- package/dist/components/context/withContext.d.ts.map +1 -1
- package/dist/components/exam/ChoiceAnswer.d.ts.map +1 -1
- package/dist/components/exam/ChoiceAnswer.js +16 -14
- package/dist/components/exam/ChoiceAnswer.js.map +1 -1
- package/dist/components/exam/Exam.d.ts +4 -4
- package/dist/components/exam/Exam.d.ts.map +1 -1
- package/dist/components/exam/Exam.js +0 -2
- package/dist/components/exam/Exam.js.map +1 -1
- package/dist/components/exam/RichTextAnswer.d.ts +1 -1
- package/dist/components/exam/RichTextAnswer.d.ts.map +1 -1
- package/dist/components/exam/TextAnswer.d.ts.map +1 -1
- package/dist/components/exam/TextAnswer.js +6 -4
- package/dist/components/exam/TextAnswer.js.map +1 -1
- package/dist/components/exam/internal/ProgressBar.d.ts.map +1 -1
- package/dist/components/exam/internal/ProgressBar.js +1 -0
- package/dist/components/exam/internal/ProgressBar.js.map +1 -1
- package/dist/components/grading/editAnnotations.d.ts.map +1 -1
- package/dist/components/grading/editAnnotations.js +2 -1
- package/dist/components/grading/editAnnotations.js.map +1 -1
- package/dist/components/grading/examAnnotationUtils.d.ts +0 -1
- package/dist/components/grading/examAnnotationUtils.d.ts.map +1 -1
- package/dist/components/grading/examAnnotationUtils.js +88 -37
- package/dist/components/grading/examAnnotationUtils.js.map +1 -1
- package/dist/components/grading-instructions/AnswerGradingInstruction.d.ts.map +1 -1
- package/dist/components/grading-instructions/AnswerGradingInstruction.js +7 -2
- package/dist/components/grading-instructions/AnswerGradingInstruction.js.map +1 -1
- package/dist/components/grading-instructions/EditableGradingInstruction.d.ts +5 -0
- package/dist/components/grading-instructions/EditableGradingInstruction.d.ts.map +1 -0
- package/dist/components/grading-instructions/EditableGradingInstruction.js +40 -0
- package/dist/components/grading-instructions/EditableGradingInstruction.js.map +1 -0
- package/dist/components/grading-instructions/ExamGradingInstruction.d.ts.map +1 -1
- package/dist/components/grading-instructions/ExamGradingInstruction.js +7 -2
- package/dist/components/grading-instructions/ExamGradingInstruction.js.map +1 -1
- package/dist/components/grading-instructions/GradingInstructionProvider.d.ts +4 -0
- package/dist/components/grading-instructions/GradingInstructionProvider.d.ts.map +1 -0
- package/dist/components/grading-instructions/GradingInstructionProvider.js +7 -0
- package/dist/components/grading-instructions/GradingInstructionProvider.js.map +1 -0
- package/dist/components/grading-instructions/GradingInstructions.d.ts +2 -1
- package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.js +41 -40
- package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
- package/dist/components/shared/AnnotatableText.d.ts +2 -4
- package/dist/components/shared/AnnotatableText.d.ts.map +1 -1
- package/dist/components/shared/AnnotatableText.js +22 -60
- package/dist/components/shared/AnnotatableText.js.map +1 -1
- package/dist/components/shared/AnnotationMark.d.ts +9 -0
- package/dist/components/shared/AnnotationMark.d.ts.map +1 -0
- package/dist/components/shared/AnnotationMark.js +14 -0
- package/dist/components/shared/AnnotationMark.js.map +1 -0
- package/dist/components/shared/AnnotationPopup.js +4 -4
- package/dist/components/shared/AnnotationPopup.js.map +1 -1
- package/dist/components/shared/AnswerIndicator.d.ts +1 -1
- package/dist/components/shared/AnswerIndicator.d.ts.map +1 -1
- package/dist/components/shared/AnswerIndicator.js +10 -9
- package/dist/components/shared/AnswerIndicator.js.map +1 -1
- package/dist/components/shared/AnswerLengthInfo.d.ts +1 -1
- package/dist/components/shared/AnswerLengthInfo.d.ts.map +1 -1
- package/dist/components/shared/AttachmentLink.d.ts +1 -1
- package/dist/components/shared/AttachmentLink.d.ts.map +1 -1
- package/dist/components/shared/AttachmentLinks.d.ts +1 -1
- package/dist/components/shared/AttachmentLinks.d.ts.map +1 -1
- package/dist/components/shared/References.d.ts.map +1 -1
- package/dist/components/shared/References.js +1 -0
- package/dist/components/shared/References.js.map +1 -1
- package/dist/components/shared/TOCQuestion.js +1 -1
- package/dist/components/shared/TOCQuestion.js.map +1 -1
- package/dist/components/shared/markText.d.ts +5 -0
- package/dist/components/shared/markText.d.ts.map +1 -0
- package/dist/components/shared/markText.js +72 -0
- package/dist/components/shared/markText.js.map +1 -0
- package/dist/createRenderChildNodes.d.ts.map +1 -1
- package/dist/createRenderChildNodes.js +2 -12
- package/dist/createRenderChildNodes.js.map +1 -1
- package/dist/dom-utils.js +2 -2
- package/dist/dom-utils.js.map +1 -1
- package/dist/i18n/index.d.ts +1 -2
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/index.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/dist/main.css +1 -1
- package/dist/store/answers/reducer.d.ts.map +1 -1
- package/dist/store/audio/reducer.d.ts.map +1 -1
- package/dist/store/audio/sagas.d.ts.map +1 -1
- package/dist/store/audio/sagas.js +3 -1
- package/dist/store/audio/sagas.js.map +1 -1
- package/dist/store/cas/reducer.d.ts.map +1 -1
- package/dist/store/index.d.ts +1 -2
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/selectors.d.ts +1 -1
- package/dist/types/Score.d.ts +18 -3
- package/dist/types/Score.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/components/context/AnnotationContext.d.ts +0 -9
- package/dist/components/context/AnnotationContext.d.ts.map +0 -1
- package/dist/components/context/AnnotationContext.js +0 -3
- package/dist/components/context/AnnotationContext.js.map +0 -1
- package/dist/components/exam/ExamineExam.d.ts +0 -5
- package/dist/components/exam/ExamineExam.d.ts.map +0 -1
- package/dist/components/exam/ExamineExam.js +0 -20
- package/dist/components/exam/ExamineExam.js.map +0 -1
- package/dist/components/exam/FinishExam.d.ts +0 -5
- package/dist/components/exam/FinishExam.d.ts.map +0 -1
- package/dist/components/exam/FinishExam.js +0 -17
- package/dist/components/exam/FinishExam.js.map +0 -1
- package/dist/components/grading/reactAnnotation.d.ts +0 -4
- package/dist/components/grading/reactAnnotation.d.ts.map +0 -1
- package/dist/components/grading/reactAnnotation.js +0 -54
- package/dist/components/grading/reactAnnotation.js.map +0 -1
- package/dist/components/results/isExamFinishPageHook.d.ts +0 -2
- package/dist/components/results/isExamFinishPageHook.d.ts.map +0 -1
- package/dist/components/results/isExamFinishPageHook.js +0 -7
- package/dist/components/results/isExamFinishPageHook.js.map +0 -1
- package/dist/components/shared/CreateAnnotationPopup.d.ts +0 -6
- package/dist/components/shared/CreateAnnotationPopup.d.ts.map +0 -1
- package/dist/components/shared/CreateAnnotationPopup.js +0 -11
- package/dist/components/shared/CreateAnnotationPopup.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"annotations.test.d.ts","sourceRoot":"","sources":["../../__tests__/annotations.test.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"annotations.test.d.ts","sourceRoot":"","sources":["../../__tests__/annotations.test.tsx"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,CAAA"}
|
@@ -3,19 +3,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const exam_engine_exams_1 = require("@digabi/exam-engine-exams");
|
7
|
+
const exam_engine_mastering_1 = require("@digabi/exam-engine-mastering");
|
8
|
+
require("@testing-library/jest-dom");
|
6
9
|
const react_1 = require("@testing-library/react");
|
7
10
|
const user_event_1 = __importDefault(require("@testing-library/user-event"));
|
8
|
-
const Exam_1 = __importDefault(require("../src/components/exam/Exam"));
|
9
|
-
const GradingInstructions_1 = __importDefault(require("../src/components/grading-instructions/GradingInstructions"));
|
10
11
|
const fs_1 = require("fs");
|
11
|
-
const exam_engine_mastering_1 = require("@digabi/exam-engine-mastering");
|
12
|
-
const exam_engine_exams_1 = require("@digabi/exam-engine-exams");
|
13
12
|
const path_1 = __importDefault(require("path"));
|
14
|
-
const parseExam_1 = __importDefault(require("../dist/parser/parseExam"));
|
15
|
-
const examServerApi_1 = require("./examServerApi");
|
16
13
|
const react_2 = __importDefault(require("react"));
|
17
|
-
require("
|
14
|
+
const parseExam_1 = __importDefault(require("../dist/parser/parseExam"));
|
18
15
|
const Attachments_1 = __importDefault(require("../src/components/attachments/Attachments"));
|
16
|
+
const Exam_1 = __importDefault(require("../src/components/exam/Exam"));
|
17
|
+
const GradingInstructions_1 = __importDefault(require("../src/components/grading-instructions/GradingInstructions"));
|
18
|
+
const examServerApi_1 = require("./examServerApi");
|
19
|
+
const lodash_1 = require("lodash");
|
19
20
|
class IntersectionObserver {
|
20
21
|
constructor() {
|
21
22
|
this.root = null;
|
@@ -49,114 +50,228 @@ describe('Annotations', () => {
|
|
49
50
|
window.scrollTo.mockReset();
|
50
51
|
document.execCommand.mockReset();
|
51
52
|
});
|
52
|
-
|
53
|
-
const
|
53
|
+
// Do NOT modify the line breaks and indentations below
|
54
|
+
const defaultTextToAnnotate = `
|
55
|
+
Valitse jokin pienempi tai suurempi yhteisö – esimerkiksi jokin koulu, katsomuksellinen ryhmä tai valtio –
|
56
|
+
ja pohdi, mikä ero valitsemassasi yhteisössä on moraalin ja tapojen välillä.
|
57
|
+
`;
|
58
|
+
const defaultAnnotationAnchor = 'e:exam:0 > e:section:1 > e:question:2 > e:question-instruction:1 > span:0 > p:1 > #text:0';
|
54
59
|
it('popup is rendered', async () => {
|
55
|
-
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), annotations:
|
56
|
-
await annotateText(exam,
|
60
|
+
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), annotations: [], onClickAnnotation: () => { }, onSaveAnnotation: () => { } }));
|
61
|
+
await annotateText(exam, defaultAnnotationAnchor);
|
57
62
|
expect(exam.getByTestId('annotation-popup')).toBeVisible();
|
58
63
|
});
|
59
64
|
it('popup is not rendered if annotation props are not passed', async () => {
|
60
65
|
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps() }));
|
61
|
-
|
66
|
+
const text = 'Sekä moraali että tavat pyrkivät ohjaamaan ihmisten käyttäytymistä.';
|
67
|
+
const textElement = exam.getByText(text);
|
68
|
+
mockWindowSelection(text, textElement, text.length);
|
69
|
+
await user_event_1.default.click(textElement);
|
62
70
|
expect(exam.queryByTestId('annotation-popup')).not.toBeInTheDocument();
|
63
71
|
});
|
64
72
|
it('callback is called when annotation is saved', async () => {
|
65
73
|
const saveAnnotationMock = jest.fn();
|
66
|
-
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), annotations:
|
67
|
-
await annotateText(exam,
|
74
|
+
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), annotations: [], onClickAnnotation: () => { }, onSaveAnnotation: saveAnnotationMock }));
|
75
|
+
await annotateText(exam, defaultAnnotationAnchor);
|
68
76
|
const textbox = exam.getByTestId('edit-comment');
|
69
77
|
react_1.fireEvent.input(textbox, {
|
70
|
-
target: { innerText: 'New
|
78
|
+
target: { innerText: 'New comment', innerHTML: 'New comment' }
|
71
79
|
});
|
72
|
-
await user_event_1.default.click(exam.getByText('
|
80
|
+
await user_event_1.default.click(exam.getByText('Tallenna'));
|
81
|
+
const annotationPart = {
|
82
|
+
annotationAnchor: defaultAnnotationAnchor,
|
83
|
+
selectedText: defaultTextToAnnotate,
|
84
|
+
startIndex: 0,
|
85
|
+
length: defaultTextToAnnotate.length
|
86
|
+
};
|
73
87
|
expect(saveAnnotationMock).toHaveBeenCalledTimes(1);
|
74
88
|
expect(saveAnnotationMock).toHaveBeenCalledWith({
|
75
|
-
|
76
|
-
annotationId: undefined,
|
89
|
+
annotationParts: [annotationPart],
|
77
90
|
displayNumber: '2',
|
78
|
-
|
79
|
-
|
80
|
-
selectedText: defaultTextToAnnotate,
|
81
|
-
startIndex: 67
|
82
|
-
});
|
91
|
+
selectedText: defaultTextToAnnotate
|
92
|
+
}, 'New comment');
|
83
93
|
});
|
84
94
|
it('popup field is empty when creating new annotation', async () => {
|
85
|
-
const
|
86
|
-
|
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
|
+
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), annotations: [], onClickAnnotation: () => { }, onSaveAnnotation: () => { } }));
|
97
|
+
await annotateText(exam, defaultAnnotationAnchor);
|
87
98
|
const textbox = exam.getByTestId('edit-comment');
|
88
99
|
react_1.fireEvent.input(textbox, {
|
89
100
|
target: { innerText: 'New Value', innerHTML: 'New Value' }
|
90
101
|
});
|
91
|
-
await user_event_1.default.click(exam.getByText('
|
92
|
-
|
102
|
+
await user_event_1.default.click(exam.getByText('Tallenna'));
|
103
|
+
// text picked by getMarkedText includes leading/trailing whitespace, so they must be here too
|
104
|
+
await annotateText(exam, annotationAnchor_7_1);
|
93
105
|
expect(exam.getByTestId('edit-comment').textContent).toHaveLength(0);
|
94
106
|
});
|
95
107
|
it('callback is called when annotation is clicked', async () => {
|
96
108
|
const clickAnnotationMock = jest.fn();
|
97
|
-
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), annotations: {
|
109
|
+
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), annotations: createAnnotations([{ id: 1, startIndex: 5, selectedText: 'moraali että' }]), onClickAnnotation: clickAnnotationMock, onSaveAnnotation: () => { } }));
|
98
110
|
await user_event_1.default.click(exam.container.querySelector('[data-annotation-id="1"]'));
|
99
|
-
|
100
|
-
expect(clickAnnotationMock).toHaveBeenCalledWith(expect.anything(), {
|
111
|
+
const clickedAnnotation = {
|
101
112
|
annotationAnchor: defaultAnnotationAnchor,
|
102
113
|
annotationId: 1,
|
103
|
-
displayNumber: '',
|
104
114
|
hidden: false,
|
105
|
-
length:
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
}
|
115
|
+
length: 12,
|
116
|
+
selectedText: 'moraali että',
|
117
|
+
startIndex: 5,
|
118
|
+
markNumber: 1
|
119
|
+
};
|
120
|
+
expect(clickAnnotationMock).toHaveBeenCalledTimes(1);
|
121
|
+
expect(clickAnnotationMock).toHaveBeenCalledWith(expect.anything(), clickedAnnotation);
|
110
122
|
});
|
111
123
|
it('annotations are added to dom when provided', () => {
|
124
|
+
var _a, _b;
|
112
125
|
const annotationProps = {
|
113
|
-
annotations:
|
114
|
-
|
115
|
-
|
126
|
+
annotations: createAnnotations([
|
127
|
+
{ id: 1, startIndex: 27, selectedText: 'pienempi' },
|
128
|
+
{ id: 3, startIndex: 166, selectedText: 'yhteisössä' }
|
129
|
+
]),
|
116
130
|
onClickAnnotation: () => { },
|
117
131
|
onSaveAnnotation: () => { }
|
118
132
|
};
|
119
133
|
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), ...annotationProps }));
|
120
134
|
expect(exam.container.querySelector('[data-annotation-id="1"]')).toBeInTheDocument();
|
135
|
+
expect((_a = exam.container.querySelector('[data-annotation-id="1"]')) === null || _a === void 0 ? void 0 : _a.textContent).toBe('pienempi');
|
136
|
+
expect(exam.container.querySelector('[data-annotation-id="1"] sup')).toHaveAttribute('data-content', '1');
|
121
137
|
expect(exam.container.querySelector('[data-annotation-id="3"]')).toBeInTheDocument();
|
138
|
+
expect((_b = exam.container.querySelector('[data-annotation-id="3"]')) === null || _b === void 0 ? void 0 : _b.textContent).toBe('yhteisössä');
|
139
|
+
expect(exam.container.querySelector('[data-annotation-id="3"] sup')).toHaveAttribute('data-content', '2');
|
140
|
+
});
|
141
|
+
it('"August 2024" annotations are added to dom when provided', () => {
|
142
|
+
var _a;
|
143
|
+
/** the difference of startIndex between an "August 2024 annotation" and a normal annotation
|
144
|
+
* (in this case, but the index varies depending on the exam content)
|
145
|
+
*/
|
146
|
+
const startIndexDifference = 24;
|
147
|
+
const annotationProps = {
|
148
|
+
annotations: createAnnotations([{ id: 1, startIndex: 166 - startIndexDifference, selectedText: 'yhteisössä' }]),
|
149
|
+
onClickAnnotation: () => { },
|
150
|
+
onSaveAnnotation: () => { }
|
151
|
+
};
|
152
|
+
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), ...annotationProps }));
|
153
|
+
expect(exam.container.querySelector('[data-annotation-id="1"]')).toBeInTheDocument();
|
154
|
+
expect((_a = exam.container.querySelector('[data-annotation-id="1"]')) === null || _a === void 0 ? void 0 : _a.textContent).toBe('yhteisössä');
|
155
|
+
expect(exam.container.querySelector('[data-annotation-id="1"] sup')).toHaveAttribute('data-content', '1');
|
156
|
+
});
|
157
|
+
it('if two annotations have same id, only latter renders <sup>', () => {
|
158
|
+
const annotationProps = {
|
159
|
+
annotations: createAnnotations([
|
160
|
+
{ id: 1, startIndex: 71, selectedText: 'jokin' },
|
161
|
+
{ id: 1, startIndex: 77, selectedText: 'koulu' },
|
162
|
+
{ id: 2, startIndex: 142, selectedText: 'mikä' },
|
163
|
+
{ id: 2, startIndex: 147, selectedText: 'ero' }
|
164
|
+
]),
|
165
|
+
onClickAnnotation: () => { },
|
166
|
+
onSaveAnnotation: () => { }
|
167
|
+
};
|
168
|
+
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), ...annotationProps }));
|
169
|
+
const marks = (id) => exam.container.querySelectorAll(`.e-annotation[data-annotation-id="${id}"]`);
|
170
|
+
const marksId1 = marks('1');
|
171
|
+
const marksId2 = marks('2');
|
172
|
+
expect(marksId1[0].textContent).toBe('jokin');
|
173
|
+
expect(marksId1[0].querySelector('sup')).not.toBeInTheDocument();
|
174
|
+
expect(marksId1[1].textContent).toBe('koulu');
|
175
|
+
expect(marksId1[1]).toBeInTheDocument();
|
176
|
+
expect(marksId1[1].querySelector('sup')).toHaveAttribute('data-content', '1');
|
177
|
+
expect(marksId2[0].textContent).toBe('mikä');
|
178
|
+
expect(marksId2[0].querySelector('sup')).not.toBeInTheDocument();
|
179
|
+
expect(marksId2[1].textContent).toBe('ero');
|
180
|
+
expect(marksId2[1]).toBeInTheDocument();
|
181
|
+
expect(marksId2[1].querySelector('sup')).toHaveAttribute('data-content', '2');
|
182
|
+
});
|
183
|
+
it('hidden annotation works correctly', () => {
|
184
|
+
var _a, _b;
|
185
|
+
const annotations = createAnnotations([{ id: 1, startIndex: 59, selectedText: 'esimerkiksi', hidden: true }]);
|
186
|
+
const annotationProps = {
|
187
|
+
annotations,
|
188
|
+
onClickAnnotation: () => { },
|
189
|
+
onSaveAnnotation: () => { }
|
190
|
+
};
|
191
|
+
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), ...annotationProps }));
|
192
|
+
expect(exam.container.querySelector('[data-annotation-id="1"]')).toBeInTheDocument();
|
193
|
+
expect(exam.container.querySelector('[data-annotation-id="1"] sup')).not.toBeInTheDocument();
|
194
|
+
expect((_b = (_a = exam.container.querySelector('[data-annotation-id="1"]')) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.textContent).toBe(defaultTextToAnnotate);
|
195
|
+
});
|
196
|
+
it('annotations can not overlap — overlapping annotations are not rendered', () => {
|
197
|
+
var _a, _b, _c, _d;
|
198
|
+
const annotations = createAnnotations([
|
199
|
+
{ id: 1, startIndex: 59, selectedText: 'esimerkiksi' },
|
200
|
+
{ id: 2, startIndex: 62, selectedText: 'merkiksi jo' },
|
201
|
+
{ id: 3, startIndex: 65, selectedText: 'kiksi jokin' },
|
202
|
+
{ id: 4, startIndex: 71, selectedText: 'jokin koulu' } // does NOT overlap with the first annotation
|
203
|
+
]);
|
204
|
+
const annotationProps = {
|
205
|
+
annotations,
|
206
|
+
onClickAnnotation: () => { },
|
207
|
+
onSaveAnnotation: () => { }
|
208
|
+
};
|
209
|
+
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), ...annotationProps }));
|
210
|
+
expect(exam.container.querySelector('[data-annotation-id="1"]')).toBeInTheDocument();
|
211
|
+
expect(exam.container.querySelector('[data-annotation-id="1"] sup')).toBeInTheDocument();
|
212
|
+
expect((_a = exam.container.querySelector('[data-annotation-id="1"]')) === null || _a === void 0 ? void 0 : _a.textContent).toBe('esimerkiksi');
|
213
|
+
expect(exam.container.querySelector('[data-annotation-id="2"]')).toBeInTheDocument();
|
214
|
+
expect(exam.container.querySelector('[data-annotation-id="2"] sup')).not.toBeInTheDocument();
|
215
|
+
expect((_b = exam.container.querySelector('[data-annotation-id="2"]')) === null || _b === void 0 ? void 0 : _b.textContent).toBe('');
|
216
|
+
expect(exam.container.querySelector('[data-annotation-id="3"]')).toBeInTheDocument();
|
217
|
+
expect(exam.container.querySelector('[data-annotation-id="3"] sup')).not.toBeInTheDocument();
|
218
|
+
expect((_c = exam.container.querySelector('[data-annotation-id="2"]')) === null || _c === void 0 ? void 0 : _c.textContent).toBe('');
|
219
|
+
expect(exam.container.querySelector('[data-annotation-id="4"]')).toBeInTheDocument();
|
220
|
+
expect(exam.container.querySelector('[data-annotation-id="4"]')).toBeInTheDocument();
|
221
|
+
expect((_d = exam.container.querySelector('[data-annotation-id="4"]')) === null || _d === void 0 ? void 0 : _d.textContent).toBe('jokin koulu');
|
122
222
|
});
|
123
223
|
it('grading instructions can be annotated', async () => {
|
124
|
-
const gi = (0, react_1.render)(react_2.default.createElement(GradingInstructions_1.default, { ...getCommonProps(), annotations:
|
125
|
-
await annotateText(gi,
|
224
|
+
const gi = (0, react_1.render)(react_2.default.createElement(GradingInstructions_1.default, { ...getCommonProps(), annotations: [], onClickAnnotation: () => { }, onSaveAnnotation: () => { } }));
|
225
|
+
await annotateText(gi, defaultAnnotationAnchor);
|
126
226
|
expect(gi.getByTestId('annotation-popup')).toBeVisible();
|
127
227
|
});
|
128
228
|
it('attachments can be annotated', async () => {
|
129
|
-
const
|
130
|
-
|
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
|
+
const gi = (0, react_1.render)(react_2.default.createElement(Attachments_1.default, { ...getCommonProps(), annotations: [], onClickAnnotation: () => { }, onSaveAnnotation: () => { } }));
|
231
|
+
await annotateText(gi, annotationAnchor_7_A);
|
131
232
|
expect(gi.getByTestId('annotation-popup')).toBeVisible();
|
132
233
|
});
|
133
|
-
function
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
234
|
+
function createAnnotations(annotations) {
|
235
|
+
const annotationsById = (0, lodash_1.groupBy)(annotations, 'id');
|
236
|
+
return Object.keys(annotationsById).map((id, index) => {
|
237
|
+
const annotationParts = annotationsById[id];
|
238
|
+
return {
|
239
|
+
annotationId: Number(id),
|
240
|
+
selectedText: annotations.map(a => a.selectedText).join(' '),
|
241
|
+
type: 'text',
|
242
|
+
displayNumber: '2',
|
243
|
+
hidden: annotationParts.some(a => a.hidden),
|
244
|
+
markNumber: index + 1,
|
245
|
+
annotationParts: annotationParts.map(p => ({
|
246
|
+
startIndex: p.startIndex,
|
247
|
+
length: p.selectedText.length,
|
248
|
+
annotationAnchor: defaultAnnotationAnchor,
|
249
|
+
selectedText: p.selectedText,
|
250
|
+
annotationId: Number(id)
|
251
|
+
}))
|
252
|
+
};
|
253
|
+
});
|
144
254
|
}
|
145
|
-
async function annotateText(exam,
|
146
|
-
|
147
|
-
const
|
255
|
+
async function annotateText(exam, elementAnchor) {
|
256
|
+
const textElement = exam.getByTestId(elementAnchor);
|
257
|
+
const fullText = (textElement === null || textElement === void 0 ? void 0 : textElement.textContent) || '';
|
258
|
+
const annotationLength = fullText.length;
|
259
|
+
const text = fullText.substring(0, annotationLength);
|
260
|
+
mockWindowSelection(text, textElement, annotationLength);
|
148
261
|
await user_event_1.default.click(textElement);
|
149
262
|
}
|
150
|
-
function mockWindowSelection(text = 'mocked selection text', length
|
263
|
+
function mockWindowSelection(text = 'mocked selection text', element, length) {
|
151
264
|
;
|
152
265
|
window.getSelection.mockImplementation(() => ({
|
153
266
|
toString: () => text,
|
154
267
|
rangeCount: 1,
|
268
|
+
anchorNode: element.firstChild,
|
269
|
+
focusNode: element.firstChild,
|
155
270
|
getRangeAt: jest.fn().mockReturnValue({
|
156
271
|
startOffset: 0,
|
157
272
|
endOffset: length,
|
158
|
-
startContainer:
|
159
|
-
endContainer:
|
273
|
+
startContainer: element,
|
274
|
+
endContainer: element,
|
160
275
|
cloneContents: jest.fn().mockReturnValue({ children: [], childNodes: [] })
|
161
276
|
})
|
162
277
|
}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"annotations.test.js","sourceRoot":"","sources":["../../__tests__/annotations.test.tsx"],"names":[],"mappings":";;;;;AAAA,kD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C;YAC5D,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI;YACpB,UAAU,EAAE,CAAC;YACb,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC;gBACpC,WAAW,EAAE,CAAC;gBACd,SAAS,EAAE,MAAM;gBACjB,cAAc,EAAE,EAAE;gBAClB,YAAY,EAAE,EAAE;gBAChB,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"}
|
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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