@forsakringskassan/devindex-menu 1.10.0 → 2.0.1

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.
@@ -3,6 +3,7 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
7
  var __export = (target, all) => {
7
8
  for (var name in all)
8
9
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -16,8 +17,9 @@ var __copyProps = (to, from, except, desc) => {
16
17
  return to;
17
18
  };
18
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
19
21
 
20
- // src/pageobjects/pageobjects.ts
22
+ // src/pageobjects.ts
21
23
  var pageobjects_exports = {};
22
24
  __export(pageobjects_exports, {
23
25
  DevindexPageObject: () => DevindexPageObject
@@ -27,6 +29,8 @@ module.exports = __toCommonJS(pageobjects_exports);
27
29
  // src/pageobjects/Devindex.pageobject.ts
28
30
  var DevindexPageObject = class {
29
31
  constructor() {
32
+ __publicField(this, "selector");
33
+ __publicField(this, "el");
30
34
  this.selector = ".secret-menu";
31
35
  this.el = () => cy.get(this.selector);
32
36
  }
@@ -36,4 +40,12 @@ var DevindexPageObject = class {
36
40
  valj(id, value) {
37
41
  cy.get(`#${id}`).select(value);
38
42
  }
43
+ /**
44
+ * Inputs text into a text field.
45
+ * @param name - The name of the text field.
46
+ * @param value - The text to input.
47
+ */
48
+ textField(name, value) {
49
+ cy.get(`input[name="${name}"]`).clear().type(value);
50
+ }
39
51
  };