@playkit-js/playkit-js-ivq 3.5.0-canary.0-35b2cbd → 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,49 @@
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.5.0-canary.0-35b2cbd (2023-09-18)
5
+ ## 3.5.0-canary.0-1bff02b (2024-01-08)
6
6
 
7
7
 
8
8
  ### Features
9
9
 
10
- * **FEC-13313:** wrap IvqOverlay with OverlayPortal ([#103](https://github.com/kaltura/playkit-js-ivq/issues/103)) ([35b2cbd](https://github.com/kaltura/playkit-js-ivq/commit/35b2cbd))
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
+
12
+
13
+
14
+ ### 3.4.9 (2024-01-07)
15
+
16
+
17
+
18
+ ### 3.4.8 (2024-01-07)
19
+
20
+
21
+
22
+ ### 3.4.7 (2023-12-21)
23
+
24
+
25
+
26
+ ### 3.4.6 (2023-12-21)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * **SUP-40335:** Circumvent "no seek forward" in IVQ ([#112](https://github.com/kaltura/playkit-js-ivq/issues/112)) ([caf2ae5](https://github.com/kaltura/playkit-js-ivq/commit/caf2ae5))
32
+
33
+
34
+
35
+ ### 3.4.5 (2023-12-07)
36
+
37
+
38
+
39
+ ### 3.4.4 (2023-11-28)
40
+
41
+
42
+
43
+ ### 3.4.3 (2023-11-12)
44
+
45
+
46
+
47
+ ### 3.4.2 (2023-10-16)
11
48
 
12
49
 
13
50
 
@@ -8,6 +8,10 @@ export const MANIFEST_SAFARI = `#EXTM3U
8
8
  #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=504265,RESOLUTION=480x272,AUDIO="audio",SUBTITLES="subs"
9
9
  ${location.origin}/media/index.m3u8`;
10
10
 
11
+ Cypress.on('uncaught:exception', (err, runnable) => {
12
+ return false;
13
+ });
14
+
11
15
  export const getPlayer = () => {
12
16
  // @ts-ignore
13
17
  return cy.window().then($win => $win.KalturaPlayer.getPlayers()['player-placeholder']);
@@ -8,7 +8,7 @@ describe('IVQ plugin', () => {
8
8
  cy.intercept('GET', '**/width/164/vid_slices/100', {fixture: '100.jpeg'});
9
9
  cy.intercept('GET', '**/height/360/width/640', {fixture: '640.jpeg'});
10
10
  // kava
11
- cy.intercept('GET', '**/index.php?service=analytics*', {});
11
+ cy.intercept('POST', '**/index.php?service=analytics*', {});
12
12
  });
13
13
 
14
14
  describe('QuizQuestionChanged event', () => {
@@ -8,7 +8,7 @@ describe('IVQ review', () => {
8
8
  cy.intercept('GET', '**/width/164/vid_slices/100', {fixture: '100.jpeg'});
9
9
  cy.intercept('GET', '**/height/360/width/640', {fixture: '640.jpeg'});
10
10
  // kava
11
- cy.intercept('GET', '**/index.php?service=analytics*', {});
11
+ cy.intercept('POST', '**/index.php?service=analytics*', {});
12
12
  });
13
13
 
14
14
  describe('quiz review', () => {
@@ -8,7 +8,7 @@ describe('IVQ plugin', () => {
8
8
  cy.intercept('GET', '**/width/164/vid_slices/100', {fixture: '100.jpeg'});
9
9
  cy.intercept('GET', '**/height/360/width/640', {fixture: '640.jpeg'});
10
10
  // kava
11
- cy.intercept('GET', '**/index.php?service=analytics*', {});
11
+ cy.intercept('POST', '**/index.php?service=analytics*', {});
12
12
  });
13
13
 
14
14
  describe('welcome screen', () => {
@@ -150,7 +150,7 @@ describe('IVQ plugin', () => {
150
150
  mockKalturaBe('quiz_welcome_page_disabled_with_attempt.json', 'cues_4_question.json');
151
151
  loadPlayer({}, {autoplay: true}).then(() => {
152
152
  cy.get('[data-testid="ivqPopupSubmitButton"]').click({force: true});
153
- cy.get('[data-testid="ivqPopupSubmitButton"] [data-testid="ivqSpinner"]').should('exist');
153
+ cy.get('[data-testid="ivqPopupSubmitButton"][aria-busy="true"]').should('exist');
154
154
  cy.wait('@submit');
155
155
  });
156
156
  });
@@ -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
+ ]