@commercetools-frontend/cypress 24.7.2 → 24.8.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.
@@ -1,2 +1,2 @@
1
- export * from "../../dist/declarations/src/add-commands/index";
2
- //# sourceMappingURL=commercetools-frontend-cypress-add-commands.cjs.d.ts.map
1
+ export * from "../../dist/declarations/src/add-commands/index.js";
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVyY2V0b29scy1mcm9udGVuZC1jeXByZXNzLWFkZC1jb21tYW5kcy5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2Rpc3QvZGVjbGFyYXRpb25zL3NyYy9hZGQtY29tbWFuZHMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
@@ -15,9 +15,7 @@ var _URL = require('@babel/runtime-corejs3/core-js-stable/url');
15
15
  var semver = require('semver');
16
16
  var constants$1 = require('../../dist/constants-009cb682.cjs.dev.js');
17
17
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
18
- var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
19
18
  var _Array$from = require('@babel/runtime-corejs3/core-js-stable/array/from');
20
- var _entriesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/entries');
21
19
  var _reduceRightInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reduce-right');
22
20
 
23
21
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -33,9 +31,7 @@ var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defin
33
31
  var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
34
32
  var _URL__default = /*#__PURE__*/_interopDefault(_URL);
35
33
  var semver__default = /*#__PURE__*/_interopDefault(semver);
36
- var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
37
34
  var _Array$from__default = /*#__PURE__*/_interopDefault(_Array$from);
38
- var _entriesInstanceProperty__default = /*#__PURE__*/_interopDefault(_entriesInstanceProperty);
39
35
  var _reduceRightInstanceProperty__default = /*#__PURE__*/_interopDefault(_reduceRightInstanceProperty);
40
36
 
41
37
  function ownKeys$1(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; }
