itemengine-cypress-automation 1.0.418-fixesForFlakySmokeFiles22July-f48fab5.0 → 1.0.419-IEI-6522-failing-cyress-fixes-aac0115.0
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/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +7 -5
- package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +11 -20
- package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +8 -18
- package/cypress/e2e/ILC/ThinkSphere/equationEditorCreateCustomCategory.smoke.js +4 -4
- package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +4 -13
- package/cypress/e2e/ILC/ThinkSphere/gradingViewPlanTabSection.js +4 -0
- package/cypress/e2e/ILC/ThinkSphere/gradingViewReviewTabSection.js +18 -69
- package/cypress/e2e/ILC/ThinkSphere/planPhase.js +10 -9
- package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +20 -36
- package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +7 -16
- package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +12 -7
- package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +14 -13
- package/cypress/e2e/ILC/ThinkSphere/studentViewSolveSection.js +0 -1
- package/cypress/pages/thinkSpherePage.js +138 -103
- package/package.json +1 -1
@@ -147,6 +147,9 @@ const selectors = {
|
|
147
147
|
addNewStrategyButton: () => cy.get('[class*="StrategiesPreviewstyles__AddStrategyButton"]'),
|
148
148
|
strategiesInputBoxEditTab: () => cy.get('.video-upload-support-wrapper .edit-mcq-option-wrapper'),
|
149
149
|
strategiesBoxPreviewTab: () => cy.get('[class*="StrategiesPreviewstyles__ListWrapper"]'),
|
150
|
+
strategyActionButtonWrapper: () => cy.get('[class*="StrategiesPreviewstyles__ActionsButtonWrapper"]'),
|
151
|
+
editStrategyButton: () => cy.get('button[aria-label="Edit strategy"]'),
|
152
|
+
deleteStrategyButton: () => cy.get('button[aria-label="Delete strategy"]'),
|
150
153
|
popupTitle: () => cy.get('[class*="dialog-title-wrapper"]'),
|
151
154
|
strategyNameLabel: () => cy.get('[class*="ThinkSpherePreviewstyles__StrategyNameTextWrapper"]'),
|
152
155
|
strategyNameInputField: () => cy.get('[class*="new-strategy-name-field"]'),
|
@@ -212,14 +215,14 @@ const selectors = {
|
|
212
215
|
cardWrapper: () => cy.get('.card-wrapper'),
|
213
216
|
cardLabel: () => cy.get('.widget-card-label'),
|
214
217
|
thinkSphereQuestionInstructionCKEditor: () => cy.get('div.cke_editable[contenteditable="true"]'),
|
215
|
-
reviewTab: () => cy.get('button[data-label="Review tab"]
|
216
|
-
solveTab: () => cy.get('button[data-label="Solve tab"]
|
217
|
-
planTab: () => cy.get('button[data-label="Plan tab"]
|
218
|
+
reviewTab: () => cy.get('button[data-label="Review tab"]'),
|
219
|
+
solveTab: () => cy.get('button[data-label="Solve tab"]'),
|
220
|
+
planTab: () => cy.get('button[data-label="Plan tab"]'),
|
218
221
|
checkYourMathHeading: () => utilities.getNthElement(cy.get('div[class*="ReviewTabstyles__CheckYourMathTextWrapper"]'), 0),
|
219
222
|
problemAskingToMeTextWrapper: () => utilities.getNthElement(cy.get('div[class*="ReviewTabstyles__ProblemAskingToMeTextWrapper"]'), 0),
|
220
223
|
reviewQuestionWrapper: () => utilities.getNthElement(cy.get('div[class*="ReviewTabstyles__QuestionWrapper"]'), 0),
|
221
224
|
reviewComponentWrapper: () => utilities.getNthElement(cy.get('div[class*="ReviewTabstyles__ComponentWrapper"]'), 0),
|
222
|
-
problemStatementWrapper: () => utilities.getNthElement(cy.get('
|
225
|
+
problemStatementWrapper: () => utilities.getNthElement(cy.get('textarea[class*="ReviewTabstyles__ProblemStatementTextarea"]'), 0),
|
223
226
|
gradingViewRadioButton: () => cy.get('label[aria-label="Grading View"]'),
|
224
227
|
studentViewRadioButton: () => cy.get('label[aria-label="Student View"]'),
|
225
228
|
correctAnswerLabelWrapper: () => cy.get('div[class*="CorrectAnswerLabelWrapper"]'),
|
@@ -632,7 +635,8 @@ const steps = {
|
|
632
635
|
addOption: (list) => {
|
633
636
|
if (list === 'strategy') {
|
634
637
|
thinkSpherePage.planStrategyAddItemButton()
|
635
|
-
.click()
|
638
|
+
.click()
|
639
|
+
.trigger('mouseout', { force: true });
|
636
640
|
} else {
|
637
641
|
thinkSpherePage.planSentenceStarterAddItemButton()
|
638
642
|
.click()
|
@@ -984,23 +988,21 @@ const steps = {
|
|
984
988
|
},
|
985
989
|
|
986
990
|
verifyCategoryCharactersAndUnSelectedState: (arrayOfSymbolsAriaLabel) => {
|
991
|
+
const unselectedCategoriesStartingIndex = 11; // Starting index for unselected categories
|
987
992
|
thinkSpherePage.categoryCharacters()
|
988
993
|
.then(($symbols) => {
|
989
|
-
arrayOfSymbolsAriaLabel.
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
.
|
996
|
-
.
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
});
|
1002
|
-
}
|
1003
|
-
});
|
994
|
+
for (let index = unselectedCategoriesStartingIndex; index < arrayOfSymbolsAriaLabel.length - 1; index++) {
|
995
|
+
editCategoryFlyout.categoryCharacters()
|
996
|
+
.eq(index)
|
997
|
+
.should('not.have.class', 'Mui-selected')
|
998
|
+
.invoke('attr', 'aria-label')
|
999
|
+
.then((ariaLabel) => {
|
1000
|
+
const tooltipText = ariaLabel.split(' ').slice(0, -1).join(' ');
|
1001
|
+
editCategoryFlyout.categoryCharacters()
|
1002
|
+
.eq(index)
|
1003
|
+
.verifyTooltip(tooltipText);
|
1004
|
+
});
|
1005
|
+
}
|
1004
1006
|
});
|
1005
1007
|
},
|
1006
1008
|
|
@@ -1183,6 +1185,13 @@ const steps = {
|
|
1183
1185
|
});
|
1184
1186
|
},
|
1185
1187
|
|
1188
|
+
addNewStrategy: (strategyName) => {
|
1189
|
+
utilities.getNthElement(thinkSpherePage.addNewStrategyButton(), 0).click();
|
1190
|
+
thinkSpherePage.strategyNameInputField().type(strategyName);
|
1191
|
+
thinkSpherePage.addStrategyPopupSaveButton().click();
|
1192
|
+
cy.wait(2000);
|
1193
|
+
},
|
1194
|
+
|
1186
1195
|
verifyAddNewStrategyPopupSaveFunctionality: () => {
|
1187
1196
|
let countBeforeOpeningPopup, countAfterClosingPopup;
|
1188
1197
|
thinkSpherePage.strategiesBoxPreviewTab()
|
@@ -1258,27 +1267,43 @@ const steps = {
|
|
1258
1267
|
});
|
1259
1268
|
},
|
1260
1269
|
|
1261
|
-
verifyProblemAskingMicSection: (isGrading
|
1270
|
+
verifyProblemAskingMicSection: (isGrading=false) => {
|
1262
1271
|
thinkSpherePage.problemAskingWrapper()
|
1263
1272
|
.within(() => {
|
1264
1273
|
utilities.verifyElementVisibilityState(thinkSpherePage.micIconWrapper(), 'visible');
|
1265
|
-
utilities.verifyElementAttribute(thinkSpherePage.micIconWrapper(), '
|
1274
|
+
utilities.verifyElementAttribute(thinkSpherePage.micIconWrapper(), 'role', 'button');
|
1266
1275
|
utilities.verifyElementAttribute(thinkSpherePage.micIconWrapper(), 'aria-label', 'Mic button');
|
1267
|
-
if
|
1276
|
+
if(isGrading) {
|
1268
1277
|
utilities.verifyElementAttribute(thinkSpherePage.micIconWrapper(), 'tabindex', -1);
|
1269
1278
|
}
|
1270
1279
|
});
|
1271
1280
|
},
|
1272
1281
|
|
1273
1282
|
verifyProblemAskingTextAreaFunctionality: (textToEnter) => {
|
1274
|
-
thinkSpherePage.problemAskingWrapper()
|
1275
|
-
.eq(0)
|
1283
|
+
utilities.getNthElement(thinkSpherePage.problemAskingWrapper(), 0)
|
1276
1284
|
.within(() => {
|
1277
1285
|
thinkSpherePage.contentEditableDiv().type(textToEnter);
|
1278
1286
|
thinkSpherePage.contentEditableDiv().should('have.value', textToEnter);
|
1279
1287
|
});
|
1280
1288
|
},
|
1281
1289
|
|
1290
|
+
verifyProblemAskingTextAreaValue: (textToCheck) => {
|
1291
|
+
utilities.getNthElement(thinkSpherePage.problemStatementWrapper(), 0).should('have.value', textToCheck);
|
1292
|
+
},
|
1293
|
+
|
1294
|
+
verifyNewlyAddedStrategyEditDeleteButtonDisableState: () => {
|
1295
|
+
const newlyAddedStrategyIndex = 5;
|
1296
|
+
utilities.getNthElement(thinkSpherePage.strategiesBoxPreviewTab(), newlyAddedStrategyIndex)
|
1297
|
+
.within(() => {
|
1298
|
+
thinkSpherePage.editStrategyButton()
|
1299
|
+
.should('have.attr', 'tabindex', '-1')
|
1300
|
+
.should('be.disabled');
|
1301
|
+
thinkSpherePage.deleteStrategyButton()
|
1302
|
+
.should('have.attr', 'tabindex', '-1')
|
1303
|
+
.should('be.disabled');
|
1304
|
+
});
|
1305
|
+
},
|
1306
|
+
|
1282
1307
|
verifyStrategiesToPlanHeading: () => {
|
1283
1308
|
thinkSpherePage.strategiesToPlanWrapper()
|
1284
1309
|
.within(() => {
|
@@ -1303,16 +1328,16 @@ const steps = {
|
|
1303
1328
|
});
|
1304
1329
|
},
|
1305
1330
|
|
1306
|
-
verifyWritePlanMicSection: (isGrading
|
1331
|
+
verifyWritePlanMicSection: (isGrading=false) => {
|
1307
1332
|
thinkSpherePage.writePlanWrapper()
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1333
|
+
.within(() => {
|
1334
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.micIconWrapper(), 'visible');
|
1335
|
+
utilities.verifyElementAttribute(thinkSpherePage.micIconWrapper(), 'role', 'button');
|
1336
|
+
utilities.verifyElementAttribute(thinkSpherePage.micIconWrapper(), 'aria-label', 'Mic button');
|
1337
|
+
if(isGrading) {
|
1338
|
+
utilities.verifyElementAttribute(thinkSpherePage.micIconWrapper(), 'tabindex', -1);
|
1339
|
+
}
|
1340
|
+
});
|
1316
1341
|
},
|
1317
1342
|
|
1318
1343
|
verifyWritePlanTextAreaFunctionality: (planTextToEnter) => {
|
@@ -1381,8 +1406,8 @@ const steps = {
|
|
1381
1406
|
.click();
|
1382
1407
|
},
|
1383
1408
|
|
1384
|
-
clickOnYourPlanButton: () => {
|
1385
|
-
|
1409
|
+
clickOnYourPlanButton : () => {
|
1410
|
+
thinkSpherePage.yourPlanButton()
|
1386
1411
|
.click();
|
1387
1412
|
},
|
1388
1413
|
|
@@ -1405,7 +1430,7 @@ const steps = {
|
|
1405
1430
|
cy.wait(2000);
|
1406
1431
|
},
|
1407
1432
|
|
1408
|
-
submitResponseAndGotoGradingView: () => {
|
1433
|
+
submitResponseAndGotoGradingView : () => {
|
1409
1434
|
thinkSpherePage.submitButton().click();
|
1410
1435
|
thinkSpherePage.goToGradingViewButton().click();
|
1411
1436
|
},
|
@@ -1418,16 +1443,17 @@ const steps = {
|
|
1418
1443
|
thinkSpherePage.contentEditableDiv().type('This is a test text for the problem.');
|
1419
1444
|
});
|
1420
1445
|
thinkSpherePage.strategyChip().click();
|
1446
|
+
thinkSpherePage.steps.addNewStrategy('new strategy');
|
1421
1447
|
thinkSpherePage.submitButton().click();
|
1422
1448
|
thinkSpherePage.goToGradingViewButton().click();
|
1423
1449
|
},
|
1424
1450
|
|
1425
1451
|
verifyAddStrategiesButtonDisabled: () => {
|
1426
1452
|
thinkSpherePage.addNewStrategyButton().should('have.attr', 'tabindex', '-1');
|
1427
|
-
|
1428
|
-
|
1453
|
+
thinkSpherePage.addNewStrategyButton().click({ force: true });
|
1454
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.popupTitle(), 'notExist');
|
1429
1455
|
},
|
1430
|
-
|
1456
|
+
|
1431
1457
|
verifyStrategiesListButtonDisabled: () => {
|
1432
1458
|
utilities.getNthElement(thinkSpherePage.strategiesPreviewListLI(), 0).should('have.attr', 'tabindex', '-1');
|
1433
1459
|
utilities.getNthElement(thinkSpherePage.strategiesPreviewListLI(), 0).should('have.attr', 'aria-disabled', 'true');
|
@@ -1446,7 +1472,7 @@ const steps = {
|
|
1446
1472
|
},
|
1447
1473
|
|
1448
1474
|
verifyDisabledWriteYourPlanTextContainer: (textToEnter) => {
|
1449
|
-
|
1475
|
+
thinkSpherePage.writePlanWrapper()
|
1450
1476
|
.within(() => {
|
1451
1477
|
thinkSpherePage.contentEditableDiv().should('have.attr', 'readonly');
|
1452
1478
|
thinkSpherePage.contentEditableDiv().should('have.value', textToEnter);
|
@@ -1514,7 +1540,7 @@ const steps = {
|
|
1514
1540
|
.should('have.attr', 'disabled');
|
1515
1541
|
},
|
1516
1542
|
|
1517
|
-
verifyYourPlanButtonInDisableState: () => {
|
1543
|
+
verifyYourPlanButtonInDisableState : () => {
|
1518
1544
|
thinkSpherePage.yourPlanButton()
|
1519
1545
|
.should('have.attr', 'disabled');
|
1520
1546
|
},
|
@@ -1620,7 +1646,7 @@ const steps = {
|
|
1620
1646
|
|
1621
1647
|
verifyWhiteBoardPlayerPauseButtonVisible: () => {
|
1622
1648
|
thinkSpherePage.whiteboardPlaybackPauseButton()
|
1623
|
-
|
1649
|
+
.should('be.visible')
|
1624
1650
|
cy.wait(1000);
|
1625
1651
|
},
|
1626
1652
|
|
@@ -2188,7 +2214,7 @@ const tests = {
|
|
2188
2214
|
verifyVideoLinkComponent: () => {
|
2189
2215
|
it('Video link component should be displayed', () => {
|
2190
2216
|
utilities.verifyElementVisibilityState(thinkSpherePage.videoLinkComponent(), 'visible');
|
2191
|
-
utilities.verifyInnerText(thinkSpherePage.videoLinkComponent(), '
|
2217
|
+
utilities.verifyInnerText(thinkSpherePage.videoLinkComponent(), 'Create_a_model');
|
2192
2218
|
});
|
2193
2219
|
|
2194
2220
|
it('CSS of video link component', { tags: 'css' }, () => {
|
@@ -2520,19 +2546,19 @@ const tests = {
|
|
2520
2546
|
});
|
2521
2547
|
},
|
2522
2548
|
|
2523
|
-
|
2524
|
-
|
2525
|
-
|
2526
|
-
|
2527
|
-
|
2528
|
-
|
2529
|
-
|
2530
|
-
|
2531
|
-
|
2532
|
-
|
2533
|
-
|
2534
|
-
|
2535
|
-
*/
|
2549
|
+
/**
|
2550
|
+
* Verifies default visibility, selection, and behavior of whiteboard tools and their subtools.
|
2551
|
+
*
|
2552
|
+
* @param {Array<Object>} whiteBoardTools - An array of tool objects, where each object contains:
|
2553
|
+
* @param {string} whiteBoardTools[].name - Display name of the tool.
|
2554
|
+
* @param {string} whiteBoardTools[].dataTestId - The `data-testid` used to locate the tool in the DOM.
|
2555
|
+
* @param {boolean} [whiteBoardTools[].isDefault] - Whether the tool is visible by default.
|
2556
|
+
* @param {string[]} [whiteBoardTools[].subToolS] - An array of subtool identifiers (data-testid, data-name, or class).
|
2557
|
+
* @param {string} [whiteBoardTools[].popupSelector] - A selector used to locate popup elements that appear after tool interaction.
|
2558
|
+
* @param {string[]} [whiteBoardTools[].popupContent] - Optional array of class names used to verify the popup’s inner content.
|
2559
|
+
*
|
2560
|
+
* @param {string[]} editSectionWhiteBoardToolButtons - A list of tool names that will be enabled during edit phase.
|
2561
|
+
*/
|
2536
2562
|
|
2537
2563
|
verifyAllDefaultToolIds: (whiteBoardTools, editSectionWhiteBoardToolButtons) => {
|
2538
2564
|
const allToolIds = whiteBoardTools.map(tool => tool.dataTestId);
|
@@ -2554,50 +2580,50 @@ const tests = {
|
|
2554
2580
|
verifyWhiteBoardSubTools: (whiteBoardTools) => {
|
2555
2581
|
whiteBoardTools.forEach((tool) => {
|
2556
2582
|
it(`When user clicks on "${tool.name}" tool it should display its sub tools`, () => {
|
2557
|
-
|
2558
|
-
|
2559
|
-
|
2560
|
-
|
2561
|
-
|
2583
|
+
// Click the main tool by data-testid
|
2584
|
+
cy.get(`[data-testid="${tool.dataTestId}"]`)
|
2585
|
+
.and('be.visible')
|
2586
|
+
.first()
|
2587
|
+
.click({ force: true }) // force in case some are behind overlays
|
2562
2588
|
cy.wait(1000); // Wait for any animations or transitions to complete
|
2589
|
+
|
2590
|
+
// If the tool has subtools, verify each
|
2591
|
+
if (tool.subToolS && tool.subToolS.length > 0) {
|
2592
|
+
tool.subToolS.forEach((subTool) => {
|
2593
|
+
// Try data-testid first, fall back to data-name if needed
|
2594
|
+
cy.get(`[data-testid="${subTool}"], [data-name="${subTool}"], [class*="${subTool}"]`)
|
2595
|
+
.should('exist')
|
2596
|
+
.and('be.visible');
|
2597
|
+
});
|
2598
|
+
}
|
2563
2599
|
|
2564
|
-
|
2565
|
-
|
2566
|
-
|
2567
|
-
|
2568
|
-
|
2569
|
-
|
2570
|
-
|
2571
|
-
});
|
2600
|
+
if(tool.popupSelector) {
|
2601
|
+
// Verify the popup selector if it exists
|
2602
|
+
if(tool.popupSelector === 'eraser-width-picker') {
|
2603
|
+
cy.get(`[data-name="ERASER_THICKNESS"]`)
|
2604
|
+
.should('exist')
|
2605
|
+
.and('be.visible')
|
2606
|
+
.first()
|
2607
|
+
.click({ force: true });
|
2608
|
+
cy.get(`[class*="${tool.popupSelector}"]`).should('exist').and('be.visible');
|
2609
|
+
} else {
|
2610
|
+
cy.get(`[data-testid="${tool.popupSelector}"]`).should('exist').and('be.visible');
|
2572
2611
|
}
|
2573
|
-
|
2574
|
-
|
2575
|
-
|
2576
|
-
|
2577
|
-
|
2578
|
-
.should('exist')
|
2579
|
-
.and('be.visible')
|
2580
|
-
.first()
|
2581
|
-
.click({ force: true });
|
2582
|
-
cy.get(`[class*="${tool.popupSelector}"]`).should('exist').and('be.visible');
|
2583
|
-
} else {
|
2584
|
-
cy.get(`[data-testid="${tool.popupSelector}"]`).should('exist').and('be.visible');
|
2585
|
-
}
|
2586
|
-
if (tool.popupContent) {
|
2587
|
-
// Verify the content inside the popup
|
2588
|
-
tool.popupContent.forEach((content) => {
|
2589
|
-
cy.get(`[class="${content}"]`).should('exist').and('be.visible');
|
2590
|
-
});
|
2591
|
-
}
|
2612
|
+
if(tool.popupContent) {
|
2613
|
+
// Verify the content inside the popup
|
2614
|
+
tool.popupContent.forEach((content) => {
|
2615
|
+
cy.get(`[class="${content}"]`).should('exist').and('be.visible');
|
2616
|
+
});
|
2592
2617
|
}
|
2618
|
+
}
|
2593
2619
|
|
2594
|
-
|
2595
|
-
|
2596
|
-
|
2597
|
-
|
2598
|
-
|
2620
|
+
if(tool.name === 'simple calculator' || tool.name ==='scientific calculator') {
|
2621
|
+
cy.get(`[data-testid="${tool.dataTestId}"]`)
|
2622
|
+
.and('be.visible')
|
2623
|
+
.first()
|
2624
|
+
.click({ force: true }) // force in case some are behind overlays
|
2599
2625
|
cy.wait(1000);
|
2600
|
-
|
2626
|
+
}
|
2601
2627
|
});
|
2602
2628
|
});
|
2603
2629
|
},
|
@@ -2714,13 +2740,13 @@ const tests = {
|
|
2714
2740
|
.eq(0)
|
2715
2741
|
.check()
|
2716
2742
|
.should('be.checked');
|
2717
|
-
|
2743
|
+
|
2718
2744
|
thinkSpherePage.yourPlanStrategiesList()
|
2719
2745
|
.find('input[type="checkbox"]')
|
2720
2746
|
.eq(2)
|
2721
2747
|
.check()
|
2722
2748
|
.should('be.checked');
|
2723
|
-
|
2749
|
+
|
2724
2750
|
// Uncheck first strategy option
|
2725
2751
|
thinkSpherePage.yourPlanStrategiesList()
|
2726
2752
|
.find('input[type="checkbox"]')
|
@@ -2747,21 +2773,22 @@ const tests = {
|
|
2747
2773
|
'justify-content': 'space-between',
|
2748
2774
|
'align-items': 'center',
|
2749
2775
|
});
|
2750
|
-
|
2776
|
+
|
2751
2777
|
utilities.verifyCSS(thinkSpherePage.yourPlanHeadingLabel(), {
|
2752
2778
|
'font-size': css.fontSize.huge,
|
2753
2779
|
'font-weight': css.fontWeight.bold,
|
2754
2780
|
'color': css.color.panelLabel,
|
2755
2781
|
});
|
2756
|
-
|
2782
|
+
|
2757
2783
|
utilities.verifyCSS(thinkSpherePage.yourPlanStrategiesList(), {
|
2758
2784
|
'padding': '0px',
|
2759
2785
|
'margin': '0px 0px 24px'
|
2760
2786
|
});
|
2761
2787
|
});
|
2762
|
-
|
2788
|
+
|
2763
2789
|
it('Accessibility of Your Plan section', { tags: 'a11y' }, () => {
|
2764
2790
|
cy.checkAccessibility(thinkSpherePage.yourPlanContainer());
|
2791
|
+
thinkSpherePage.yourPlanCloseButton().click();
|
2765
2792
|
});
|
2766
2793
|
},
|
2767
2794
|
|
@@ -2818,7 +2845,7 @@ const tests = {
|
|
2818
2845
|
thinkSpherePage.steps.clickOnRecordingOrPauseButton();
|
2819
2846
|
thinkSpherePage.steps.verifyRecordingStatus('Paused');
|
2820
2847
|
});
|
2821
|
-
|
2848
|
+
|
2822
2849
|
it('When the user click on Plan, or Review tab while recording, it should show a warning popup to the user', () => {
|
2823
2850
|
thinkSpherePage.steps.clickOnRecordingOrPauseButton();
|
2824
2851
|
thinkSpherePage.steps.clickOnReviewTab();
|
@@ -2827,7 +2854,6 @@ const tests = {
|
|
2827
2854
|
thinkSpherePage.steps.clickOnPlanTab();
|
2828
2855
|
thinkSpherePage.steps.verifyWhiteboardWarningHeaderText('Recording in Progress');
|
2829
2856
|
thinkSpherePage.steps.verifyWhiteboardWarningDescriptionText("You're currently recording your work. To avoid losing progress, please return and click Stop to save the recording.");
|
2830
|
-
thinkSpherePage.steps.clickOnCancelButtonInDialogBox()
|
2831
2857
|
});
|
2832
2858
|
|
2833
2859
|
it('CSS of Recording in Progress warning', { tags: 'css' }, () => {
|
@@ -2851,7 +2877,7 @@ const tests = {
|
|
2851
2877
|
// 'background-color': css.color.primaryBtnBg
|
2852
2878
|
});
|
2853
2879
|
});
|
2854
|
-
|
2880
|
+
|
2855
2881
|
it('Accessibility of whiteboard warning popup', { tags: 'a11y' }, () => {
|
2856
2882
|
cy.checkAccessibility(thinkSpherePage.whiteboardRecordingInProgressWarning());
|
2857
2883
|
thinkSpherePage.steps.clickOnWhiteBoardRecordingInProgressWarningOkButton();
|
@@ -2859,6 +2885,12 @@ const tests = {
|
|
2859
2885
|
|
2860
2886
|
|
2861
2887
|
it('The user should be able to switch to Review tab without warning after stopping the recording and the Review tab should contain the Playback option', () => {
|
2888
|
+
cy.get(`[data-testid="${whiteBoardTools[0].dataTestId}"]`)
|
2889
|
+
.should('exist')
|
2890
|
+
.and('be.visible')
|
2891
|
+
.first()
|
2892
|
+
.click({ force: true });
|
2893
|
+
cy.get('.upper-canvas').click({ force: true });
|
2862
2894
|
cy.wait(1000);
|
2863
2895
|
thinkSpherePage.steps.clickOnStopButton();
|
2864
2896
|
thinkSpherePage.steps.clickOnReviewTab();
|
@@ -2875,6 +2907,9 @@ const tests = {
|
|
2875
2907
|
thinkSpherePage.steps.verifyWhiteBoardPlayerPlayButtonVisible();
|
2876
2908
|
thinkSpherePage.steps.clickOnWhiteBoardPlaybackPlayButton();
|
2877
2909
|
thinkSpherePage.steps.verifyWhiteBoardPlayerPauseButtonVisible();
|
2910
|
+
cy.wait(6000); // Wait for the playback to start
|
2911
|
+
thinkSpherePage.steps.clickOnWhiteBoardPlaybackPlayButton();
|
2912
|
+
cy.wait(1000);
|
2878
2913
|
thinkSpherePage.steps.verifyWhiteBoardPlayerTimeStatus('00:01');
|
2879
2914
|
});
|
2880
2915
|
|