itemengine-cypress-automation 1.0.357-IEI-5712-TEM-Validation-d745575.0 → 1.0.359

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.
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.357-IEI-5712-TEM-Validation-d745575.0",
3
+ "version": "1.0.359",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -52,4 +52,4 @@
52
52
  "devDependencies": {
53
53
  "@applitools/eyes-cypress": "^3.47.0"
54
54
  }
55
- }
55
+ }