@playkit-js/playkit-js-ivq 3.4.10-canary.0-8c6b65d → 3.5.0-canary.0-1bff02b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ### 3.4.10-canary.0-8c6b65d (2024-01-08)
5
+ ## 3.5.0-canary.0-1bff02b (2024-01-08)
6
6
 
7
7
 
8
- ### Bug Fixes
8
+ ### Features
9
9
 
10
- * **FEC-13595:** IVQ popup changes (FEC-13593) ([#114](https://github.com/kaltura/playkit-js-ivq/issues/114)) ([8c6b65d](https://github.com/kaltura/playkit-js-ivq/commit/8c6b65d))
10
+ * **FEC-13597:** add the ability to seek for submitted quiz ([#115](https://github.com/kaltura/playkit-js-ivq/issues/115)) ([1bff02b](https://github.com/kaltura/playkit-js-ivq/commit/1bff02b))
11
11
 
12
12
 
13
13
 
@@ -166,4 +166,29 @@ describe('IVQ plugin', () => {
166
166
  });
167
167
  });
168
168
  });
169
+
170
+ describe('quiz seek functionality', () => {
171
+ it('should prevent seek', () => {
172
+ mockKalturaBe('ivq_QuizQuestionChanged_event/quiz_ban_seek_enabled.json');
173
+ loadPlayer({}, {autoplay: true}).then(player => {
174
+ player.pause();
175
+ player.currentTime = 15;
176
+ cy.get('.playkit-time-display > span').should($div => {
177
+ expect($div.text()).to.not.contain('00:15');
178
+ });
179
+ });
180
+ });
181
+
182
+ it('should allow seek to submitted quiz', () => {
183
+ mockKalturaBe('quiz_ban_seek_no_retake.json');
184
+ loadPlayer({}, {autoplay: true}).then(player => {
185
+ player.pause();
186
+ cy.get('[data-testid="ivqPopupRoot"]').should('exist');
187
+ player.currentTime = 15;
188
+ cy.get('.playkit-time-display > span').should($div => {
189
+ expect($div.text()).to.contain('00:15');
190
+ });
191
+ });
192
+ });
193
+ });
169
194
  });
@@ -0,0 +1,47 @@
1
+ [
2
+ {
3
+ "partnerId": 1091,
4
+ "ks": "",
5
+ "userId": 0,
6
+ "objectType": "KalturaStartWidgetSessionResponse"
7
+ },
8
+ {
9
+ "objects": [
10
+ {
11
+ "score": 1,
12
+ "calculatedScore": 1,
13
+ "version": 0,
14
+ "id": 4184809572,
15
+ "entryId": "1_y8dwntss",
16
+ "userId": "lian.binyamin@kaltura.com",
17
+ "partnerId": 3188353,
18
+ "status": "quiz.3",
19
+ "createdAt": 1704187674,
20
+ "updatedAt": 1704187756,
21
+ "type": "quiz.QUIZ",
22
+ "objectType": "KalturaQuizUserEntry"
23
+ }
24
+ ],
25
+ "totalCount": 1,
26
+ "objectType": "KalturaUserEntryListResponse"
27
+ },
28
+ {
29
+ "version": 4,
30
+ "uiAttributes": [
31
+ {"key": "welcomeMessage", "value": "In this video, you will be given a Quiz. Good Luck!", "objectType": "KalturaKeyValue"},
32
+ {"key": "noSeekAlertText", "value": "", "objectType": "KalturaKeyValue"},
33
+ {"key": "inVideoTip", "value": "true", "objectType": "KalturaKeyValue"},
34
+ {"key": "showWelcomePage", "value": "false", "objectType": "KalturaKeyValue"},
35
+ {"key": "canSkip", "value": "true", "objectType": "KalturaKeyValue"},
36
+ {"key": "banSeek", "value": "true", "objectType": "KalturaKeyValue"}
37
+ ],
38
+ "allowAnswerUpdate": true,
39
+ "showCorrectAfterSubmission": true,
40
+ "allowDownload": true,
41
+ "showGradeAfterSubmission": true,
42
+ "attemptsAllowed": 0,
43
+ "scoreType": 3,
44
+ "objectType": "KalturaQuiz"
45
+ },
46
+ {"objects": [], "totalCount": 0, "objectType": "KalturaCuePointListResponse"}
47
+ ]