@digabi/exam-engine-core 20.4.1 → 20.5.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 +46 -35
- 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.map +1 -1
- package/dist/components/context/AnnotationProvider.js +18 -2
- package/dist/components/context/AnnotationProvider.js.map +1 -1
- 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.map +1 -1
- package/dist/components/exam/Exam.js +0 -2
- package/dist/components/exam/Exam.js.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/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 +26 -30
- package/dist/components/grading/examAnnotationUtils.js.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.js +23 -25
- 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 +36 -28
- package/dist/components/shared/AnnotatableText.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/createRenderChildNodes.d.ts.map +1 -1
- package/dist/createRenderChildNodes.js +2 -12
- package/dist/createRenderChildNodes.js.map +1 -1
- package/dist/i18n/index.d.ts.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/cas/reducer.d.ts.map +1 -1
- package/dist/store/selectors.d.ts +1 -1
- package/package.json +3 -3
@@ -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,19 @@ 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
19
|
class IntersectionObserver {
|
20
20
|
constructor() {
|
21
21
|
this.root = null;
|
@@ -53,18 +53,21 @@ describe('Annotations', () => {
|
|
53
53
|
const defaultAnnotationAnchor = 'e:exam:0 > e:section:1 > e:question:2 > e:question-instruction:1 > span:0 > p:0 > #text:0';
|
54
54
|
it('popup is rendered', async () => {
|
55
55
|
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), annotations: {}, onClickAnnotation: () => { }, onSaveAnnotation: () => { } }));
|
56
|
-
await annotateText(exam,
|
56
|
+
await annotateText(exam, defaultAnnotationAnchor);
|
57
57
|
expect(exam.getByTestId('annotation-popup')).toBeVisible();
|
58
58
|
});
|
59
59
|
it('popup is not rendered if annotation props are not passed', async () => {
|
60
60
|
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps() }));
|
61
|
-
|
61
|
+
const text = 'Sekä moraali että tavat pyrkivät ohjaamaan ihmisten käyttäytymistä.';
|
62
|
+
const textElement = exam.getByText(text);
|
63
|
+
mockWindowSelection(text, textElement, 0, text.length);
|
64
|
+
await user_event_1.default.click(textElement);
|
62
65
|
expect(exam.queryByTestId('annotation-popup')).not.toBeInTheDocument();
|
63
66
|
});
|
64
67
|
it('callback is called when annotation is saved', async () => {
|
65
68
|
const saveAnnotationMock = jest.fn();
|
66
69
|
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), annotations: {}, onClickAnnotation: () => { }, onSaveAnnotation: saveAnnotationMock }));
|
67
|
-
await annotateText(exam,
|
70
|
+
await annotateText(exam, defaultAnnotationAnchor);
|
68
71
|
const textbox = exam.getByTestId('edit-comment');
|
69
72
|
react_1.fireEvent.input(textbox, {
|
70
73
|
target: { innerText: 'New Value', innerHTML: 'New Value' }
|
@@ -78,23 +81,25 @@ describe('Annotations', () => {
|
|
78
81
|
length: defaultTextToAnnotate.length,
|
79
82
|
message: 'New Value',
|
80
83
|
selectedText: defaultTextToAnnotate,
|
81
|
-
startIndex:
|
84
|
+
startIndex: 0
|
82
85
|
});
|
83
86
|
});
|
84
87
|
it('popup field is empty when creating new annotation', async () => {
|
88
|
+
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';
|
85
89
|
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), annotations: {}, onClickAnnotation: () => { }, onSaveAnnotation: () => { } }));
|
86
|
-
await annotateText(exam,
|
90
|
+
await annotateText(exam, defaultAnnotationAnchor);
|
87
91
|
const textbox = exam.getByTestId('edit-comment');
|
88
92
|
react_1.fireEvent.input(textbox, {
|
89
93
|
target: { innerText: 'New Value', innerHTML: 'New Value' }
|
90
94
|
});
|
91
95
|
await user_event_1.default.click(exam.getByText('Vastaa'));
|
92
|
-
|
96
|
+
// text picked by getMarkedText includes leading/trailing whitespace, so they must be here too
|
97
|
+
await annotateText(exam, annotationAnchor_7_1);
|
93
98
|
expect(exam.getByTestId('edit-comment').textContent).toHaveLength(0);
|
94
99
|
});
|
95
100
|
it('callback is called when annotation is clicked', async () => {
|
96
101
|
const clickAnnotationMock = jest.fn();
|
97
|
-
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), annotations: { [defaultAnnotationAnchor]: [createAnnotation(1,
|
102
|
+
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), annotations: { [defaultAnnotationAnchor]: [createAnnotation(1, 5, 12, 'moraali että')] }, onClickAnnotation: clickAnnotationMock, onSaveAnnotation: () => { } }));
|
98
103
|
await user_event_1.default.click(exam.container.querySelector('[data-annotation-id="1"]'));
|
99
104
|
expect(clickAnnotationMock).toHaveBeenCalledTimes(1);
|
100
105
|
expect(clickAnnotationMock).toHaveBeenCalledWith(expect.anything(), {
|
@@ -102,26 +107,26 @@ describe('Annotations', () => {
|
|
102
107
|
annotationId: 1,
|
103
108
|
displayNumber: '',
|
104
109
|
hidden: false,
|
105
|
-
length:
|
110
|
+
length: 12,
|
106
111
|
message: '',
|
107
|
-
selectedText: '',
|
108
|
-
startIndex:
|
112
|
+
selectedText: 'moraali että',
|
113
|
+
startIndex: 5
|
109
114
|
});
|
110
115
|
});
|
111
116
|
it('annotations are added to dom when provided', () => {
|
112
117
|
var _a, _b;
|
113
118
|
const annotationProps = {
|
114
119
|
annotations: {
|
115
|
-
[defaultAnnotationAnchor]: [createAnnotation(1,
|
120
|
+
[defaultAnnotationAnchor]: [createAnnotation(1, 5, 7, 'moraali'), createAnnotation(3, 18, 5, 'tavat')]
|
116
121
|
},
|
117
122
|
onClickAnnotation: () => { },
|
118
123
|
onSaveAnnotation: () => { }
|
119
124
|
};
|
120
125
|
const exam = (0, react_1.render)(react_2.default.createElement(Exam_1.default, { ...getExamProps(), ...annotationProps }));
|
121
126
|
expect(exam.container.querySelector('[data-annotation-id="1"]')).toBeInTheDocument();
|
122
|
-
expect((_a = exam.container.querySelector('[data-annotation-id="1"]')) === null || _a === void 0 ? void 0 : _a.textContent).toBe('
|
127
|
+
expect((_a = exam.container.querySelector('[data-annotation-id="1"]')) === null || _a === void 0 ? void 0 : _a.textContent).toBe('moraali');
|
123
128
|
expect(exam.container.querySelector('[data-annotation-id="3"]')).toBeInTheDocument();
|
124
|
-
expect((_b = exam.container.querySelector('[data-annotation-id="3"]')) === null || _b === void 0 ? void 0 : _b.textContent).toBe('
|
129
|
+
expect((_b = exam.container.querySelector('[data-annotation-id="3"]')) === null || _b === void 0 ? void 0 : _b.textContent).toBe('tavat');
|
125
130
|
});
|
126
131
|
it('hidden annotation works correctly', () => {
|
127
132
|
var _a, _b;
|
@@ -132,11 +137,11 @@ describe('Annotations', () => {
|
|
132
137
|
annotationId: 1,
|
133
138
|
annotationAnchor: defaultAnnotationAnchor,
|
134
139
|
hidden: true,
|
135
|
-
startIndex:
|
136
|
-
length:
|
140
|
+
startIndex: 24,
|
141
|
+
length: 8,
|
137
142
|
message: '',
|
138
143
|
displayNumber: '',
|
139
|
-
selectedText: ''
|
144
|
+
selectedText: 'pyrkivät'
|
140
145
|
}
|
141
146
|
]
|
142
147
|
},
|
@@ -149,15 +154,16 @@ describe('Annotations', () => {
|
|
149
154
|
});
|
150
155
|
it('grading instructions can be annotated', async () => {
|
151
156
|
const gi = (0, react_1.render)(react_2.default.createElement(GradingInstructions_1.default, { ...getCommonProps(), annotations: {}, onClickAnnotation: () => { }, onSaveAnnotation: () => { } }));
|
152
|
-
await annotateText(gi,
|
157
|
+
await annotateText(gi, defaultAnnotationAnchor);
|
153
158
|
expect(gi.getByTestId('annotation-popup')).toBeVisible();
|
154
159
|
});
|
155
160
|
it('attachments can be annotated', async () => {
|
161
|
+
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';
|
156
162
|
const gi = (0, react_1.render)(react_2.default.createElement(Attachments_1.default, { ...getCommonProps(), annotations: {}, onClickAnnotation: () => { }, onSaveAnnotation: () => { } }));
|
157
|
-
await annotateText(gi,
|
163
|
+
await annotateText(gi, annotationAnchor_7_A);
|
158
164
|
expect(gi.getByTestId('annotation-popup')).toBeVisible();
|
159
165
|
});
|
160
|
-
function createAnnotation(id, startIndex, length) {
|
166
|
+
function createAnnotation(id, startIndex, length, selectedText) {
|
161
167
|
return {
|
162
168
|
annotationId: id,
|
163
169
|
annotationAnchor: defaultAnnotationAnchor,
|
@@ -166,24 +172,29 @@ describe('Annotations', () => {
|
|
166
172
|
length,
|
167
173
|
message: '',
|
168
174
|
displayNumber: '',
|
169
|
-
selectedText
|
175
|
+
selectedText
|
170
176
|
};
|
171
177
|
}
|
172
|
-
async function annotateText(exam,
|
173
|
-
|
174
|
-
const
|
178
|
+
async function annotateText(exam, elementAnchor, startIndex = 0, length) {
|
179
|
+
const textElement = exam.getByTestId(elementAnchor);
|
180
|
+
const fullText = (textElement === null || textElement === void 0 ? void 0 : textElement.textContent) || '';
|
181
|
+
const annotationLength = length || fullText.length;
|
182
|
+
const text = fullText.substring(startIndex, startIndex + annotationLength);
|
183
|
+
mockWindowSelection(text, textElement, startIndex, annotationLength);
|
175
184
|
await user_event_1.default.click(textElement);
|
176
185
|
}
|
177
|
-
function mockWindowSelection(text = 'mocked selection text',
|
186
|
+
function mockWindowSelection(text = 'mocked selection text', element, startOffset = 0, length) {
|
178
187
|
;
|
179
188
|
window.getSelection.mockImplementation(() => ({
|
180
189
|
toString: () => text,
|
181
190
|
rangeCount: 1,
|
191
|
+
anchorNode: element.firstChild,
|
192
|
+
focusNode: element.firstChild,
|
182
193
|
getRangeAt: jest.fn().mockReturnValue({
|
183
|
-
startOffset
|
184
|
-
endOffset: length,
|
185
|
-
startContainer:
|
186
|
-
endContainer:
|
194
|
+
startOffset,
|
195
|
+
endOffset: startOffset + length,
|
196
|
+
startContainer: element,
|
197
|
+
endContainer: element,
|
187
198
|
cloneContents: jest.fn().mockReturnValue({ children: [], childNodes: [] })
|
188
199
|
})
|
189
200
|
}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"annotations.test.js","sourceRoot":"","sources":["../../__tests__/annotations.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAwE;AACxE,6EAAmD;AACnD,
|
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;AAE/C,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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