itemengine-cypress-automation 1.0.358-IEI-5712-TEM-Validation-172d7bc.0 → 1.0.360-thinksphere-q2-ccd97ed.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/BrowseItems/browseReviewItems.js +10 -4
- package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItems.js +4 -3
- package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItemsMobileView.js +4 -3
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +4 -3
- package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +158 -14
- package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +166 -7
- package/cypress/e2e/ILC/ThinkSphere/planPhase.js +326 -3
- package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +541 -0
- package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +4 -4
- package/cypress/fixtures/theme/ilc.json +5 -1
- package/cypress/fixtures/uploads/sample.webm +0 -0
- package/cypress/fixtures/uploads/sample.wmv +0 -0
- package/cypress/fixtures/uploads/sample30MB.mp4 +0 -0
- package/cypress/pages/components/additionalSettingsPanel.js +2 -2
- package/cypress/pages/thinkSpherePage.js +290 -38
- package/cypress/support/helpers/createItem.js +647 -17
- package/cypress/support/helpers/utilities.js +21 -1
- package/package.json +1 -1
@@ -234,7 +234,27 @@ const utilities = {
|
|
234
234
|
*/
|
235
235
|
verifyInputFieldValue: (selector, value) => {
|
236
236
|
selector.should('have.value', value);
|
237
|
-
}
|
237
|
+
},
|
238
|
+
|
239
|
+
/**
|
240
|
+
* Verifies that the input field with the specified selector has the expected attribute.
|
241
|
+
* @param {*} selector - The Cypress selector representing the element.
|
242
|
+
* @param {string} attribute - The desired attribute which needs to be check.
|
243
|
+
* @param {string} value - The expected attribute value.
|
244
|
+
* @returns {null} - Returns null as the verification is done through assertions.
|
245
|
+
*/
|
246
|
+
verifyElementAttribute: (selector, attribute, value) => {
|
247
|
+
selector.should('have.attr', attribute, value);
|
248
|
+
},
|
249
|
+
|
250
|
+
/**
|
251
|
+
* Click on the body of the document.
|
252
|
+
* @returns {null} - Returns null as the verification is done through assertions.
|
253
|
+
*/
|
254
|
+
clickOnBody: () => {
|
255
|
+
cy.get('body')
|
256
|
+
.click();
|
257
|
+
},
|
238
258
|
}
|
239
259
|
|
240
260
|
export default utilities
|