cypress 10.3.1 → 10.4.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/lib/exec/open.js +6 -0
- package/mount-utils/CHANGELOG.md +0 -1
- package/mount-utils/README.md +7 -0
- package/package.json +10 -5
- package/react/CHANGELOG.md +0 -19
- package/react/README.md +28 -323
- package/react/dist/createMount.d.ts +30 -0
- package/react/dist/cypress-react.cjs.js +59 -78
- package/react/dist/cypress-react.esm-bundler.js +51 -74
- package/react/dist/getDisplayName.d.ts +1 -1
- package/react/dist/index.d.ts +2 -0
- package/react/dist/mount.d.ts +5 -141
- package/react/dist/types.d.ts +50 -0
- package/react/package.json +1 -5
- package/react18/dist/cypress-react.cjs.js +422 -0
- package/react18/dist/cypress-react.esm-bundler.js +394 -0
- package/react18/dist/index.d.ts +5 -0
- package/react18/package.json +59 -0
- package/types/cypress.d.ts +9 -0
- package/types/index.d.ts +1 -1
- package/types/{net-stubbing.ts → net-stubbing.d.ts} +0 -0
- package/vue/CHANGELOG.md +2 -17
- package/vue/README.md +17 -608
- package/vue/dist/@vue/test-utils/baseWrapper.d.ts +3 -1
- package/vue/dist/@vue/test-utils/config.d.ts +4 -2
- package/vue/dist/@vue/test-utils/emit.d.ts +1 -0
- package/vue/dist/@vue/test-utils/index.d.ts +2 -1
- package/vue/dist/@vue/test-utils/interfaces/wrapperLike.d.ts +2 -2
- package/vue/dist/@vue/test-utils/mount.d.ts +2 -0
- package/vue/dist/@vue/test-utils/stubs.d.ts +2 -6
- package/vue/dist/@vue/test-utils/types.d.ts +1 -1
- package/vue/dist/@vue/test-utils/vueWrapper.d.ts +2 -1
- package/vue/dist/cypress-vue.cjs.js +5379 -5090
- package/vue/dist/cypress-vue.esm-bundler.js +5380 -5091
- package/vue/dist/index.d.ts +1 -0
- package/vue/package.json +2 -2
- package/vue2/README.md +11 -627
- package/vue2/dist/cypress-vue2.browser.js +251 -260
- package/vue2/dist/cypress-vue2.cjs.js +250 -259
- package/vue2/dist/cypress-vue2.esm-bundler.js +248 -257
- package/react/dist/cypress-react.browser.js +0 -512
@@ -38,14 +38,14 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
38
38
|
return __assign.apply(this, arguments);
|
39
39
|
};
|
40
40
|
|
41
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
41
|
+
var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
42
42
|
|
43
|
-
function createCommonjsModule(fn) {
|
43
|
+
function createCommonjsModule$1(fn) {
|
44
44
|
var module = { exports: {} };
|
45
45
|
return fn(module, module.exports), module.exports;
|
46
46
|
}
|
47
47
|
|
48
|
-
var splitRE = /\r?\n/g;
|
48
|
+
var splitRE$1 = /\r?\n/g;
|
49
49
|
var emptyRE = /^\s*$/;
|
50
50
|
var needFixRE = /^(\r?\n)*[\t\s]/;
|
51
51
|
|
@@ -53,7 +53,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
53
53
|
if (!needFixRE.test(str)) {
|
54
54
|
return str
|
55
55
|
}
|
56
|
-
var lines = str.split(splitRE);
|
56
|
+
var lines = str.split(splitRE$1);
|
57
57
|
var min = Infinity;
|
58
58
|
var type, cur, c;
|
59
59
|
for (var i = 0; i < lines.length; i++) {
|
@@ -93,19 +93,19 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
93
93
|
|
94
94
|
/*! https://mths.be/he v1.2.0 by @mathias | MIT license */
|
95
95
|
|
96
|
-
var he = createCommonjsModule(function (module, exports) {
|
96
|
+
var he$1 = createCommonjsModule$1(function (module, exports) {
|
97
97
|
(function(root) {
|
98
98
|
|
99
99
|
// Detect free variables `exports`.
|
100
|
-
var freeExports =
|
100
|
+
var freeExports = exports;
|
101
101
|
|
102
102
|
// Detect free variable `module`.
|
103
|
-
var freeModule =
|
103
|
+
var freeModule = module &&
|
104
104
|
module.exports == freeExports && module;
|
105
105
|
|
106
106
|
// Detect free variable `global`, from Node.js or Browserified code,
|
107
107
|
// and use it as `root`.
|
108
|
-
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal;
|
108
|
+
var freeGlobal = typeof commonjsGlobal$1 == 'object' && commonjsGlobal$1;
|
109
109
|
if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
|
110
110
|
root = freeGlobal;
|
111
111
|
}
|
@@ -429,13 +429,13 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
429
429
|
root.he = he;
|
430
430
|
}
|
431
431
|
|
432
|
-
}(commonjsGlobal));
|
432
|
+
}(commonjsGlobal$1));
|
433
433
|
});
|
434
434
|
|
435
435
|
function _interopDefault$1 (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
436
436
|
|
437
437
|
var deindent = _interopDefault$1(deIndent);
|
438
|
-
var he
|
438
|
+
var he = _interopDefault$1(he$1);
|
439
439
|
|
440
440
|
/* */
|
441
441
|
|
@@ -465,7 +465,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
465
465
|
* Objects from primitive values when we know the value
|
466
466
|
* is a JSON-compliant type.
|
467
467
|
*/
|
468
|
-
function isObject (obj) {
|
468
|
+
function isObject$1 (obj) {
|
469
469
|
return obj !== null && typeof obj === 'object'
|
470
470
|
}
|
471
471
|
|
@@ -482,7 +482,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
482
482
|
* Strict object type check. Only returns true
|
483
483
|
* for plain JavaScript objects.
|
484
484
|
*/
|
485
|
-
function isPlainObject (obj) {
|
485
|
+
function isPlainObject$1 (obj) {
|
486
486
|
return _toString.call(obj) === '[object Object]'
|
487
487
|
}
|
488
488
|
|
@@ -498,7 +498,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
498
498
|
* Make a map and return a function for checking if a key
|
499
499
|
* is in that map.
|
500
500
|
*/
|
501
|
-
function makeMap (
|
501
|
+
function makeMap$1 (
|
502
502
|
str,
|
503
503
|
expectsLowerCase
|
504
504
|
) {
|
@@ -515,12 +515,12 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
515
515
|
/**
|
516
516
|
* Check if a tag is a built-in tag.
|
517
517
|
*/
|
518
|
-
var isBuiltInTag = makeMap('slot,component', true);
|
518
|
+
var isBuiltInTag = makeMap$1('slot,component', true);
|
519
519
|
|
520
520
|
/**
|
521
521
|
* Check if an attribute is a reserved attribute.
|
522
522
|
*/
|
523
|
-
makeMap('key,ref,slot,slot-scope,is');
|
523
|
+
makeMap$1('key,ref,slot,slot-scope,is');
|
524
524
|
|
525
525
|
/**
|
526
526
|
* Remove an item from an array.
|
@@ -537,15 +537,15 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
537
537
|
/**
|
538
538
|
* Check whether an object has the property.
|
539
539
|
*/
|
540
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
541
|
-
function hasOwn (obj, key) {
|
542
|
-
return hasOwnProperty.call(obj, key)
|
540
|
+
var hasOwnProperty$b = Object.prototype.hasOwnProperty;
|
541
|
+
function hasOwn$1 (obj, key) {
|
542
|
+
return hasOwnProperty$b.call(obj, key)
|
543
543
|
}
|
544
544
|
|
545
545
|
/**
|
546
546
|
* Create a cached version of a pure function.
|
547
547
|
*/
|
548
|
-
function cached (fn) {
|
548
|
+
function cached$1 (fn) {
|
549
549
|
var cache = Object.create(null);
|
550
550
|
return (function cachedFn (str) {
|
551
551
|
var hit = cache[str];
|
@@ -556,23 +556,23 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
556
556
|
/**
|
557
557
|
* Camelize a hyphen-delimited string.
|
558
558
|
*/
|
559
|
-
var camelizeRE = /-(\w)/g;
|
560
|
-
var camelize = cached(function (str) {
|
561
|
-
return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
|
559
|
+
var camelizeRE$1 = /-(\w)/g;
|
560
|
+
var camelize$1 = cached$1(function (str) {
|
561
|
+
return str.replace(camelizeRE$1, function (_, c) { return c ? c.toUpperCase() : ''; })
|
562
562
|
});
|
563
563
|
|
564
564
|
/**
|
565
565
|
* Hyphenate a camelCase string.
|
566
566
|
*/
|
567
|
-
var hyphenateRE = /\B([A-Z])/g;
|
568
|
-
var hyphenate = cached(function (str) {
|
569
|
-
return str.replace(hyphenateRE, '-$1').toLowerCase()
|
567
|
+
var hyphenateRE$1 = /\B([A-Z])/g;
|
568
|
+
var hyphenate$1 = cached$1(function (str) {
|
569
|
+
return str.replace(hyphenateRE$1, '-$1').toLowerCase()
|
570
570
|
});
|
571
571
|
|
572
572
|
/**
|
573
573
|
* Mix properties into target object.
|
574
574
|
*/
|
575
|
-
function extend (to, _from) {
|
575
|
+
function extend$1 (to, _from) {
|
576
576
|
for (var key in _from) {
|
577
577
|
to[key] = _from[key];
|
578
578
|
}
|
@@ -611,20 +611,20 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
611
611
|
|
612
612
|
/* */
|
613
613
|
|
614
|
-
var isUnaryTag = makeMap(
|
614
|
+
var isUnaryTag = makeMap$1(
|
615
615
|
'area,base,br,col,embed,frame,hr,img,input,isindex,keygen,' +
|
616
616
|
'link,meta,param,source,track,wbr'
|
617
617
|
);
|
618
618
|
|
619
619
|
// Elements that you can, intentionally, leave open
|
620
620
|
// (and which close themselves)
|
621
|
-
var canBeLeftOpenTag = makeMap(
|
621
|
+
var canBeLeftOpenTag = makeMap$1(
|
622
622
|
'colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source'
|
623
623
|
);
|
624
624
|
|
625
625
|
// HTML5 tags https://html.spec.whatwg.org/multipage/indices.html#elements-3
|
626
626
|
// Phrasing Content https://html.spec.whatwg.org/multipage/dom.html#phrasing-content
|
627
|
-
var isNonPhrasingTag = makeMap(
|
627
|
+
var isNonPhrasingTag = makeMap$1(
|
628
628
|
'address,article,aside,base,blockquote,body,caption,col,colgroup,dd,' +
|
629
629
|
'details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,' +
|
630
630
|
'h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,' +
|
@@ -671,7 +671,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
671
671
|
var conditionalComment = /^<!\[/;
|
672
672
|
|
673
673
|
// Special Elements (can contain anything)
|
674
|
-
var isPlainTextElement = makeMap('script,style,textarea', true);
|
674
|
+
var isPlainTextElement = makeMap$1('script,style,textarea', true);
|
675
675
|
var reCache = {};
|
676
676
|
|
677
677
|
var decodingMap = {
|
@@ -687,7 +687,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
687
687
|
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#39|#10|#9);/g;
|
688
688
|
|
689
689
|
// #5992
|
690
|
-
var isIgnoreNewlineTag = makeMap('pre,textarea', true);
|
690
|
+
var isIgnoreNewlineTag = makeMap$1('pre,textarea', true);
|
691
691
|
var shouldIgnoreFirstNewline = function (tag, html) { return tag && isIgnoreNewlineTag(tag) && html[0] === '\n'; };
|
692
692
|
|
693
693
|
function decodeAttr (value, shouldDecodeNewlines) {
|
@@ -951,9 +951,9 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
951
951
|
|
952
952
|
/* */
|
953
953
|
|
954
|
-
var splitRE
|
954
|
+
var splitRE = /\r?\n/g;
|
955
955
|
var replaceRE = /./g;
|
956
|
-
var isSpecialTag = makeMap('script,style,template', true);
|
956
|
+
var isSpecialTag = makeMap$1('script,style,template', true);
|
957
957
|
|
958
958
|
/**
|
959
959
|
* Parse a single-file component (*.vue) file into an SFC Descriptor Object.
|
@@ -1067,7 +1067,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1067
1067
|
if (pad === 'space') {
|
1068
1068
|
return content.slice(0, block.start).replace(replaceRE, ' ')
|
1069
1069
|
} else {
|
1070
|
-
var offset = content.slice(0, block.start).split(splitRE
|
1070
|
+
var offset = content.slice(0, block.start).split(splitRE).length;
|
1071
1071
|
var padChar = block.type === 'script' && !block.lang
|
1072
1072
|
? '//\n'
|
1073
1073
|
: '\n';
|
@@ -1094,15 +1094,15 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1094
1094
|
var inBrowser = typeof window !== 'undefined';
|
1095
1095
|
var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
|
1096
1096
|
var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
|
1097
|
-
var UA = inBrowser && window.navigator.userAgent.toLowerCase();
|
1098
|
-
var isIE = UA && /msie|trident/.test(UA);
|
1099
|
-
UA && UA.indexOf('msie 9.0') > 0;
|
1100
|
-
var isEdge = UA && UA.indexOf('edge/') > 0;
|
1101
|
-
(UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
|
1102
|
-
(UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
|
1103
|
-
UA && /chrome\/\d+/.test(UA) && !isEdge;
|
1104
|
-
UA && /phantomjs/.test(UA);
|
1105
|
-
UA && UA.match(/firefox\/(\d+)/);
|
1097
|
+
var UA$1 = inBrowser && window.navigator.userAgent.toLowerCase();
|
1098
|
+
var isIE = UA$1 && /msie|trident/.test(UA$1);
|
1099
|
+
UA$1 && UA$1.indexOf('msie 9.0') > 0;
|
1100
|
+
var isEdge$1 = UA$1 && UA$1.indexOf('edge/') > 0;
|
1101
|
+
(UA$1 && UA$1.indexOf('android') > 0) || (weexPlatform === 'android');
|
1102
|
+
(UA$1 && /iphone|ipad|ipod|ios/.test(UA$1)) || (weexPlatform === 'ios');
|
1103
|
+
UA$1 && /chrome\/\d+/.test(UA$1) && !isEdge$1;
|
1104
|
+
UA$1 && /phantomjs/.test(UA$1);
|
1105
|
+
UA$1 && UA$1.match(/firefox\/(\d+)/);
|
1106
1106
|
|
1107
1107
|
// Firefox has a "watch" function on Object.prototype...
|
1108
1108
|
var nativeWatch = ({}).watch;
|
@@ -1123,10 +1123,10 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1123
1123
|
var isServerRendering = function () {
|
1124
1124
|
if (_isServer === undefined) {
|
1125
1125
|
/* istanbul ignore if */
|
1126
|
-
if (!inBrowser && !inWeex && typeof commonjsGlobal !== 'undefined') {
|
1126
|
+
if (!inBrowser && !inWeex && typeof commonjsGlobal$1 !== 'undefined') {
|
1127
1127
|
// detect presence of vue-server-renderer and avoid
|
1128
1128
|
// Webpack shimming the process
|
1129
|
-
_isServer = commonjsGlobal['process'] && commonjsGlobal['process'].env.VUE_ENV === 'server';
|
1129
|
+
_isServer = commonjsGlobal$1['process'] && commonjsGlobal$1['process'].env.VUE_ENV === 'server';
|
1130
1130
|
} else {
|
1131
1131
|
_isServer = false;
|
1132
1132
|
}
|
@@ -1170,7 +1170,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1170
1170
|
|
1171
1171
|
|
1172
1172
|
|
1173
|
-
var config = ({
|
1173
|
+
var config$1 = ({
|
1174
1174
|
/**
|
1175
1175
|
* Option merge strategies (used in core/util/options)
|
1176
1176
|
*/
|
@@ -1266,7 +1266,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1266
1266
|
|
1267
1267
|
/* */
|
1268
1268
|
|
1269
|
-
var warn = noop;
|
1269
|
+
var warn$1 = noop;
|
1270
1270
|
var tip = noop;
|
1271
1271
|
var generateComponentTrace = (noop); // work around flow check
|
1272
1272
|
var formatComponentName = (noop);
|
@@ -1278,16 +1278,16 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1278
1278
|
.replace(classifyRE, function (c) { return c.toUpperCase(); })
|
1279
1279
|
.replace(/[-_]/g, ''); };
|
1280
1280
|
|
1281
|
-
warn = function (msg, vm) {
|
1281
|
+
warn$1 = function (msg, vm) {
|
1282
1282
|
var trace = vm ? generateComponentTrace(vm) : '';
|
1283
1283
|
|
1284
|
-
if (hasConsole && (!config.silent)) {
|
1284
|
+
if (hasConsole && (!config$1.silent)) {
|
1285
1285
|
console.error(("[Vue warn]: " + msg + trace));
|
1286
1286
|
}
|
1287
1287
|
};
|
1288
1288
|
|
1289
1289
|
tip = function (msg, vm) {
|
1290
|
-
if (hasConsole && (!config.silent)) {
|
1290
|
+
if (hasConsole && (!config$1.silent)) {
|
1291
1291
|
console.warn("[Vue tip]: " + msg + (
|
1292
1292
|
vm ? generateComponentTrace(vm) : ''
|
1293
1293
|
));
|
@@ -1386,7 +1386,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1386
1386
|
Dep.prototype.notify = function notify () {
|
1387
1387
|
// stabilize the subscriber list first
|
1388
1388
|
var subs = this.subs.slice();
|
1389
|
-
if (process.env.NODE_ENV !== 'production' && !config.async) {
|
1389
|
+
if (process.env.NODE_ENV !== 'production' && !config$1.async) {
|
1390
1390
|
// subs aren't sorted in scheduler if not running async
|
1391
1391
|
// we need to sort them now to make sure they fire in correct
|
1392
1392
|
// order
|
@@ -1454,8 +1454,8 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1454
1454
|
* dynamically accessing methods on Array prototype
|
1455
1455
|
*/
|
1456
1456
|
|
1457
|
-
var arrayProto = Array.prototype;
|
1458
|
-
var arrayMethods = Object.create(arrayProto);
|
1457
|
+
var arrayProto$1 = Array.prototype;
|
1458
|
+
var arrayMethods = Object.create(arrayProto$1);
|
1459
1459
|
|
1460
1460
|
var methodsToPatch = [
|
1461
1461
|
'push',
|
@@ -1472,7 +1472,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1472
1472
|
*/
|
1473
1473
|
methodsToPatch.forEach(function (method) {
|
1474
1474
|
// cache original method
|
1475
|
-
var original = arrayProto[method];
|
1475
|
+
var original = arrayProto$1[method];
|
1476
1476
|
def(arrayMethods, method, function mutator () {
|
1477
1477
|
var args = [], len = arguments.length;
|
1478
1478
|
while ( len-- ) args[ len ] = arguments[ len ];
|
@@ -1574,16 +1574,15 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1574
1574
|
* or the existing observer if the value already has one.
|
1575
1575
|
*/
|
1576
1576
|
function observe (value, asRootData) {
|
1577
|
-
if (!isObject(value) || value instanceof VNode) {
|
1577
|
+
if (!isObject$1(value) || value instanceof VNode) {
|
1578
1578
|
return
|
1579
1579
|
}
|
1580
1580
|
var ob;
|
1581
|
-
if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
|
1581
|
+
if (hasOwn$1(value, '__ob__') && value.__ob__ instanceof Observer) {
|
1582
1582
|
ob = value.__ob__;
|
1583
1583
|
} else if (
|
1584
|
-
|
1585
1584
|
!isServerRendering() &&
|
1586
|
-
(Array.isArray(value) || isPlainObject(value)) &&
|
1585
|
+
(Array.isArray(value) || isPlainObject$1(value)) &&
|
1587
1586
|
Object.isExtensible(value) &&
|
1588
1587
|
!value._isVue
|
1589
1588
|
) {
|
@@ -1668,7 +1667,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1668
1667
|
if (process.env.NODE_ENV !== 'production' &&
|
1669
1668
|
(isUndef(target) || isPrimitive(target))
|
1670
1669
|
) {
|
1671
|
-
warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
|
1670
|
+
warn$1(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
|
1672
1671
|
}
|
1673
1672
|
if (Array.isArray(target) && isValidArrayIndex(key)) {
|
1674
1673
|
target.length = Math.max(target.length, key);
|
@@ -1681,7 +1680,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1681
1680
|
}
|
1682
1681
|
var ob = (target).__ob__;
|
1683
1682
|
if (target._isVue || (ob && ob.vmCount)) {
|
1684
|
-
process.env.NODE_ENV !== 'production' && warn(
|
1683
|
+
process.env.NODE_ENV !== 'production' && warn$1(
|
1685
1684
|
'Avoid adding reactive properties to a Vue instance or its root $data ' +
|
1686
1685
|
'at runtime - declare it upfront in the data option.'
|
1687
1686
|
);
|
@@ -1717,7 +1716,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1717
1716
|
* how to merge a parent option value and a child option
|
1718
1717
|
* value into the final value.
|
1719
1718
|
*/
|
1720
|
-
var strats = config.optionMergeStrategies;
|
1719
|
+
var strats = config$1.optionMergeStrategies;
|
1721
1720
|
|
1722
1721
|
/**
|
1723
1722
|
* Options with restrictions
|
@@ -1725,7 +1724,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1725
1724
|
if (process.env.NODE_ENV !== 'production') {
|
1726
1725
|
strats.el = strats.propsData = function (parent, child, vm, key) {
|
1727
1726
|
if (!vm) {
|
1728
|
-
warn(
|
1727
|
+
warn$1(
|
1729
1728
|
"option \"" + key + "\" can only be used during instance " +
|
1730
1729
|
'creation with the `new` keyword.'
|
1731
1730
|
);
|
@@ -1751,12 +1750,12 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1751
1750
|
if (key === '__ob__') { continue }
|
1752
1751
|
toVal = to[key];
|
1753
1752
|
fromVal = from[key];
|
1754
|
-
if (!hasOwn(to, key)) {
|
1753
|
+
if (!hasOwn$1(to, key)) {
|
1755
1754
|
set(to, key, fromVal);
|
1756
1755
|
} else if (
|
1757
1756
|
toVal !== fromVal &&
|
1758
|
-
isPlainObject(toVal) &&
|
1759
|
-
isPlainObject(fromVal)
|
1757
|
+
isPlainObject$1(toVal) &&
|
1758
|
+
isPlainObject$1(fromVal)
|
1760
1759
|
) {
|
1761
1760
|
mergeData(toVal, fromVal);
|
1762
1761
|
}
|
@@ -1816,7 +1815,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1816
1815
|
) {
|
1817
1816
|
if (!vm) {
|
1818
1817
|
if (childVal && typeof childVal !== 'function') {
|
1819
|
-
process.env.NODE_ENV !== 'production' && warn(
|
1818
|
+
process.env.NODE_ENV !== 'production' && warn$1(
|
1820
1819
|
'The "data" option should be a function ' +
|
1821
1820
|
'that returns a per-instance value in component ' +
|
1822
1821
|
'definitions.',
|
@@ -1880,7 +1879,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1880
1879
|
var res = Object.create(parentVal || null);
|
1881
1880
|
if (childVal) {
|
1882
1881
|
process.env.NODE_ENV !== 'production' && assertObjectType(key, childVal, vm);
|
1883
|
-
return extend(res, childVal)
|
1882
|
+
return extend$1(res, childVal)
|
1884
1883
|
} else {
|
1885
1884
|
return res
|
1886
1885
|
}
|
@@ -1912,7 +1911,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1912
1911
|
}
|
1913
1912
|
if (!parentVal) { return childVal }
|
1914
1913
|
var ret = {};
|
1915
|
-
extend(ret, parentVal);
|
1914
|
+
extend$1(ret, parentVal);
|
1916
1915
|
for (var key$1 in childVal) {
|
1917
1916
|
var parent = ret[key$1];
|
1918
1917
|
var child = childVal[key$1];
|
@@ -1943,8 +1942,8 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1943
1942
|
}
|
1944
1943
|
if (!parentVal) { return childVal }
|
1945
1944
|
var ret = Object.create(null);
|
1946
|
-
extend(ret, parentVal);
|
1947
|
-
if (childVal) { extend(ret, childVal); }
|
1945
|
+
extend$1(ret, parentVal);
|
1946
|
+
if (childVal) { extend$1(ret, childVal); }
|
1948
1947
|
return ret
|
1949
1948
|
};
|
1950
1949
|
strats.provide = mergeDataOrFn;
|
@@ -1959,8 +1958,8 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
1959
1958
|
};
|
1960
1959
|
|
1961
1960
|
function assertObjectType (name, value, vm) {
|
1962
|
-
if (!isPlainObject(value)) {
|
1963
|
-
warn(
|
1961
|
+
if (!isPlainObject$1(value)) {
|
1962
|
+
warn$1(
|
1964
1963
|
"Invalid value for option \"" + name + "\": expected an Object, " +
|
1965
1964
|
"but got " + (toRawType(value)) + ".",
|
1966
1965
|
vm
|
@@ -2013,10 +2012,10 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
2013
2012
|
|
2014
2013
|
// these are reserved for web because they are directly compiled away
|
2015
2014
|
// during template compilation
|
2016
|
-
makeMap('style,class');
|
2015
|
+
makeMap$1('style,class');
|
2017
2016
|
|
2018
2017
|
// attributes that should be using props for binding
|
2019
|
-
var acceptValue = makeMap('input,textarea,option,select,progress');
|
2018
|
+
var acceptValue = makeMap$1('input,textarea,option,select,progress');
|
2020
2019
|
var mustUseProp = function (tag, type, attr) {
|
2021
2020
|
return (
|
2022
2021
|
(attr === 'value' && acceptValue(tag)) && type !== 'button' ||
|
@@ -2026,11 +2025,11 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
2026
2025
|
)
|
2027
2026
|
};
|
2028
2027
|
|
2029
|
-
var isEnumeratedAttr = makeMap('contenteditable,draggable,spellcheck');
|
2028
|
+
var isEnumeratedAttr = makeMap$1('contenteditable,draggable,spellcheck');
|
2030
2029
|
|
2031
|
-
makeMap('events,caret,typing,plaintext-only');
|
2030
|
+
makeMap$1('events,caret,typing,plaintext-only');
|
2032
2031
|
|
2033
|
-
var isBooleanAttr = makeMap(
|
2032
|
+
var isBooleanAttr = makeMap$1(
|
2034
2033
|
'allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,' +
|
2035
2034
|
'default,defaultchecked,defaultmuted,defaultselected,defer,disabled,' +
|
2036
2035
|
'enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,' +
|
@@ -2043,7 +2042,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
2043
2042
|
|
2044
2043
|
/* */
|
2045
2044
|
|
2046
|
-
var isHTMLTag = makeMap(
|
2045
|
+
var isHTMLTag$1 = makeMap$1(
|
2047
2046
|
'html,body,base,head,link,meta,style,title,' +
|
2048
2047
|
'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +
|
2049
2048
|
'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +
|
@@ -2059,7 +2058,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
2059
2058
|
|
2060
2059
|
// this map is intentionally selective, only covering SVG elements that may
|
2061
2060
|
// contain child elements.
|
2062
|
-
var isSVG = makeMap(
|
2061
|
+
var isSVG$1 = makeMap$1(
|
2063
2062
|
'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +
|
2064
2063
|
'foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
|
2065
2064
|
'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',
|
@@ -2068,12 +2067,12 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
2068
2067
|
|
2069
2068
|
var isPreTag = function (tag) { return tag === 'pre'; };
|
2070
2069
|
|
2071
|
-
var isReservedTag = function (tag) {
|
2072
|
-
return isHTMLTag(tag) || isSVG(tag)
|
2070
|
+
var isReservedTag$1 = function (tag) {
|
2071
|
+
return isHTMLTag$1(tag) || isSVG$1(tag)
|
2073
2072
|
};
|
2074
2073
|
|
2075
2074
|
function getTagNamespace (tag) {
|
2076
|
-
if (isSVG(tag)) {
|
2075
|
+
if (isSVG$1(tag)) {
|
2077
2076
|
return 'svg'
|
2078
2077
|
}
|
2079
2078
|
// basic support for MathML
|
@@ -2083,7 +2082,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
2083
2082
|
}
|
2084
2083
|
}
|
2085
2084
|
|
2086
|
-
makeMap('text,number,password,search,email,tel,url');
|
2085
|
+
makeMap$1('text,number,password,search,email,tel,url');
|
2087
2086
|
|
2088
2087
|
/* */
|
2089
2088
|
|
@@ -2190,7 +2189,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
2190
2189
|
var defaultTagRE = /\{\{((?:.|\r?\n)+?)\}\}/g;
|
2191
2190
|
var regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g;
|
2192
2191
|
|
2193
|
-
var buildRegex = cached(function (delimiters) {
|
2192
|
+
var buildRegex = cached$1(function (delimiters) {
|
2194
2193
|
var open = delimiters[0].replace(regexEscapeRE, '\\$&');
|
2195
2194
|
var close = delimiters[1].replace(regexEscapeRE, '\\$&');
|
2196
2195
|
return new RegExp(open + '((?:.|\\n)+?)' + close, 'g')
|
@@ -2507,7 +2506,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
2507
2506
|
|
2508
2507
|
/* */
|
2509
2508
|
|
2510
|
-
var parseStyleText = cached(function (cssText) {
|
2509
|
+
var parseStyleText = cached$1(function (cssText) {
|
2511
2510
|
var res = {};
|
2512
2511
|
var listDelimiter = /;(?![^(]*\))/g;
|
2513
2512
|
var propertyDelimiter = /:(.+)/;
|
@@ -2733,12 +2732,12 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
2733
2732
|
|
2734
2733
|
var invalidAttributeRE = /[\s"'<>\/=]/;
|
2735
2734
|
|
2736
|
-
var decodeHTMLCached = cached(he
|
2735
|
+
var decodeHTMLCached = cached$1(he.decode);
|
2737
2736
|
|
2738
2737
|
var emptySlotScopeToken = "_empty_";
|
2739
2738
|
|
2740
2739
|
// configurable state
|
2741
|
-
var warn$1;
|
2740
|
+
var warn$1$1;
|
2742
2741
|
var delimiters;
|
2743
2742
|
var transforms;
|
2744
2743
|
var preTransforms;
|
@@ -2771,7 +2770,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
2771
2770
|
template,
|
2772
2771
|
options
|
2773
2772
|
) {
|
2774
|
-
warn$1 = options.warn || baseWarn;
|
2773
|
+
warn$1$1 = options.warn || baseWarn;
|
2775
2774
|
|
2776
2775
|
platformIsPreTag = options.isPreTag || no;
|
2777
2776
|
platformMustUseProp = options.mustUseProp || no;
|
@@ -2797,7 +2796,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
2797
2796
|
function warnOnce (msg, range) {
|
2798
2797
|
if (!warned) {
|
2799
2798
|
warned = true;
|
2800
|
-
warn$1(msg, range);
|
2799
|
+
warn$1$1(msg, range);
|
2801
2800
|
}
|
2802
2801
|
}
|
2803
2802
|
|
@@ -2893,7 +2892,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
2893
2892
|
}
|
2894
2893
|
|
2895
2894
|
parseHTML(template, {
|
2896
|
-
warn: warn$1,
|
2895
|
+
warn: warn$1$1,
|
2897
2896
|
expectHTML: options.expectHTML,
|
2898
2897
|
isUnaryTag: options.isUnaryTag,
|
2899
2898
|
canBeLeftOpenTag: options.canBeLeftOpenTag,
|
@@ -2928,7 +2927,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
2928
2927
|
}
|
2929
2928
|
attrs.forEach(function (attr) {
|
2930
2929
|
if (invalidAttributeRE.test(attr.name)) {
|
2931
|
-
warn$1(
|
2930
|
+
warn$1$1(
|
2932
2931
|
"Invalid dynamic argument expression: attribute names cannot contain " +
|
2933
2932
|
"spaces, quotes, <, >, / or =.",
|
2934
2933
|
{
|
@@ -2942,7 +2941,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
2942
2941
|
|
2943
2942
|
if (isForbiddenTag(element) && !isServerRendering()) {
|
2944
2943
|
element.forbidden = true;
|
2945
|
-
process.env.NODE_ENV !== 'production' && warn$1(
|
2944
|
+
process.env.NODE_ENV !== 'production' && warn$1$1(
|
2946
2945
|
'Templates should only be responsible for mapping the state to the ' +
|
2947
2946
|
'UI. Avoid placing tags with side-effects in your templates, such as ' +
|
2948
2947
|
"<" + tag + ">" + ', as they will not be parsed.',
|
@@ -3147,7 +3146,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3147
3146
|
if (exp) {
|
3148
3147
|
if (process.env.NODE_ENV !== 'production') {
|
3149
3148
|
if (el.tag === 'template') {
|
3150
|
-
warn$1(
|
3149
|
+
warn$1$1(
|
3151
3150
|
"<template> cannot be keyed. Place the key on real elements instead.",
|
3152
3151
|
getRawBindingAttr(el, 'key')
|
3153
3152
|
);
|
@@ -3156,7 +3155,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3156
3155
|
var iterator = el.iterator2 || el.iterator1;
|
3157
3156
|
var parent = el.parent;
|
3158
3157
|
if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
|
3159
|
-
warn$1(
|
3158
|
+
warn$1$1(
|
3160
3159
|
"Do not use v-for index as key on <transition-group> children, " +
|
3161
3160
|
"this is the same as not using keys.",
|
3162
3161
|
getRawBindingAttr(el, 'key'),
|
@@ -3182,9 +3181,9 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3182
3181
|
if ((exp = getAndRemoveAttr(el, 'v-for'))) {
|
3183
3182
|
var res = parseFor(exp);
|
3184
3183
|
if (res) {
|
3185
|
-
extend(el, res);
|
3184
|
+
extend$1(el, res);
|
3186
3185
|
} else if (process.env.NODE_ENV !== 'production') {
|
3187
|
-
warn$1(
|
3186
|
+
warn$1$1(
|
3188
3187
|
("Invalid v-for expression: " + exp),
|
3189
3188
|
el.rawAttrsMap['v-for']
|
3190
3189
|
);
|
@@ -3240,7 +3239,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3240
3239
|
block: el
|
3241
3240
|
});
|
3242
3241
|
} else if (process.env.NODE_ENV !== 'production') {
|
3243
|
-
warn$1(
|
3242
|
+
warn$1$1(
|
3244
3243
|
"v-" + (el.elseif ? ('else-if="' + el.elseif + '"') : 'else') + " " +
|
3245
3244
|
"used on element <" + (el.tag) + "> without corresponding v-if.",
|
3246
3245
|
el.rawAttrsMap[el.elseif ? 'v-else-if' : 'v-else']
|
@@ -3255,7 +3254,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3255
3254
|
return children[i]
|
3256
3255
|
} else {
|
3257
3256
|
if (process.env.NODE_ENV !== 'production' && children[i].text !== ' ') {
|
3258
|
-
warn$1(
|
3257
|
+
warn$1$1(
|
3259
3258
|
"text \"" + (children[i].text.trim()) + "\" between v-if and v-else(-if) " +
|
3260
3259
|
"will be ignored.",
|
3261
3260
|
children[i]
|
@@ -3288,7 +3287,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3288
3287
|
slotScope = getAndRemoveAttr(el, 'scope');
|
3289
3288
|
/* istanbul ignore if */
|
3290
3289
|
if (process.env.NODE_ENV !== 'production' && slotScope) {
|
3291
|
-
warn$1(
|
3290
|
+
warn$1$1(
|
3292
3291
|
"the \"scope\" attribute for scoped slots have been deprecated and " +
|
3293
3292
|
"replaced by \"slot-scope\" since 2.5. The new \"slot-scope\" attribute " +
|
3294
3293
|
"can also be used on plain elements in addition to <template> to " +
|
@@ -3301,7 +3300,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3301
3300
|
} else if ((slotScope = getAndRemoveAttr(el, 'slot-scope'))) {
|
3302
3301
|
/* istanbul ignore if */
|
3303
3302
|
if (process.env.NODE_ENV !== 'production' && el.attrsMap['v-for']) {
|
3304
|
-
warn$1(
|
3303
|
+
warn$1$1(
|
3305
3304
|
"Ambiguous combined usage of slot-scope and v-for on <" + (el.tag) + "> " +
|
3306
3305
|
"(v-for takes higher priority). Use a wrapper <template> for the " +
|
3307
3306
|
"scoped slot to make it clearer.",
|
@@ -3332,13 +3331,13 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3332
3331
|
if (slotBinding) {
|
3333
3332
|
if (process.env.NODE_ENV !== 'production') {
|
3334
3333
|
if (el.slotTarget || el.slotScope) {
|
3335
|
-
warn$1(
|
3334
|
+
warn$1$1(
|
3336
3335
|
"Unexpected mixed usage of different slot syntaxes.",
|
3337
3336
|
el
|
3338
3337
|
);
|
3339
3338
|
}
|
3340
3339
|
if (el.parent && !maybeComponent(el.parent)) {
|
3341
|
-
warn$1(
|
3340
|
+
warn$1$1(
|
3342
3341
|
"<template v-slot> can only appear at the root level inside " +
|
3343
3342
|
"the receiving component",
|
3344
3343
|
el
|
@@ -3358,19 +3357,19 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3358
3357
|
if (slotBinding$1) {
|
3359
3358
|
if (process.env.NODE_ENV !== 'production') {
|
3360
3359
|
if (!maybeComponent(el)) {
|
3361
|
-
warn$1(
|
3360
|
+
warn$1$1(
|
3362
3361
|
"v-slot can only be used on components or <template>.",
|
3363
3362
|
slotBinding$1
|
3364
3363
|
);
|
3365
3364
|
}
|
3366
3365
|
if (el.slotScope || el.slotTarget) {
|
3367
|
-
warn$1(
|
3366
|
+
warn$1$1(
|
3368
3367
|
"Unexpected mixed usage of different slot syntaxes.",
|
3369
3368
|
el
|
3370
3369
|
);
|
3371
3370
|
}
|
3372
3371
|
if (el.scopedSlots) {
|
3373
|
-
warn$1(
|
3372
|
+
warn$1$1(
|
3374
3373
|
"To avoid scope ambiguity, the default slot should also use " +
|
3375
3374
|
"<template> syntax when there are other named slots.",
|
3376
3375
|
slotBinding$1
|
@@ -3407,7 +3406,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3407
3406
|
if (binding.name[0] !== '#') {
|
3408
3407
|
name = 'default';
|
3409
3408
|
} else if (process.env.NODE_ENV !== 'production') {
|
3410
|
-
warn$1(
|
3409
|
+
warn$1$1(
|
3411
3410
|
"v-slot shorthand syntax requires a slot name.",
|
3412
3411
|
binding
|
3413
3412
|
);
|
@@ -3425,7 +3424,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3425
3424
|
if (el.tag === 'slot') {
|
3426
3425
|
el.slotName = getBindingAttr(el, 'name');
|
3427
3426
|
if (process.env.NODE_ENV !== 'production' && el.key) {
|
3428
|
-
warn$1(
|
3427
|
+
warn$1$1(
|
3429
3428
|
"`key` does not work on <slot> because slots are abstract outlets " +
|
3430
3429
|
"and can possibly expand into multiple elements. " +
|
3431
3430
|
"Use the key on a wrapping element instead.",
|
@@ -3471,38 +3470,38 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3471
3470
|
process.env.NODE_ENV !== 'production' &&
|
3472
3471
|
value.trim().length === 0
|
3473
3472
|
) {
|
3474
|
-
warn$1(
|
3473
|
+
warn$1$1(
|
3475
3474
|
("The value for a v-bind expression cannot be empty. Found in \"v-bind:" + name + "\"")
|
3476
3475
|
);
|
3477
3476
|
}
|
3478
3477
|
if (modifiers) {
|
3479
3478
|
if (modifiers.prop && !isDynamic) {
|
3480
|
-
name = camelize(name);
|
3479
|
+
name = camelize$1(name);
|
3481
3480
|
if (name === 'innerHtml') { name = 'innerHTML'; }
|
3482
3481
|
}
|
3483
3482
|
if (modifiers.camel && !isDynamic) {
|
3484
|
-
name = camelize(name);
|
3483
|
+
name = camelize$1(name);
|
3485
3484
|
}
|
3486
3485
|
if (modifiers.sync) {
|
3487
3486
|
syncGen = genAssignmentCode(value, "$event");
|
3488
3487
|
if (!isDynamic) {
|
3489
3488
|
addHandler(
|
3490
3489
|
el,
|
3491
|
-
("update:" + (camelize(name))),
|
3490
|
+
("update:" + (camelize$1(name))),
|
3492
3491
|
syncGen,
|
3493
3492
|
null,
|
3494
3493
|
false,
|
3495
|
-
warn$1,
|
3494
|
+
warn$1$1,
|
3496
3495
|
list[i]
|
3497
3496
|
);
|
3498
|
-
if (hyphenate(name) !== camelize(name)) {
|
3497
|
+
if (hyphenate$1(name) !== camelize$1(name)) {
|
3499
3498
|
addHandler(
|
3500
3499
|
el,
|
3501
|
-
("update:" + (hyphenate(name))),
|
3500
|
+
("update:" + (hyphenate$1(name))),
|
3502
3501
|
syncGen,
|
3503
3502
|
null,
|
3504
3503
|
false,
|
3505
|
-
warn$1,
|
3504
|
+
warn$1$1,
|
3506
3505
|
list[i]
|
3507
3506
|
);
|
3508
3507
|
}
|
@@ -3514,7 +3513,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3514
3513
|
syncGen,
|
3515
3514
|
null,
|
3516
3515
|
false,
|
3517
|
-
warn$1,
|
3516
|
+
warn$1$1,
|
3518
3517
|
list[i],
|
3519
3518
|
true // dynamic
|
3520
3519
|
);
|
@@ -3534,7 +3533,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3534
3533
|
if (isDynamic) {
|
3535
3534
|
name = name.slice(1, -1);
|
3536
3535
|
}
|
3537
|
-
addHandler(el, name, value, modifiers, false, warn$1, list[i], isDynamic);
|
3536
|
+
addHandler(el, name, value, modifiers, false, warn$1$1, list[i], isDynamic);
|
3538
3537
|
} else { // normal directives
|
3539
3538
|
name = name.replace(dirRE, '');
|
3540
3539
|
// parse arg
|
@@ -3558,7 +3557,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3558
3557
|
if (process.env.NODE_ENV !== 'production') {
|
3559
3558
|
var res = parseText(value, delimiters);
|
3560
3559
|
if (res) {
|
3561
|
-
warn$1(
|
3560
|
+
warn$1$1(
|
3562
3561
|
name + "=\"" + value + "\": " +
|
3563
3562
|
'Interpolation inside attributes has been removed. ' +
|
3564
3563
|
'Use v-bind or the colon shorthand instead. For example, ' +
|
@@ -3604,9 +3603,9 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3604
3603
|
for (var i = 0, l = attrs.length; i < l; i++) {
|
3605
3604
|
if (
|
3606
3605
|
process.env.NODE_ENV !== 'production' &&
|
3607
|
-
map[attrs[i].name] && !isIE && !isEdge
|
3606
|
+
map[attrs[i].name] && !isIE && !isEdge$1
|
3608
3607
|
) {
|
3609
|
-
warn$1('duplicate attribute: ' + attrs[i].name, attrs[i]);
|
3608
|
+
warn$1$1('duplicate attribute: ' + attrs[i].name, attrs[i]);
|
3610
3609
|
}
|
3611
3610
|
map[attrs[i].name] = attrs[i].value;
|
3612
3611
|
}
|
@@ -3648,7 +3647,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3648
3647
|
var _el = el;
|
3649
3648
|
while (_el) {
|
3650
3649
|
if (_el.for && _el.alias === value) {
|
3651
|
-
warn$1(
|
3650
|
+
warn$1$1(
|
3652
3651
|
"<" + (el.tag) + " v-model=\"" + value + "\">: " +
|
3653
3652
|
"You are binding v-model directly to a v-for iteration alias. " +
|
3654
3653
|
"This will not be able to modify the v-for source array because " +
|
@@ -3782,18 +3781,10 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3782
3781
|
genRadioModel(el, value, modifiers);
|
3783
3782
|
} else if (tag === 'input' || tag === 'textarea') {
|
3784
3783
|
genDefaultModel(el, value, modifiers);
|
3785
|
-
} else
|
3784
|
+
} else {
|
3786
3785
|
genComponentModel(el, value, modifiers);
|
3787
3786
|
// component v-model doesn't need extra runtime
|
3788
3787
|
return false
|
3789
|
-
} else if (process.env.NODE_ENV !== 'production') {
|
3790
|
-
warn$2(
|
3791
|
-
"<" + (el.tag) + " v-model=\"" + value + "\">: " +
|
3792
|
-
"v-model is not supported on this element type. " +
|
3793
|
-
'If you are working with contenteditable, it\'s recommended to ' +
|
3794
|
-
'wrap a library dedicated for that purpose inside a custom component.',
|
3795
|
-
el.rawAttrsMap['v-model']
|
3796
|
-
);
|
3797
3788
|
}
|
3798
3789
|
|
3799
3790
|
// ensure runtime directive metadata
|
@@ -3923,16 +3914,16 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3923
3914
|
|
3924
3915
|
/* */
|
3925
3916
|
|
3926
|
-
function html (el, dir) {
|
3917
|
+
function html$2 (el, dir) {
|
3927
3918
|
if (dir.value) {
|
3928
3919
|
addProp(el, 'innerHTML', ("_s(" + (dir.value) + ")"), dir);
|
3929
3920
|
}
|
3930
3921
|
}
|
3931
3922
|
|
3932
|
-
var directives = {
|
3923
|
+
var directives$1 = {
|
3933
3924
|
model: model$1,
|
3934
3925
|
text: text,
|
3935
|
-
html: html
|
3926
|
+
html: html$2
|
3936
3927
|
};
|
3937
3928
|
|
3938
3929
|
/* */
|
@@ -3940,12 +3931,12 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3940
3931
|
var baseOptions = {
|
3941
3932
|
expectHTML: true,
|
3942
3933
|
modules: modules,
|
3943
|
-
directives: directives,
|
3934
|
+
directives: directives$1,
|
3944
3935
|
isPreTag: isPreTag,
|
3945
3936
|
isUnaryTag: isUnaryTag,
|
3946
3937
|
mustUseProp: mustUseProp,
|
3947
3938
|
canBeLeftOpenTag: canBeLeftOpenTag,
|
3948
|
-
isReservedTag: isReservedTag,
|
3939
|
+
isReservedTag: isReservedTag$1,
|
3949
3940
|
getTagNamespace: getTagNamespace,
|
3950
3941
|
staticKeys: genStaticKeys(modules)
|
3951
3942
|
};
|
@@ -3955,7 +3946,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3955
3946
|
var isStaticKey;
|
3956
3947
|
var isPlatformReservedTag;
|
3957
3948
|
|
3958
|
-
var genStaticKeysCached = cached(genStaticKeys$1);
|
3949
|
+
var genStaticKeysCached = cached$1(genStaticKeys$1);
|
3959
3950
|
|
3960
3951
|
/**
|
3961
3952
|
* Goal of the optimizer: walk the generated template AST tree
|
@@ -3979,7 +3970,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
3979
3970
|
}
|
3980
3971
|
|
3981
3972
|
function genStaticKeys$1 (keys) {
|
3982
|
-
return makeMap(
|
3973
|
+
return makeMap$1(
|
3983
3974
|
'type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap' +
|
3984
3975
|
(keys ? ',' + keys : '')
|
3985
3976
|
)
|
@@ -4244,7 +4235,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
4244
4235
|
|
4245
4236
|
function on (el, dir) {
|
4246
4237
|
if (process.env.NODE_ENV !== 'production' && dir.modifiers) {
|
4247
|
-
warn("v-on without argument does not support modifiers.");
|
4238
|
+
warn$1("v-on without argument does not support modifiers.");
|
4248
4239
|
}
|
4249
4240
|
el.wrapListeners = function (code) { return ("_g(" + code + "," + (dir.value) + ")"); };
|
4250
4241
|
}
|
@@ -4276,7 +4267,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
4276
4267
|
this.warn = options.warn || baseWarn;
|
4277
4268
|
this.transforms = pluckModuleFunction(options.modules, 'transformCode');
|
4278
4269
|
this.dataGenFns = pluckModuleFunction(options.modules, 'genData');
|
4279
|
-
this.directives = extend(extend({}, baseDirectives), options.directives);
|
4270
|
+
this.directives = extend$1(extend$1({}, baseDirectives), options.directives);
|
4280
4271
|
var isReservedTag = options.isReservedTag || no;
|
4281
4272
|
this.maybeComponent = function (el) { return !!el.component || !isReservedTag(el.tag); };
|
4282
4273
|
this.onceId = 0;
|
@@ -4760,7 +4751,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
4760
4751
|
var attrs = el.attrs || el.dynamicAttrs
|
4761
4752
|
? genProps((el.attrs || []).concat(el.dynamicAttrs || []).map(function (attr) { return ({
|
4762
4753
|
// slot props are camelized
|
4763
|
-
name: camelize(attr.name),
|
4754
|
+
name: camelize$1(attr.name),
|
4764
4755
|
value: attr.value,
|
4765
4756
|
dynamic: attr.dynamic
|
4766
4757
|
}); }))
|
@@ -5017,8 +5008,8 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
5017
5008
|
options,
|
5018
5009
|
vm
|
5019
5010
|
) {
|
5020
|
-
options = extend({}, options);
|
5021
|
-
var warn$$1 = options.warn || warn;
|
5011
|
+
options = extend$1({}, options);
|
5012
|
+
var warn$$1 = options.warn || warn$1;
|
5022
5013
|
delete options.warn;
|
5023
5014
|
|
5024
5015
|
/* istanbul ignore if */
|
@@ -5150,7 +5141,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
5150
5141
|
}
|
5151
5142
|
// merge custom directives
|
5152
5143
|
if (options.directives) {
|
5153
|
-
finalOptions.directives = extend(
|
5144
|
+
finalOptions.directives = extend$1(
|
5154
5145
|
Object.create(baseOptions.directives || null),
|
5155
5146
|
options.directives
|
5156
5147
|
);
|
@@ -5210,7 +5201,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
5210
5201
|
|
5211
5202
|
/* */
|
5212
5203
|
|
5213
|
-
var isAttr = makeMap(
|
5204
|
+
var isAttr = makeMap$1(
|
5214
5205
|
'accept,accept-charset,accesskey,action,align,alt,async,autocomplete,' +
|
5215
5206
|
'autofocus,autoplay,autosave,bgcolor,border,buffered,challenge,charset,' +
|
5216
5207
|
'checked,cite,class,code,codebase,color,cols,colspan,content,' +
|
@@ -5477,7 +5468,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
5477
5468
|
)
|
5478
5469
|
}
|
5479
5470
|
|
5480
|
-
var isBuiltInDir = makeMap('text,html,show,on,bind,model,pre,cloak,once');
|
5471
|
+
var isBuiltInDir = makeMap$1('text,html,show,on,bind,model,pre,cloak,once');
|
5481
5472
|
|
5482
5473
|
function hasCustomDirective (node) {
|
5483
5474
|
return (
|
@@ -5769,14 +5760,14 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
5769
5760
|
}, '__esModule', {value: true});
|
5770
5761
|
|
5771
5762
|
try {
|
5772
|
-
var vueVersion = require$$0__default[
|
5763
|
+
var vueVersion = require$$0__default["default"].version;
|
5773
5764
|
} catch (e) {}
|
5774
5765
|
|
5775
5766
|
var vueTemplateCompiler = build;
|
5776
5767
|
|
5777
5768
|
function _interopDefaultLegacy$1 (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
5778
5769
|
|
5779
|
-
var Vue__default = /*#__PURE__*/_interopDefaultLegacy$1(require$$0__default[
|
5770
|
+
var Vue__default = /*#__PURE__*/_interopDefaultLegacy$1(require$$0__default["default"]);
|
5780
5771
|
|
5781
5772
|
//
|
5782
5773
|
|
@@ -5823,9 +5814,9 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
5823
5814
|
}, [])
|
5824
5815
|
}
|
5825
5816
|
|
5826
|
-
var commonjsGlobal
|
5817
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof commonjsGlobal$1 !== 'undefined' ? commonjsGlobal$1 : typeof self !== 'undefined' ? self : {};
|
5827
5818
|
|
5828
|
-
function createCommonjsModule
|
5819
|
+
function createCommonjsModule(fn, basedir, module) {
|
5829
5820
|
return module = {
|
5830
5821
|
path: basedir,
|
5831
5822
|
exports: {},
|
@@ -5843,7 +5834,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
5843
5834
|
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
5844
5835
|
}
|
5845
5836
|
|
5846
|
-
var semver = createCommonjsModule
|
5837
|
+
var semver = createCommonjsModule(function (module, exports) {
|
5847
5838
|
exports = module.exports = SemVer;
|
5848
5839
|
|
5849
5840
|
var debug;
|
@@ -7469,14 +7460,14 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
7469
7460
|
throw new Error(("[vue-test-utils]: " + msg))
|
7470
7461
|
}
|
7471
7462
|
|
7472
|
-
function warn
|
7463
|
+
function warn(msg) {
|
7473
7464
|
console.error(("[vue-test-utils]: " + msg));
|
7474
7465
|
}
|
7475
7466
|
|
7476
|
-
var camelizeRE
|
7467
|
+
var camelizeRE = /-(\w)/g;
|
7477
7468
|
|
7478
|
-
var camelize
|
7479
|
-
var camelizedStr = str.replace(camelizeRE
|
7469
|
+
var camelize = function (str) {
|
7470
|
+
var camelizedStr = str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; }
|
7480
7471
|
);
|
7481
7472
|
return camelizedStr.charAt(0).toLowerCase() + camelizedStr.slice(1)
|
7482
7473
|
};
|
@@ -7489,10 +7480,10 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
7489
7480
|
/**
|
7490
7481
|
* Hyphenate a camelCase string.
|
7491
7482
|
*/
|
7492
|
-
var hyphenateRE
|
7493
|
-
var hyphenate
|
7483
|
+
var hyphenateRE = /\B([A-Z])/g;
|
7484
|
+
var hyphenate = function (str) { return str.replace(hyphenateRE, '-$1').toLowerCase(); };
|
7494
7485
|
|
7495
|
-
function hasOwnProperty
|
7486
|
+
function hasOwnProperty(obj, prop) {
|
7496
7487
|
return Object.prototype.hasOwnProperty.call(obj, prop)
|
7497
7488
|
}
|
7498
7489
|
|
@@ -7506,30 +7497,30 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
7506
7497
|
return
|
7507
7498
|
}
|
7508
7499
|
// check local registration variations first
|
7509
|
-
if (hasOwnProperty
|
7500
|
+
if (hasOwnProperty(components, id)) {
|
7510
7501
|
return components[id]
|
7511
7502
|
}
|
7512
|
-
var camelizedId = camelize
|
7513
|
-
if (hasOwnProperty
|
7503
|
+
var camelizedId = camelize(id);
|
7504
|
+
if (hasOwnProperty(components, camelizedId)) {
|
7514
7505
|
return components[camelizedId]
|
7515
7506
|
}
|
7516
7507
|
var PascalCaseId = capitalize(camelizedId);
|
7517
|
-
if (hasOwnProperty
|
7508
|
+
if (hasOwnProperty(components, PascalCaseId)) {
|
7518
7509
|
return components[PascalCaseId]
|
7519
7510
|
}
|
7520
7511
|
// fallback to prototype chain
|
7521
7512
|
return components[id] || components[camelizedId] || components[PascalCaseId]
|
7522
7513
|
}
|
7523
7514
|
|
7524
|
-
var UA
|
7515
|
+
var UA =
|
7525
7516
|
typeof window !== 'undefined' &&
|
7526
7517
|
'navigator' in window &&
|
7527
7518
|
navigator.userAgent.toLowerCase();
|
7528
7519
|
|
7529
|
-
var isPhantomJS = UA
|
7520
|
+
var isPhantomJS = UA && UA.includes && UA.match(/phantomjs/i);
|
7530
7521
|
|
7531
|
-
var isEdge
|
7532
|
-
var isChrome = UA
|
7522
|
+
var isEdge = UA && UA.indexOf('edge/') > 0;
|
7523
|
+
var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
|
7533
7524
|
|
7534
7525
|
// get the event used to trigger v-model handler that updates bound data
|
7535
7526
|
function getCheckedEvent() {
|
@@ -7562,13 +7553,13 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
7562
7553
|
function warnDeprecated(method, fallback) {
|
7563
7554
|
if ( fallback === void 0 ) fallback = '';
|
7564
7555
|
|
7565
|
-
if (!config
|
7556
|
+
if (!config.showDeprecationWarnings) { return }
|
7566
7557
|
var msg = method + " is deprecated and will be removed in the next major version.";
|
7567
7558
|
if (fallback) { msg += " " + fallback + "."; }
|
7568
|
-
if (config
|
7569
|
-
config
|
7559
|
+
if (config.deprecationWarningHandler) {
|
7560
|
+
config.deprecationWarningHandler(method, msg);
|
7570
7561
|
} else {
|
7571
|
-
warn
|
7562
|
+
warn(msg);
|
7572
7563
|
}
|
7573
7564
|
}
|
7574
7565
|
|
@@ -7592,7 +7583,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
7592
7583
|
// $FlowIgnore
|
7593
7584
|
_Vue.prototype[key] = mockedProperties[key];
|
7594
7585
|
} catch (e) {
|
7595
|
-
warn
|
7586
|
+
warn(
|
7596
7587
|
"could not overwrite property " + key + ", this is " +
|
7597
7588
|
"usually caused by a plugin that has added " +
|
7598
7589
|
"the property as a read-only value"
|
@@ -7747,13 +7738,13 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
7747
7738
|
template,
|
7748
7739
|
name
|
7749
7740
|
) {
|
7750
|
-
return [capitalize, camelize
|
7741
|
+
return [capitalize, camelize, hyphenate].some(function (format) {
|
7751
7742
|
var re = new RegExp(("<" + (format(name)) + "\\s*(\\s|>|(/>))"), 'g');
|
7752
7743
|
return re.test(template)
|
7753
7744
|
})
|
7754
7745
|
}
|
7755
7746
|
|
7756
|
-
function isPlainObject
|
7747
|
+
function isPlainObject(c) {
|
7757
7748
|
return Object.prototype.toString.call(c) === '[object Object]'
|
7758
7749
|
}
|
7759
7750
|
|
@@ -7765,7 +7756,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
7765
7756
|
return c instanceof HTMLElement
|
7766
7757
|
}
|
7767
7758
|
|
7768
|
-
function makeMap
|
7759
|
+
function makeMap(str, expectsLowerCase) {
|
7769
7760
|
var map = Object.create(null);
|
7770
7761
|
var list = str.split(',');
|
7771
7762
|
for (var i = 0; i < list.length; i++) {
|
@@ -7780,7 +7771,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
7780
7771
|
}
|
7781
7772
|
}
|
7782
7773
|
|
7783
|
-
var isHTMLTag
|
7774
|
+
var isHTMLTag = makeMap(
|
7784
7775
|
'html,body,base,head,link,meta,style,title,' +
|
7785
7776
|
'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +
|
7786
7777
|
'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +
|
@@ -7796,14 +7787,14 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
7796
7787
|
|
7797
7788
|
// this map is intentionally selective, only covering SVG elements that may
|
7798
7789
|
// contain child elements.
|
7799
|
-
var isSVG
|
7790
|
+
var isSVG = makeMap(
|
7800
7791
|
'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +
|
7801
7792
|
'foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
|
7802
7793
|
'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',
|
7803
7794
|
true
|
7804
7795
|
);
|
7805
7796
|
|
7806
|
-
var isReservedTag
|
7797
|
+
var isReservedTag = function (tag) { return isHTMLTag(tag) || isSVG(tag); };
|
7807
7798
|
|
7808
7799
|
//
|
7809
7800
|
|
@@ -8032,9 +8023,9 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
8032
8023
|
function resolveComponent$1(obj, component) {
|
8033
8024
|
return (
|
8034
8025
|
obj[component] ||
|
8035
|
-
obj[hyphenate
|
8036
|
-
obj[camelize
|
8037
|
-
obj[capitalize(camelize
|
8026
|
+
obj[hyphenate(component)] ||
|
8027
|
+
obj[camelize(component)] ||
|
8028
|
+
obj[capitalize(camelize(component))] ||
|
8038
8029
|
obj[capitalize(component)] ||
|
8039
8030
|
{}
|
8040
8031
|
)
|
@@ -8108,7 +8099,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
8108
8099
|
{$_vueTestUtils_original: originalComponent,
|
8109
8100
|
$_doNotStubChildren: true,
|
8110
8101
|
render: function render(h, context) {
|
8111
|
-
var this$1 = this;
|
8102
|
+
var this$1$1 = this;
|
8112
8103
|
|
8113
8104
|
return h(
|
8114
8105
|
tagName,
|
@@ -8122,7 +8113,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
8122
8113
|
context
|
8123
8114
|
? context.children
|
8124
8115
|
: this.$options._renderChildren ||
|
8125
|
-
getScopedSlotRenderFunctions(this).map(function (x) { return this$1.$options.parent._vnode.data.scopedSlots[x]({}); }
|
8116
|
+
getScopedSlotRenderFunctions(this).map(function (x) { return this$1$1.$options.parent._vnode.data.scopedSlots[x]({}); }
|
8126
8117
|
)
|
8127
8118
|
)
|
8128
8119
|
}})
|
@@ -8229,7 +8220,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
8229
8220
|
return isConstructor(component) || (component && component.extends)
|
8230
8221
|
}
|
8231
8222
|
|
8232
|
-
function extend
|
8223
|
+
function extend(component, _Vue) {
|
8233
8224
|
var componentOptions = component.options ? component.options : component;
|
8234
8225
|
var stub = _Vue.extend(componentOptions);
|
8235
8226
|
stub.options.$_vueTestUtils_original = component;
|
@@ -8243,13 +8234,13 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
8243
8234
|
}
|
8244
8235
|
|
8245
8236
|
if (shouldExtend(component)) {
|
8246
|
-
return extend
|
8237
|
+
return extend(component, _Vue)
|
8247
8238
|
}
|
8248
8239
|
}
|
8249
8240
|
|
8250
8241
|
function shouldNotBeStubbed(el, allowlist, modifiedComponents) {
|
8251
8242
|
return (
|
8252
|
-
(typeof el === 'string' && isReservedTag
|
8243
|
+
(typeof el === 'string' && isReservedTag(el)) ||
|
8253
8244
|
isAllowlisted(el, allowlist) ||
|
8254
8245
|
isAlreadyStubbed(el, modifiedComponents)
|
8255
8246
|
)
|
@@ -8289,7 +8280,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
8289
8280
|
var stub = createStubFromComponent(el, el.name || 'anonymous', _Vue);
|
8290
8281
|
return originalCreateElement.apply(void 0, [ stub ].concat( args ))
|
8291
8282
|
}
|
8292
|
-
var Constructor = shouldExtend(el) ? extend
|
8283
|
+
var Constructor = shouldExtend(el) ? extend(el, _Vue) : el;
|
8293
8284
|
|
8294
8285
|
return originalCreateElement.apply(void 0, [ Constructor ].concat( args ))
|
8295
8286
|
}
|
@@ -8501,9 +8492,9 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
8501
8492
|
// testComponent -> TestComponent
|
8502
8493
|
componentName === capitalize(name) ||
|
8503
8494
|
// test-component -> TestComponent
|
8504
|
-
componentName === capitalize(camelize
|
8495
|
+
componentName === capitalize(camelize(name)) ||
|
8505
8496
|
// same match as above, but the component name vs query
|
8506
|
-
capitalize(camelize
|
8497
|
+
capitalize(camelize(componentName)) === name)
|
8507
8498
|
)
|
8508
8499
|
}
|
8509
8500
|
|
@@ -8738,7 +8729,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
8738
8729
|
}
|
8739
8730
|
|
8740
8731
|
if (_Vue.config.errorHandler && !hasWarned) {
|
8741
|
-
warn
|
8732
|
+
warn(
|
8742
8733
|
"Global error handler detected (Vue.config.errorHandler). \n" +
|
8743
8734
|
"Vue Test Utils sets a custom error handler to throw errors " +
|
8744
8735
|
"thrown by instances. If you want this behavior in " +
|
@@ -8756,7 +8747,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
8756
8747
|
if (stubs === false) {
|
8757
8748
|
return false
|
8758
8749
|
}
|
8759
|
-
if (isPlainObject
|
8750
|
+
if (isPlainObject(stubs)) {
|
8760
8751
|
return stubs
|
8761
8752
|
}
|
8762
8753
|
if (Array.isArray(stubs)) {
|
@@ -8828,7 +8819,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
8828
8819
|
methods: methods})
|
8829
8820
|
}
|
8830
8821
|
|
8831
|
-
var config
|
8822
|
+
var config = {
|
8832
8823
|
stubs: {
|
8833
8824
|
transition: true,
|
8834
8825
|
'transition-group': true
|
@@ -9292,7 +9283,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
9292
9283
|
Token: Token_1
|
9293
9284
|
};
|
9294
9285
|
|
9295
|
-
var acorn = createCommonjsModule
|
9286
|
+
var acorn = createCommonjsModule(function (module, exports) {
|
9296
9287
|
|
9297
9288
|
// acorn used char codes to squeeze the last bit of performance out
|
9298
9289
|
// Beautifier is okay without that, so we're using regex
|
@@ -10100,7 +10091,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
10100
10091
|
|
10101
10092
|
var Directives_1 = Directives;
|
10102
10093
|
|
10103
|
-
var directives
|
10094
|
+
var directives = {
|
10104
10095
|
Directives: Directives_1
|
10105
10096
|
};
|
10106
10097
|
|
@@ -10270,7 +10261,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
10270
10261
|
var InputScanner$2 = inputscanner.InputScanner;
|
10271
10262
|
var BaseTokenizer = tokenizer.Tokenizer;
|
10272
10263
|
var BASETOKEN = tokenizer.TOKEN;
|
10273
|
-
var Directives$1 = directives
|
10264
|
+
var Directives$1 = directives.Directives;
|
10274
10265
|
|
10275
10266
|
var Pattern$3 = pattern.Pattern;
|
10276
10267
|
var TemplatablePattern$1 = templatablepattern.TemplatablePattern;
|
@@ -12236,10 +12227,10 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
12236
12227
|
}
|
12237
12228
|
|
12238
12229
|
var javascript = js_beautify;
|
12239
|
-
var defaultOptions = function() {
|
12230
|
+
var defaultOptions$1 = function() {
|
12240
12231
|
return new Options$3();
|
12241
12232
|
};
|
12242
|
-
javascript.defaultOptions = defaultOptions;
|
12233
|
+
javascript.defaultOptions = defaultOptions$1;
|
12243
12234
|
|
12244
12235
|
var BaseOptions$1 = options.Options;
|
12245
12236
|
|
@@ -12265,7 +12256,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
12265
12256
|
var Options$5 = options$2.Options;
|
12266
12257
|
var Output$2 = output.Output;
|
12267
12258
|
var InputScanner$3 = inputscanner.InputScanner;
|
12268
|
-
var Directives$2 = directives
|
12259
|
+
var Directives$2 = directives.Directives;
|
12269
12260
|
|
12270
12261
|
var directives_core$1 = new Directives$2(/\/\*/, /\*\//);
|
12271
12262
|
|
@@ -12716,10 +12707,10 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
12716
12707
|
}
|
12717
12708
|
|
12718
12709
|
var css = css_beautify;
|
12719
|
-
var defaultOptions$1 = function() {
|
12710
|
+
var defaultOptions$1$1 = function() {
|
12720
12711
|
return new Options$6();
|
12721
12712
|
};
|
12722
|
-
css.defaultOptions = defaultOptions$1;
|
12713
|
+
css.defaultOptions = defaultOptions$1$1;
|
12723
12714
|
|
12724
12715
|
var BaseOptions$2 = options.Options;
|
12725
12716
|
|
@@ -12789,7 +12780,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
12789
12780
|
|
12790
12781
|
var BaseTokenizer$1 = tokenizer.Tokenizer;
|
12791
12782
|
var BASETOKEN$1 = tokenizer.TOKEN;
|
12792
|
-
var Directives$3 = directives
|
12783
|
+
var Directives$3 = directives.Directives;
|
12793
12784
|
var TemplatablePattern$2 = templatablepattern.TemplatablePattern;
|
12794
12785
|
var Pattern$4 = pattern.Pattern;
|
12795
12786
|
|
@@ -13894,30 +13885,30 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
13894
13885
|
return beautifier.beautify();
|
13895
13886
|
}
|
13896
13887
|
|
13897
|
-
var html
|
13888
|
+
var html = style_html;
|
13898
13889
|
var defaultOptions$2 = function() {
|
13899
13890
|
return new Options$9();
|
13900
13891
|
};
|
13901
|
-
html
|
13892
|
+
html.defaultOptions = defaultOptions$2;
|
13902
13893
|
|
13903
13894
|
function style_html$1(html_source, options, js, css$1) {
|
13904
13895
|
js = js || javascript;
|
13905
13896
|
css$1 = css$1 || css;
|
13906
|
-
return html
|
13897
|
+
return html(html_source, options, js, css$1);
|
13907
13898
|
}
|
13908
|
-
style_html$1.defaultOptions = html
|
13899
|
+
style_html$1.defaultOptions = html.defaultOptions;
|
13909
13900
|
|
13910
13901
|
var js = javascript;
|
13911
13902
|
var css$1 = css;
|
13912
|
-
var html$1
|
13903
|
+
var html$1 = style_html$1;
|
13913
13904
|
|
13914
13905
|
var src = {
|
13915
13906
|
js: js,
|
13916
13907
|
css: css$1,
|
13917
|
-
html: html$1
|
13908
|
+
html: html$1
|
13918
13909
|
};
|
13919
13910
|
|
13920
|
-
var js$1 = createCommonjsModule
|
13911
|
+
var js$1 = createCommonjsModule(function (module) {
|
13921
13912
|
|
13922
13913
|
/**
|
13923
13914
|
The following batches are equivalent:
|
@@ -14015,7 +14006,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
14015
14006
|
|
14016
14007
|
function assign(a, b) {
|
14017
14008
|
for (var key in b) {
|
14018
|
-
if (hasOwn
|
14009
|
+
if (hasOwn(b, key)) {
|
14019
14010
|
a[key] = b[key];
|
14020
14011
|
}
|
14021
14012
|
}
|
@@ -14025,7 +14016,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
14025
14016
|
* Returns true if the given `key` is an own property of `obj`.
|
14026
14017
|
*/
|
14027
14018
|
|
14028
|
-
function hasOwn
|
14019
|
+
function hasOwn(obj, key) {
|
14029
14020
|
return Object.prototype.hasOwnProperty.call(obj, key);
|
14030
14021
|
}
|
14031
14022
|
|
@@ -14825,8 +14816,8 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
14825
14816
|
var targetVal = target[key];
|
14826
14817
|
|
14827
14818
|
if (
|
14828
|
-
isPlainObject
|
14829
|
-
isPlainObject
|
14819
|
+
isPlainObject(val) &&
|
14820
|
+
isPlainObject(targetVal) &&
|
14830
14821
|
Object.keys(val).length > 0
|
14831
14822
|
) {
|
14832
14823
|
recursivelySetData(vm, targetVal, val);
|
@@ -14904,7 +14895,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
14904
14895
|
bubbles: false,
|
14905
14896
|
cancelable: false
|
14906
14897
|
};
|
14907
|
-
var cached
|
14898
|
+
var cached = {
|
14908
14899
|
eventInterface: "Event",
|
14909
14900
|
bubbles: false,
|
14910
14901
|
cancelable: false
|
@@ -15702,7 +15693,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
15702
15693
|
beginEvent: beginEvent,
|
15703
15694
|
blur: blur,
|
15704
15695
|
boundary: boundary,
|
15705
|
-
cached: cached
|
15696
|
+
cached: cached,
|
15706
15697
|
canplay: canplay,
|
15707
15698
|
canplaythrough: canplaythrough,
|
15708
15699
|
change: change,
|
@@ -15878,7 +15869,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
15878
15869
|
beginEvent: beginEvent,
|
15879
15870
|
blur: blur,
|
15880
15871
|
boundary: boundary,
|
15881
|
-
cached: cached
|
15872
|
+
cached: cached,
|
15882
15873
|
canplay: canplay,
|
15883
15874
|
canplaythrough: canplaythrough,
|
15884
15875
|
change: change,
|
@@ -16231,7 +16222,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
16231
16222
|
*/
|
16232
16223
|
Wrapper.prototype.__warnIfDestroyed = function __warnIfDestroyed () {
|
16233
16224
|
if (!this.exists()) {
|
16234
|
-
warn
|
16225
|
+
warn('Operations on destroyed component are discouraged');
|
16235
16226
|
}
|
16236
16227
|
};
|
16237
16228
|
|
@@ -16261,7 +16252,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
16261
16252
|
* Returns an Array containing all the classes on the element
|
16262
16253
|
*/
|
16263
16254
|
Wrapper.prototype.classes = function classes (className) {
|
16264
|
-
var this$1 = this;
|
16255
|
+
var this$1$1 = this;
|
16265
16256
|
|
16266
16257
|
this.__warnIfDestroyed();
|
16267
16258
|
|
@@ -16272,7 +16263,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
16272
16263
|
var cssModuleIdentifiers = Object.keys(this.vm.$style).reduce(
|
16273
16264
|
function (acc, key) {
|
16274
16265
|
// $FlowIgnore
|
16275
|
-
var moduleIdent = this$1.vm.$style[key];
|
16266
|
+
var moduleIdent = this$1$1.vm.$style[key];
|
16276
16267
|
if (moduleIdent) {
|
16277
16268
|
acc[moduleIdent.split(' ')[0]] = key;
|
16278
16269
|
}
|
@@ -16472,7 +16463,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
16472
16463
|
selector,
|
16473
16464
|
filterFn
|
16474
16465
|
) {
|
16475
|
-
var this$1 = this;
|
16466
|
+
var this$1$1 = this;
|
16476
16467
|
if ( filterFn === void 0 ) filterFn = function () { return true; };
|
16477
16468
|
|
16478
16469
|
var nodes = find(this.rootNode, this.vm, selector);
|
@@ -16480,7 +16471,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
16480
16471
|
.map(function (node) {
|
16481
16472
|
// Using CSS Selector, returns a VueWrapper instance if the root element
|
16482
16473
|
// binds a Vue instance.
|
16483
|
-
var wrapper = createWrapper(node, this$1.options);
|
16474
|
+
var wrapper = createWrapper(node, this$1$1.options);
|
16484
16475
|
wrapper.selector = rawSelector;
|
16485
16476
|
return wrapper
|
16486
16477
|
})
|
@@ -16603,7 +16594,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
16603
16594
|
* @deprecated
|
16604
16595
|
*/
|
16605
16596
|
Wrapper.prototype.overview = function overview () {
|
16606
|
-
var this$1 = this;
|
16597
|
+
var this$1$1 = this;
|
16607
16598
|
|
16608
16599
|
warnDeprecated("overview");
|
16609
16600
|
this.__warnIfDestroyed();
|
@@ -16636,7 +16627,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
16636
16627
|
void 0, Object.keys(this.vm._computedWatchers).map(function (computedKey) {
|
16637
16628
|
var obj;
|
16638
16629
|
|
16639
|
-
return (( obj = {}, obj[computedKey] = this$1.vm[computedKey], obj ));
|
16630
|
+
return (( obj = {}, obj[computedKey] = this$1$1.vm[computedKey], obj ));
|
16640
16631
|
})
|
16641
16632
|
)
|
16642
16633
|
: // $FlowIgnore
|
@@ -16683,7 +16674,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
16683
16674
|
* Returns an Object containing the prop name/value pairs on the element
|
16684
16675
|
*/
|
16685
16676
|
Wrapper.prototype.props = function props (key) {
|
16686
|
-
var this$1 = this;
|
16677
|
+
var this$1$1 = this;
|
16687
16678
|
|
16688
16679
|
if (this.isFunctionalComponent) {
|
16689
16680
|
throwError(
|
@@ -16700,8 +16691,8 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
16700
16691
|
|
16701
16692
|
if (keys) {
|
16702
16693
|
(keys || {}).forEach(function (key) {
|
16703
|
-
if (this$1.vm) {
|
16704
|
-
props[key] = this$1.vm[key];
|
16694
|
+
if (this$1$1.vm) {
|
16695
|
+
props[key] = this$1$1.vm[key];
|
16705
16696
|
}
|
16706
16697
|
});
|
16707
16698
|
}
|
@@ -16829,7 +16820,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
16829
16820
|
* @deprecated
|
16830
16821
|
*/
|
16831
16822
|
Wrapper.prototype.setMethods = function setMethods (methods) {
|
16832
|
-
var this$1 = this;
|
16823
|
+
var this$1$1 = this;
|
16833
16824
|
|
16834
16825
|
warnDeprecated(
|
16835
16826
|
"setMethods",
|
@@ -16843,9 +16834,9 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
16843
16834
|
|
16844
16835
|
Object.keys(methods).forEach(function (key) {
|
16845
16836
|
// $FlowIgnore : Problem with possibly null this.vm
|
16846
|
-
this$1.vm[key] = methods[key];
|
16837
|
+
this$1$1.vm[key] = methods[key];
|
16847
16838
|
// $FlowIgnore : Problem with possibly null this.vm
|
16848
|
-
this$1.vm.$options.methods[key] = methods[key];
|
16839
|
+
this$1$1.vm.$options.methods[key] = methods[key];
|
16849
16840
|
});
|
16850
16841
|
|
16851
16842
|
if (this.vnode) {
|
@@ -16858,7 +16849,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
16858
16849
|
* Sets vm props
|
16859
16850
|
*/
|
16860
16851
|
Wrapper.prototype.setProps = function setProps (data) {
|
16861
|
-
var this$1 = this;
|
16852
|
+
var this$1$1 = this;
|
16862
16853
|
|
16863
16854
|
// Validate the setProps method call
|
16864
16855
|
if (this.isFunctionalComponent) {
|
@@ -16886,7 +16877,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
16886
16877
|
typeof data[key] === 'object' &&
|
16887
16878
|
data[key] !== null &&
|
16888
16879
|
// $FlowIgnore : Problem with possibly null this.vm
|
16889
|
-
data[key] === this$1.vm[key]
|
16880
|
+
data[key] === this$1$1.vm[key]
|
16890
16881
|
) {
|
16891
16882
|
throwError(
|
16892
16883
|
"wrapper.setProps() called with the same object of the existing " +
|
@@ -16897,9 +16888,9 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
16897
16888
|
|
16898
16889
|
if (
|
16899
16890
|
VUE_VERSION <= 2.3 &&
|
16900
|
-
(!this$1.vm ||
|
16901
|
-
!this$1.vm.$options._propKeys ||
|
16902
|
-
!this$1.vm.$options._propKeys.some(function (prop) { return prop === key; }))
|
16891
|
+
(!this$1$1.vm ||
|
16892
|
+
!this$1$1.vm.$options._propKeys ||
|
16893
|
+
!this$1$1.vm.$options._propKeys.some(function (prop) { return prop === key; }))
|
16903
16894
|
) {
|
16904
16895
|
throwError(
|
16905
16896
|
"wrapper.setProps() called with " + key + " property which " +
|
@@ -16908,7 +16899,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
16908
16899
|
}
|
16909
16900
|
|
16910
16901
|
// $FlowIgnore : Problem with possibly null this.vm
|
16911
|
-
var parent = this$1.vm.$parent;
|
16902
|
+
var parent = this$1$1.vm.$parent;
|
16912
16903
|
parent.$set(parent.vueTestUtils_childProps, key, data[key]);
|
16913
16904
|
});
|
16914
16905
|
|
@@ -16984,16 +16975,16 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
16984
16975
|
* Simulates event triggering
|
16985
16976
|
*/
|
16986
16977
|
Wrapper.prototype.__simulateTrigger = function __simulateTrigger (type, options) {
|
16987
|
-
var this$1 = this;
|
16978
|
+
var this$1$1 = this;
|
16988
16979
|
|
16989
16980
|
var regularEventTrigger = function (type, options) {
|
16990
16981
|
var event = createDOMEvent(type, options);
|
16991
|
-
return this$1.element.dispatchEvent(event)
|
16982
|
+
return this$1$1.element.dispatchEvent(event)
|
16992
16983
|
};
|
16993
16984
|
|
16994
16985
|
var focusEventTrigger = function (type, options) {
|
16995
|
-
if (this$1.element instanceof HTMLElement) {
|
16996
|
-
return this$1.element.focus()
|
16986
|
+
if (this$1$1.element instanceof HTMLElement) {
|
16987
|
+
return this$1$1.element.focus()
|
16997
16988
|
}
|
16998
16989
|
|
16999
16990
|
regularEventTrigger(type, options);
|
@@ -17059,12 +17050,12 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
17059
17050
|
|
17060
17051
|
var VueWrapper = /*@__PURE__*/(function (Wrapper) {
|
17061
17052
|
function VueWrapper(vm, options) {
|
17062
|
-
var this$1 = this;
|
17053
|
+
var this$1$1 = this;
|
17063
17054
|
|
17064
17055
|
Wrapper.call(this, vm._vnode, options, true);
|
17065
17056
|
// $FlowIgnore : issue with defineProperty
|
17066
17057
|
Object.defineProperty(this, 'rootNode', {
|
17067
|
-
get: function () { return vm.$vnode || { child: this$1.vm }; },
|
17058
|
+
get: function () { return vm.$vnode || { child: this$1$1.vm }; },
|
17068
17059
|
set: function () { return throwError('wrapper.vnode is read-only'); }
|
17069
17060
|
});
|
17070
17061
|
// $FlowIgnore : issue with defineProperty
|
@@ -17219,10 +17210,10 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
17219
17210
|
var _assocIndexOf = assocIndexOf;
|
17220
17211
|
|
17221
17212
|
/** Used for built-in method references. */
|
17222
|
-
var arrayProto
|
17213
|
+
var arrayProto = Array.prototype;
|
17223
17214
|
|
17224
17215
|
/** Built-in value references. */
|
17225
|
-
var splice = arrayProto
|
17216
|
+
var splice = arrayProto.splice;
|
17226
17217
|
|
17227
17218
|
/**
|
17228
17219
|
* Removes `key` and its value from the list cache.
|
@@ -17401,7 +17392,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
17401
17392
|
var _stackHas = stackHas;
|
17402
17393
|
|
17403
17394
|
/** Detect free variable `global` from Node.js. */
|
17404
|
-
var freeGlobal = typeof commonjsGlobal
|
17395
|
+
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
17405
17396
|
|
17406
17397
|
var _freeGlobal = freeGlobal;
|
17407
17398
|
|
@@ -17422,7 +17413,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
17422
17413
|
var objectProto = Object.prototype;
|
17423
17414
|
|
17424
17415
|
/** Used to check objects for own properties. */
|
17425
|
-
var hasOwnProperty$1
|
17416
|
+
var hasOwnProperty$1 = objectProto.hasOwnProperty;
|
17426
17417
|
|
17427
17418
|
/**
|
17428
17419
|
* Used to resolve the
|
@@ -17442,7 +17433,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
17442
17433
|
* @returns {string} Returns the raw `toStringTag`.
|
17443
17434
|
*/
|
17444
17435
|
function getRawTag(value) {
|
17445
|
-
var isOwn = hasOwnProperty$1
|
17436
|
+
var isOwn = hasOwnProperty$1.call(value, symToStringTag),
|
17446
17437
|
tag = value[symToStringTag];
|
17447
17438
|
|
17448
17439
|
try {
|
@@ -17536,12 +17527,12 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
17536
17527
|
* _.isObject(null);
|
17537
17528
|
* // => false
|
17538
17529
|
*/
|
17539
|
-
function isObject
|
17530
|
+
function isObject(value) {
|
17540
17531
|
var type = typeof value;
|
17541
17532
|
return value != null && (type == 'object' || type == 'function');
|
17542
17533
|
}
|
17543
17534
|
|
17544
|
-
var isObject_1 = isObject
|
17535
|
+
var isObject_1 = isObject;
|
17545
17536
|
|
17546
17537
|
/** `Object#toString` result references. */
|
17547
17538
|
var asyncTag = '[object AsyncFunction]',
|
@@ -18309,7 +18300,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
18309
18300
|
|
18310
18301
|
var stubFalse_1 = stubFalse;
|
18311
18302
|
|
18312
|
-
var isBuffer_1$1 = createCommonjsModule
|
18303
|
+
var isBuffer_1$1 = createCommonjsModule(function (module, exports) {
|
18313
18304
|
/** Detect free variable `exports`. */
|
18314
18305
|
var freeExports = exports && !exports.nodeType && exports;
|
18315
18306
|
|
@@ -18481,7 +18472,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
18481
18472
|
|
18482
18473
|
var _baseUnary = baseUnary;
|
18483
18474
|
|
18484
|
-
var _nodeUtil = createCommonjsModule
|
18475
|
+
var _nodeUtil = createCommonjsModule(function (module, exports) {
|
18485
18476
|
/** Detect free variable `exports`. */
|
18486
18477
|
var freeExports = exports && !exports.nodeType && exports;
|
18487
18478
|
|
@@ -18822,7 +18813,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
18822
18813
|
|
18823
18814
|
var _baseAssignIn = baseAssignIn;
|
18824
18815
|
|
18825
|
-
var _cloneBuffer = createCommonjsModule
|
18816
|
+
var _cloneBuffer = createCommonjsModule(function (module, exports) {
|
18826
18817
|
/** Detect free variable `exports`. */
|
18827
18818
|
var freeExports = exports && !exports.nodeType && exports;
|
18828
18819
|
|
@@ -19757,7 +19748,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
19757
19748
|
"options.attachToDocument is deprecated in favor of options.attachTo and will be removed in a future release"
|
19758
19749
|
);
|
19759
19750
|
}
|
19760
|
-
if (options.parentComponent && !isPlainObject
|
19751
|
+
if (options.parentComponent && !isPlainObject(options.parentComponent)) {
|
19761
19752
|
throwError(
|
19762
19753
|
"options.parentComponent should be a valid Vue component options object"
|
19763
19754
|
);
|
@@ -19769,7 +19760,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
19769
19760
|
);
|
19770
19761
|
}
|
19771
19762
|
|
19772
|
-
if (options.context && !isPlainObject
|
19763
|
+
if (options.context && !isPlainObject(options.context)) {
|
19773
19764
|
throwError('mount.context must be an object');
|
19774
19765
|
}
|
19775
19766
|
|
@@ -19794,7 +19785,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
19794
19785
|
Vue__default['default'].config.productionTip = false;
|
19795
19786
|
Vue__default['default'].config.devtools = false;
|
19796
19787
|
|
19797
|
-
function mount(component, options) {
|
19788
|
+
function mount$1(component, options) {
|
19798
19789
|
if ( options === void 0 ) options = {};
|
19799
19790
|
|
19800
19791
|
warnIfNoWindow();
|
@@ -19808,7 +19799,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
19808
19799
|
options.localVue ? options.localVue.config : undefined
|
19809
19800
|
);
|
19810
19801
|
|
19811
|
-
var mergedOptions = mergeOptions(options, config
|
19802
|
+
var mergedOptions = mergeOptions(options, config);
|
19812
19803
|
|
19813
19804
|
validateOptions(mergedOptions, component);
|
19814
19805
|
|
@@ -19849,7 +19840,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
19849
19840
|
}
|
19850
19841
|
var createLocalVue_1 = createLocalVue;
|
19851
19842
|
var enableAutoDestroy_1 = enableAutoDestroy;
|
19852
|
-
var mount_1 = mount;
|
19843
|
+
var mount_1 = mount$1;
|
19853
19844
|
|
19854
19845
|
const ROOT_SELECTOR = '[data-cy-root]';
|
19855
19846
|
const getContainerEl = () => {
|
@@ -19993,7 +19984,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
19993
19984
|
});
|
19994
19985
|
}
|
19995
19986
|
|
19996
|
-
var defaultOptions
|
19987
|
+
var defaultOptions = [
|
19997
19988
|
'vue',
|
19998
19989
|
'extensions',
|
19999
19990
|
];
|
@@ -20118,10 +20109,10 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
20118
20109
|
* cy.get('#greeting').should('be.visible')
|
20119
20110
|
* })
|
20120
20111
|
*/
|
20121
|
-
var mount
|
20112
|
+
var mount = function (component, optionsOrProps) {
|
20122
20113
|
if (optionsOrProps === void 0) { optionsOrProps = {}; }
|
20123
|
-
var options = Cypress._.pick(optionsOrProps, defaultOptions
|
20124
|
-
var props = Cypress._.omit(optionsOrProps, defaultOptions
|
20114
|
+
var options = Cypress._.pick(optionsOrProps, defaultOptions);
|
20115
|
+
var props = Cypress._.omit(optionsOrProps, defaultOptions);
|
20125
20116
|
var componentName = getComponentDisplayName(component);
|
20126
20117
|
var message = "<" + componentName + " ... />";
|
20127
20118
|
return cy
|
@@ -20184,7 +20175,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
20184
20175
|
* beforeEach(mountVue(component, options))
|
20185
20176
|
*/
|
20186
20177
|
var mountCallback = function (component, options) {
|
20187
|
-
return function () { return mount
|
20178
|
+
return function () { return mount(component, options); };
|
20188
20179
|
};
|
20189
20180
|
// Side effects from "import { mount } from '@cypress/<my-framework>'" are annoying, we should avoid doing this
|
20190
20181
|
// by creating an explicit function/import that the user can register in their 'component.js' support file,
|
@@ -20196,11 +20187,11 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
20196
20187
|
// Note: This would be a breaking change
|
20197
20188
|
setupHooks();
|
20198
20189
|
|
20199
|
-
exports.mount = mount
|
20190
|
+
exports.mount = mount;
|
20200
20191
|
exports.mountCallback = mountCallback;
|
20201
20192
|
|
20202
20193
|
Object.defineProperty(exports, '__esModule', { value: true });
|
20203
20194
|
|
20204
20195
|
return exports;
|
20205
20196
|
|
20206
|
-
}({}, Vue)
|
20197
|
+
})({}, Vue);
|