@@ -188,13 +184,16 @@ function loginByForm(commandOptions) {
188
184
  cy.url().should('include', `${identityUrl}/login`);
189
185
  // Fill in the email and click Next
190
186
  cy.get('input[name="identifier"]').type(userCredentials.email);
191
- cy.get('button').contains('Next').click();
187
+ cy.get('button').contains('Next').click({
188
+ force: true
189
+ });
192
190
 
193
191
  // Wait for the password form to appear
194
192
  cy.get('input[name="password"]').should('be.visible');
195
193
  // Fill in the password and submit
196
194
  cy.get('input[name="password"]').type(userCredentials.password, {
197
- log: false
195
+ log: false,
196
+ force: true
198
197
  });
199
198
  cy.get('button').contains('Submit').click({
200
199
  force: true
@@ -270,7 +269,8 @@ function loginByForm(commandOptions) {
270
269
  cy.get('input[name="password"]').should('be.visible');
271
270
  // Fill in the password and submit
272
271
  cy.get('input[name="password"]').type(args.password, {
273
- log: false
272
+ log: false,
273
+ force: true
274
274
  });
275
275
  cy.get('button').contains('Submit').click({
276
276
  force: true
@@ -442,7 +442,7 @@ function scrollIntoView(htmlElement) {
442
442
  // for cross origin domains .frameElement returns null so query using parentWindow
443
443
  // but when running using --disable-web-security it will return the frame element
444
444
  function getFrameElement(currentWindow) {
445
- var _context, _context2;
445
+ var _context;
446
446
  if (currentWindow.frameElement) {
447
447
  // accessible for same-origin iframes
448
448
  // or when running with --disable-web-security
@@ -451,11 +451,7 @@ function getFrameElement(currentWindow) {
451
451
 
452
452
  // fallback to querying using the parent window, mainly to grab the AUT iframe
453
453
  const iframeElements = currentWindow.parent.document.querySelectorAll('iframe');
454
- return _findInstanceProperty__default["default"](_context = _mapInstanceProperty__default["default"](_context2 = _Array$from__default["default"](_entriesInstanceProperty__default["default"](iframeElements).call(iframeElements))).call(_context2, _ref => {
455
- let _ref2 = _slicedToArray(_ref, 2),
456
- element = _ref2[1];
457
- return element;
458
- })).call(_context, element => element.contentWindow === currentWindow);
454
+ return _findInstanceProperty__default["default"](_context = _Array$from__default["default"](iframeElements)).call(_context, element => element.contentWindow === currentWindow);
459
455
  }
460
456
  function getIframesPositionShift(element) {
461
457
  let currentWindow = element.ownerDocument.defaultView;
@@ -477,10 +473,10 @@ function getIframesPositionShift(element) {
477
473
  }
478
474
  currentWindow = currentWindow.parent;
479
475
  }
480
- return _reduceRightInstanceProperty__default["default"](iframes).call(iframes, (_ref3, frame) => {
481
- let frameX = _ref3.frameX,
482
- frameY = _ref3.frameY,
483
- frameScale = _ref3.frameScale;
476
+ return _reduceRightInstanceProperty__default["default"](iframes).call(iframes, (_ref, frame) => {
477
+ let frameX = _ref.frameX,
478
+ frameY = _ref.frameY,
479
+ frameScale = _ref.frameScale;
484
480
  const _frame$getBoundingCli = frame.getBoundingClientRect(),
485
481
  x = _frame$getBoundingCli.x,
486
482
  y = _frame$getBoundingCli.y,
@@ -15,9 +15,7 @@ var _URL = require('@babel/runtime-corejs3/core-js-stable/url');
15
15
  var semver = require('semver');
16
16
  var constants$1 = require('../../dist/constants-2f1475a6.cjs.prod.js');
17
17
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
18
- var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
19
18
  var _Array$from = require('@babel/runtime-corejs3/core-js-stable/array/from');
20
- var _entriesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/entries');
21
19
  var _reduceRightInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reduce-right');
22
20
 
23
21
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -33,9 +31,7 @@ var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defin
33
31
  var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
34
32
  var _URL__default = /*#__PURE__*/_interopDefault(_URL);
35
33
  var semver__default = /*#__PURE__*/_interopDefault(semver);
36
- var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
37
34
  var _Array$from__default = /*#__PURE__*/_interopDefault(_Array$from);
38
- var _entriesInstanceProperty__default = /*#__PURE__*/_interopDefault(_entriesInstanceProperty);
39
35
  var _reduceRightInstanceProperty__default = /*#__PURE__*/_interopDefault(_reduceRightInstanceProperty);
40
36
 
41
37
  function ownKeys$1(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; }
@@ -188,13 +184,16 @@ function loginByForm(commandOptions) {
188
184
  cy.url().should('include', `${identityUrl}/login`);
189
185
  // Fill in the email and click Next
190
186
  cy.get('input[name="identifier"]').type(userCredentials.email);
191
- cy.get('button').contains('Next').click();
187
+ cy.get('button').contains('Next').click({
188
+ force: true
189
+ });
192
190
 
193
191
  // Wait for the password form to appear
194
192
  cy.get('input[name="password"]').should('be.visible');
195
193
  // Fill in the password and submit
196
194
  cy.get('input[name="password"]').type(userCredentials.password, {
197
- log: false
195
+ log: false,
196
+ force: true
198
197
  });
199
198
  cy.get('button').contains('Submit').click({
200
199
  force: true
@@ -270,7 +269,8 @@ function loginByForm(commandOptions) {
270
269
  cy.get('input[name="password"]').should('be.visible');
271
270
  // Fill in the password and submit
272
271
  cy.get('input[name="password"]').type(args.password, {
273
- log: false
272
+ log: false,
273
+ force: true
274
274
  });
275
275
  cy.get('button').contains('Submit').click({
276
276
  force: true
@@ -442,7 +442,7 @@ function scrollIntoView(htmlElement) {
442
442
  // for cross origin domains .frameElement returns null so query using parentWindow
443
443
  // but when running using --disable-web-security it will return the frame element
444
444
  function getFrameElement(currentWindow) {
445
- var _context, _context2;
445
+ var _context;
446
446
  if (currentWindow.frameElement) {
447
447
  // accessible for same-origin iframes
448
448
  // or when running with --disable-web-security
@@ -451,11 +451,7 @@ function getFrameElement(currentWindow) {
451
451
 
452
452
  // fallback to querying using the parent window, mainly to grab the AUT iframe
453
453
  const iframeElements = currentWindow.parent.document.querySelectorAll('iframe');
454
- return _findInstanceProperty__default["default"](_context = _mapInstanceProperty__default["default"](_context2 = _Array$from__default["default"](_entriesInstanceProperty__default["default"](iframeElements).call(iframeElements))).call(_context2, _ref => {
455
- let _ref2 = _slicedToArray(_ref, 2),
456
- element = _ref2[1];
457
- return element;
458
- })).call(_context, element => element.contentWindow === currentWindow);
454
+ return _findInstanceProperty__default["default"](_context = _Array$from__default["default"](iframeElements)).call(_context, element => element.contentWindow === currentWindow);
459
455
  }
460
456
  function getIframesPositionShift(element) {
461
457
  let currentWindow = element.ownerDocument.defaultView;
@@ -477,10 +473,10 @@ function getIframesPositionShift(element) {
477
473
  }
478
474
  currentWindow = currentWindow.parent;
479
475
  }
480
- return _reduceRightInstanceProperty__default["default"](iframes).call(iframes, (_ref3, frame) => {
481
- let frameX = _ref3.frameX,
482
- frameY = _ref3.frameY,
483
- frameScale = _ref3.frameScale;
476
+ return _reduceRightInstanceProperty__default["default"](iframes).call(iframes, (_ref, frame) => {
477
+ let frameX = _ref.frameX,
478
+ frameY = _ref.frameY,
479
+ frameScale = _ref.frameScale;
484
480
  const _frame$getBoundingCli = frame.getBoundingClientRect(),
485
481
  x = _frame$getBoundingCli.x,
486
482
  y = _frame$getBoundingCli.y,
@@ -13,9 +13,7 @@ import _URL from '@babel/runtime-corejs3/core-js-stable/url';
13
13
  import semver from 'semver';
14
14
  import { H as HTTP_STATUS_CODES } from '../../dist/constants-13c76918.esm.js';
15
15
  import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
16
- import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
17
16
  import _Array$from from '@babel/runtime-corejs3/core-js-stable/array/from';
18
- import _entriesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/entries';
19
17
  import _reduceRightInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/reduce-right';
20
18
 
21
19
  function ownKeys$1(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; }
@@ -168,13 +166,16 @@ function loginByForm(commandOptions) {
168
166
  cy.url().should('include', `${identityUrl}/login`);
169
167
  // Fill in the email and click Next
170
168
  cy.get('input[name="identifier"]').type(userCredentials.email);
171
- cy.get('button').contains('Next').click();
169
+ cy.get('button').contains('Next').click({
170
+ force: true
171
+ });
172
172
 
173
173
  // Wait for the password form to appear
174
174
  cy.get('input[name="password"]').should('be.visible');
175
175
  // Fill in the password and submit
176
176
  cy.get('input[name="password"]').type(userCredentials.password, {
177
- log: false
177
+ log: false,
178
+ force: true
178
179
  });
179
180
  cy.get('button').contains('Submit').click({
180
181
  force: true
@@ -250,7 +251,8 @@ function loginByForm(commandOptions) {
250
251
  cy.get('input[name="password"]').should('be.visible');
251
252
  // Fill in the password and submit
252
253
  cy.get('input[name="password"]').type(args.password, {
253
- log: false
254
+ log: false,
255
+ force: true
254
256
  });
255
257
  cy.get('button').contains('Submit').click({
256
258
  force: true
@@ -422,7 +424,7 @@ function scrollIntoView(htmlElement) {
422
424
  // for cross origin domains .frameElement returns null so query using parentWindow
423
425
  // but when running using --disable-web-security it will return the frame element
424
426
  function getFrameElement(currentWindow) {
425
- var _context, _context2;
427
+ var _context;
426
428
  if (currentWindow.frameElement) {
427
429
  // accessible for same-origin iframes
428
430
  // or when running with --disable-web-security
@@ -431,11 +433,7 @@ function getFrameElement(currentWindow) {
431
433
 
432
434
  // fallback to querying using the parent window, mainly to grab the AUT iframe
433
435
  const iframeElements = currentWindow.parent.document.querySelectorAll('iframe');
434
- return _findInstanceProperty(_context = _mapInstanceProperty(_context2 = _Array$from(_entriesInstanceProperty(iframeElements).call(iframeElements))).call(_context2, _ref => {
435
- let _ref2 = _slicedToArray(_ref, 2),
436
- element = _ref2[1];
437
- return element;
438
- })).call(_context, element => element.contentWindow === currentWindow);
436
+ return _findInstanceProperty(_context = _Array$from(iframeElements)).call(_context, element => element.contentWindow === currentWindow);
439
437
  }
440
438
  function getIframesPositionShift(element) {
441
439
  let currentWindow = element.ownerDocument.defaultView;
@@ -457,10 +455,10 @@ function getIframesPositionShift(element) {
457
455
  }
458
456
  currentWindow = currentWindow.parent;
459
457
  }
460
- return _reduceRightInstanceProperty(iframes).call(iframes, (_ref3, frame) => {
461
- let frameX = _ref3.frameX,
462
- frameY = _ref3.frameY,
463
- frameScale = _ref3.frameScale;
458
+ return _reduceRightInstanceProperty(iframes).call(iframes, (_ref, frame) => {
459
+ let frameX = _ref.frameX,
460
+ frameY = _ref.frameY,
461
+ frameScale = _ref.frameScale;
464
462
  const _frame$getBoundingCli = frame.getBoundingClientRect(),
465
463
  x = _frame$getBoundingCli.x,
466
464
  y = _frame$getBoundingCli.y,
@@ -1,2 +1,2 @@
1
- export * from "./declarations/src/index";
2
- //# sourceMappingURL=commercetools-frontend-cypress.cjs.d.ts.map
1
+ export * from "./declarations/src/index.js";
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVyY2V0b29scy1mcm9udGVuZC1jeXByZXNzLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var constants = require('./constants-009cb682.cjs.dev.js');
6
6
 
7
7
  // NOTE: This string will be replaced on build time with the package version.
8
- var version = "24.7.2";
8
+ var version = "24.8.1";
9
9
 
10
10
  exports.HTTP_STATUS_CODES = constants.HTTP_STATUS_CODES;
11
11
  exports.OIDC_RESPONSE_TYPES = constants.OIDC_RESPONSE_TYPES;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var constants = require('./constants-2f1475a6.cjs.prod.js');
6
6
 
7
7
  // NOTE: This string will be replaced on build time with the package version.
8
- var version = "24.7.2";
8
+ var version = "24.8.1";
9
9
 
10
10
  exports.HTTP_STATUS_CODES = constants.HTTP_STATUS_CODES;
11
11
  exports.OIDC_RESPONSE_TYPES = constants.OIDC_RESPONSE_TYPES;
@@ -1,6 +1,6 @@
1
1
  export { H as HTTP_STATUS_CODES, O as OIDC_RESPONSE_TYPES, S as STORAGE_KEYS } from './constants-13c76918.esm.js';
2
2
 
3
3
  // NOTE: This string will be replaced on build time with the package version.
4
- var version = "24.7.2";
4
+ var version = "24.8.1";
5
5
 
6
6
  export { version };
@@ -1,5 +1,5 @@
1
1
  import { Matcher as TMatcher } from '@testing-library/dom';
2
- import { type CommandLoginOptions as TCommandLoginOptions, type LoginToMerchantCenterForCustomViewCommandLoginOptions as TLoginToMerchantCenterForCustomViewCommandLoginOptions } from './login';
2
+ import { type CommandLoginOptions as TCommandLoginOptions, type LoginToMerchantCenterForCustomViewCommandLoginOptions as TLoginToMerchantCenterForCustomViewCommandLoginOptions } from "./login.js";
3
3
  export type CommandLoginOptions = TCommandLoginOptions;
4
4
  export type LoginToMerchantCenterForCustomViewCommandLoginOptions = TLoginToMerchantCenterForCustomViewCommandLoginOptions;
5
5
  export type Matcher = TMatcher;
@@ -1,2 +1,2 @@
1
- export { default as version } from './version';
2
- export * from './constants';
1
+ export { default as version } from "./version.js";
2
+ export * from "./constants.js";
@@ -4,10 +4,10 @@ type CustomEntityConfigTaskOptions = {
4
4
  dotfiles?: string[];
5
5
  packageName?: string;
6
6
  };
7
- declare const customApplicationConfig: (options: CustomEntityConfigTaskOptions) => Promise<ApplicationRuntimeConfig['env']>;
8
- declare const customViewConfig: (options: Omit<CustomEntityConfigTaskOptions, 'entryPointUriPath'>) => Promise<ApplicationRuntimeConfig['env']>;
7
+ declare const customApplicationConfig: (options: CustomEntityConfigTaskOptions) => Promise<ApplicationRuntimeConfig["env"]>;
8
+ declare const customViewConfig: (options: Omit<CustomEntityConfigTaskOptions, "entryPointUriPath">) => Promise<ApplicationRuntimeConfig["env"]>;
9
9
  export { customApplicationConfig, customViewConfig };
10
10
  declare const legacyConfig: {
11
- customApplicationConfig: (options: CustomEntityConfigTaskOptions) => Promise<ApplicationRuntimeConfig['env']>;
11
+ customApplicationConfig: (options: CustomEntityConfigTaskOptions) => Promise<ApplicationRuntimeConfig["env"]>;
12
12
  };
13
13
  export default legacyConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/cypress",
3
- "version": "24.7.2",
3
+ "version": "24.8.1",
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,17 +41,17 @@
41
41
  "dependencies": {
42
42
  "@babel/runtime": "^7.22.15",
43
43
  "@babel/runtime-corejs3": "^7.22.15",
44
- "@commercetools-frontend/application-config": "24.7.2",
45
- "@commercetools-frontend/application-shell": "24.7.2",
46
- "@commercetools-frontend/constants": "24.7.2",
44
+ "@commercetools-frontend/application-config": "24.8.1",
45
+ "@commercetools-frontend/application-shell": "24.8.1",
46
+ "@commercetools-frontend/constants": "24.8.1",
47
47
  "@manypkg/get-packages": "1.1.3",
48
48
  "@types/semver": "^7.5.1",
49
- "semver": "7.6.2",
49
+ "semver": "7.7.2",
50
50
  "uuid": "9.0.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@tsconfig/node22": "^22.0.0",
54
- "cypress": "14.5.3"
54
+ "cypress": "14.5.4"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "cypress": ">=8"
@@ -1,3 +1,3 @@
1
- export * from "../../dist/declarations/src/task/index";
2
- export { default } from "../../dist/declarations/src/task/index";
3
- //# sourceMappingURL=commercetools-frontend-cypress-task.cjs.d.ts.map
1
+ export * from "../../dist/declarations/src/task/index.js";
2
+ export { default } from "../../dist/declarations/src/task/index.js";
3
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVyY2V0b29scy1mcm9udGVuZC1jeXByZXNzLXRhc2suY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9kaXN0L2RlY2xhcmF0aW9ucy9zcmMvdGFzay9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
@@ -1 +0,0 @@
1
- {"version":3,"file":"commercetools-frontend-cypress-add-commands.cjs.d.ts","sourceRoot":"","sources":["../../dist/declarations/src/add-commands/index.d.ts"],"names":[],"mappings":"AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"commercetools-frontend-cypress.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
@@ -1,41 +0,0 @@
1
- /**
2
- * NOTE: the `realHover` command is originally being implemented in `cypress-real-events` package.
3
- * https://github.com/dmtrKovalenko/cypress-real-events/blob/develop/src/commands/realHover.ts
4
- *
5
- * However, due to known issues with conflicting types between Cypress and Jest, importing the `cypress-real-events`
6
- * package here will cause such issues with TypeScript as our `@commercetools-frontend/cypress` package
7
- * is checked and built together with all other packages and not in isolation.
8
- * See https://docs.cypress.io/guides/tooling/typescript-support#Clashing-types-with-Jest.
9
- *
10
- * Therefore, we are porting here the implementation of `realHover` to avoid importing it from the
11
- * original package `cypress-real-events`.
12
- */
13
- export interface RealHoverOptions {
14
- /**
15
- * If set to `pen`, simulates touch based hover (via long press)
16
- */
17
- pointer?: 'mouse' | 'pen';
18
- /**
19
- * Position relative to the element where to hover the element.
20
- * @example cy.realHover({ position: "topLeft" })
21
- */
22
- position?: Position;
23
- /**
24
- * Controls how the page is scrolled to bring the subject into view, if needed.
25
- * @example cy.realHover({ scrollBehavior: "top" });
26
- */
27
- scrollBehavior?: ScrollBehaviorOptions;
28
- /**
29
- * Indicates whether the shift key was pressed or not when an event occurred
30
- * @example cy.realHover({ shiftKey: true });
31
- */
32
- shiftKey?: boolean;
33
- }
34
- type Position = 'topLeft' | 'top' | 'topRight' | 'left' | 'center' | 'right' | 'bottomLeft' | 'bottom' | 'bottomRight' | {
35
- x: number;
36
- y: number;
37
- };
38
- type ScrollBehaviorPosition = 'center' | 'top' | 'bottom' | 'nearest';
39
- type ScrollBehaviorOptions = ScrollBehaviorPosition | false;
40
- export declare function realHover(subject: any, options?: RealHoverOptions): Promise<any>;
41
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"commercetools-frontend-cypress-task.cjs.d.ts","sourceRoot":"","sources":["../../dist/declarations/src/task/index.d.ts"],"names":[],"mappings":"AAAA"}