@commercetools-frontend/cypress 22.14.2 → 22.14.3

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.
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
3
4
  var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
4
5
  var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
5
6
  var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
@@ -17,11 +18,11 @@ var uuid = require('uuid');
17
18
  var ssr = require('@commercetools-frontend/application-shell/ssr');
18
19
  var constants = require('../../dist/constants-c657705e.cjs.dev.js');
19
20
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
20
- var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
21
21
  var _reduceRightInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reduce-right');
22
22
 
23
23
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
24
24
 
25
+ var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
25
26
  var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
26
27
  var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
27
28
  var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
@@ -34,7 +35,6 @@ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInsta
34
35
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
35
36
  var _URL__default = /*#__PURE__*/_interopDefault(_URL);
36
37
  var semver__default = /*#__PURE__*/_interopDefault(semver);
37
- var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
38
38
  var _reduceRightInstanceProperty__default = /*#__PURE__*/_interopDefault(_reduceRightInstanceProperty);
39
39
 
40
40
  function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -465,3 +465,16 @@ Cypress.Commands.add('showNavigationSubmenuItems', menuItemTextMatcher => {
465
465
  // Refers to the custom command "hover"
466
466
  .hover();
467
467
  });
468
+
469
+ // https://github.com/cypress-io/cypress/issues/136#issuecomment-342391119
470
+ Cypress.Commands.add('getIframeBody', {
471
+ prevSubject: 'element'
472
+ },
473
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
474
+ $iframe => {
475
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
476
+ return new Cypress.Promise(resolve => {
477
+ var _context;
478
+ resolve(_findInstanceProperty__default["default"](_context = $iframe.contents()).call(_context, 'body'));
479
+ });
480
+ });
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
3
4
  var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
4
5
  var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
5
6
  var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
@@ -17,11 +18,11 @@ var uuid = require('uuid');
17
18
  var ssr = require('@commercetools-frontend/application-shell/ssr');
18
19
  var constants = require('../../dist/constants-8ad2a50e.cjs.prod.js');
19
20
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
20
- var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
21
21
  var _reduceRightInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reduce-right');
22
22
 
23
23
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
24
24
 
25
+ var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
25
26
  var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
26
27
  var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
27
28
  var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
@@ -34,7 +35,6 @@ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInsta
34
35
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
35
36
  var _URL__default = /*#__PURE__*/_interopDefault(_URL);
36
37
  var semver__default = /*#__PURE__*/_interopDefault(semver);
37
- var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
38
38
  var _reduceRightInstanceProperty__default = /*#__PURE__*/_interopDefault(_reduceRightInstanceProperty);
39
39
 
40
40
  function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -465,3 +465,16 @@ Cypress.Commands.add('showNavigationSubmenuItems', menuItemTextMatcher => {
465
465
  // Refers to the custom command "hover"
466
466
  .hover();
467
467
  });
468
+
469
+ // https://github.com/cypress-io/cypress/issues/136#issuecomment-342391119
470
+ Cypress.Commands.add('getIframeBody', {
471
+ prevSubject: 'element'
472
+ },
473
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
474
+ $iframe => {
475
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
476
+ return new Cypress.Promise(resolve => {
477
+ var _context;
478
+ resolve(_findInstanceProperty__default["default"](_context = $iframe.contents()).call(_context, 'body'));
479
+ });
480
+ });
@@ -1,3 +1,4 @@
1
+ import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
1
2
  import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
2
3
  import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
3
4
  import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
@@ -15,7 +16,6 @@ import { v4 } from 'uuid';
15
16
  import { buildOidcScope } from '@commercetools-frontend/application-shell/ssr';
16
17
  import { O as OIDC_RESPONSE_TYPES, S as STORAGE_KEYS } from '../../dist/constants-18b165fc.esm.js';
17
18
  import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
18
- import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
19
19
  import _reduceRightInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/reduce-right';
20
20
 
21
21
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -446,3 +446,16 @@ Cypress.Commands.add('showNavigationSubmenuItems', menuItemTextMatcher => {
446
446
  // Refers to the custom command "hover"
447
447
  .hover();
448
448
  });
449
+
450
+ // https://github.com/cypress-io/cypress/issues/136#issuecomment-342391119
451
+ Cypress.Commands.add('getIframeBody', {
452
+ prevSubject: 'element'
453
+ },
454
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
455
+ $iframe => {
456
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
457
+ return new Cypress.Promise(resolve => {
458
+ var _context;
459
+ resolve(_findInstanceProperty(_context = $iframe.contents()).call(_context, 'body'));
460
+ });
461
+ });
@@ -45,5 +45,13 @@ declare namespace Cypress {
45
45
  // https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html#import-types
46
46
  menuItemTextMatcher: import('./dist/commercetools-frontend-cypress-add-commands.cjs').Matcher
47
47
  ): Chainable<Subject>;
48
+
49
+ /**
50
+ * Returns the body of the chained iframe element
51
+ *
52
+ * @example
53
+ * cy.get('#iframe-id').getIframeBody()
54
+ */
55
+ getIframeBody(): Chainable<Subject>;
48
56
  }
49
57
  }
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var constants = require('./constants-c657705e.cjs.dev.js');
6
6
 
7
7
  // NOTE: This string will be replaced on build time with the package version.
8
- var version = "22.14.2";
8
+ var version = "22.14.3";
9
9
 
10
10
  exports.OIDC_RESPONSE_TYPES = constants.OIDC_RESPONSE_TYPES;
11
11
  exports.STORAGE_KEYS = constants.STORAGE_KEYS;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var constants = require('./constants-8ad2a50e.cjs.prod.js');
6
6
 
7
7
  // NOTE: This string will be replaced on build time with the package version.
8
- var version = "22.14.2";
8
+ var version = "22.14.3";
9
9
 
10
10
  exports.OIDC_RESPONSE_TYPES = constants.OIDC_RESPONSE_TYPES;
11
11
  exports.STORAGE_KEYS = constants.STORAGE_KEYS;
@@ -1,6 +1,6 @@
1
1
  export { O as OIDC_RESPONSE_TYPES, S as STORAGE_KEYS } from './constants-18b165fc.esm.js';
2
2
 
3
3
  // NOTE: This string will be replaced on build time with the package version.
4
- var version = "22.14.2";
4
+ var version = "22.14.3";
5
5
 
6
6
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/cypress",
3
- "version": "22.14.2",
3
+ "version": "22.14.3",
4
4
  "description": "Cypress commands and utilities for Custom Applications",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -41,8 +41,8 @@
41
41
  "dependencies": {
42
42
  "@babel/runtime": "^7.22.15",
43
43
  "@babel/runtime-corejs3": "^7.22.15",
44
- "@commercetools-frontend/application-config": "22.14.2",
45
- "@commercetools-frontend/application-shell": "22.14.2",
44
+ "@commercetools-frontend/application-config": "22.14.3",
45
+ "@commercetools-frontend/application-shell": "22.14.3",
46
46
  "@manypkg/get-packages": "1.1.3",
47
47
  "@types/semver": "^7.5.1",
48
48
  "semver": "7.5.2",