@zenuml/core 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/zenuml/core.common.js +37977 -0
- package/dist/zenuml/core.common.js.map +1 -0
- package/dist/{vue-sequence.css → zenuml/core.css} +0 -0
- package/dist/zenuml/core.umd.js +37988 -0
- package/dist/zenuml/core.umd.js.map +1 -0
- package/dist/{vue-sequence.umd.min.js → zenuml/core.umd.min.js} +3 -3
- package/dist/zenuml/core.umd.min.js.map +1 -0
- package/package.json +6 -6
- package/coverage/clover.xml +0 -6
- package/coverage/coverage-final.json +0 -1
- package/coverage/lcov-report/Interaction.vue.html +0 -532
- package/coverage/lcov-report/Owner.js.html +0 -175
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -79
- package/coverage/lcov-report/components/interaction/Interaction.vue.html +0 -544
- package/coverage/lcov-report/components/interaction/index.html +0 -110
- package/coverage/lcov-report/index.html +0 -95
- package/coverage/lcov-report/positioning/david/DavidEisenstat2.ts.html +0 -196
- package/coverage/lcov-report/positioning/david/index.html +0 -110
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -170
- package/coverage/lcov.info +0 -0
- package/cypress/fixtures/example.json +0 -5
- package/cypress/fixtures/profile.json +0 -5
- package/cypress/fixtures/users.json +0 -232
- package/cypress/integration/__image_snapshots__/Smoke test creation #0.png +0 -0
- package/cypress/integration/__image_snapshots__/Smoke test fragment #0.png +0 -0
- package/cypress/integration/__image_snapshots__/Smoke test fragmentIssue #0.png +0 -0
- package/cypress/integration/__image_snapshots__/Smoke test interaction #0.png +0 -0
- package/cypress/integration/__image_snapshots__/Smoke test return #0.png +0 -0
- package/cypress/integration/__image_snapshots__/Smoke test return #1.png +0 -0
- package/cypress/integration/__image_snapshots__/Smoke test should load the home page #0.png +0 -0
- package/cypress/integration/smoke.spec.js +0 -64
- package/cypress/plugins/index.js +0 -30
- package/cypress/support/commands.js +0 -25
- package/cypress/support/index.js +0 -20
- package/cypress/videos/smoke.spec.js.mp4 +0 -0
- package/gen/css3.interp +0 -214
- package/gen/css3.tokens +0 -92
- package/gen/css3BaseListener.java +0 -1106
- package/gen/css3BaseVisitor.java +0 -636
- package/gen/css3Lexer.interp +0 -251
- package/gen/css3Lexer.java +0 -672
- package/gen/css3Lexer.tokens +0 -92
- package/gen/css3Listener.java +0 -939
- package/gen/css3Parser.java +0 -8113
- package/gen/css3Visitor.java +0 -566
- package/gen/sequenceLexer.interp +0 -206
- package/gen/sequenceLexer.java +0 -419
- package/gen/sequenceLexer.tokens +0 -104
- package/gen/sequenceParser.interp +0 -180
- package/gen/sequenceParser.java +0 -4659
- package/gen/sequenceParser.tokens +0 -101
- package/gen/sequenceParserBaseListener.java +0 -830
- package/gen/sequenceParserBaseVisitor.java +0 -475
- package/gen/sequenceParserListener.java +0 -703
- package/gen/sequenceParserVisitor.java +0 -425
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
var addSorting = (function() {
|
|
3
|
-
'use strict';
|
|
4
|
-
var cols,
|
|
5
|
-
currentSort = {
|
|
6
|
-
index: 0,
|
|
7
|
-
desc: false
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
// returns the summary table element
|
|
11
|
-
function getTable() {
|
|
12
|
-
return document.querySelector('.coverage-summary');
|
|
13
|
-
}
|
|
14
|
-
// returns the thead element of the summary table
|
|
15
|
-
function getTableHeader() {
|
|
16
|
-
return getTable().querySelector('thead tr');
|
|
17
|
-
}
|
|
18
|
-
// returns the tbody element of the summary table
|
|
19
|
-
function getTableBody() {
|
|
20
|
-
return getTable().querySelector('tbody');
|
|
21
|
-
}
|
|
22
|
-
// returns the th element for nth column
|
|
23
|
-
function getNthColumn(n) {
|
|
24
|
-
return getTableHeader().querySelectorAll('th')[n];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// loads all columns
|
|
28
|
-
function loadColumns() {
|
|
29
|
-
var colNodes = getTableHeader().querySelectorAll('th'),
|
|
30
|
-
colNode,
|
|
31
|
-
cols = [],
|
|
32
|
-
col,
|
|
33
|
-
i;
|
|
34
|
-
|
|
35
|
-
for (i = 0; i < colNodes.length; i += 1) {
|
|
36
|
-
colNode = colNodes[i];
|
|
37
|
-
col = {
|
|
38
|
-
key: colNode.getAttribute('data-col'),
|
|
39
|
-
sortable: !colNode.getAttribute('data-nosort'),
|
|
40
|
-
type: colNode.getAttribute('data-type') || 'string'
|
|
41
|
-
};
|
|
42
|
-
cols.push(col);
|
|
43
|
-
if (col.sortable) {
|
|
44
|
-
col.defaultDescSort = col.type === 'number';
|
|
45
|
-
colNode.innerHTML =
|
|
46
|
-
colNode.innerHTML + '<span class="sorter"></span>';
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return cols;
|
|
50
|
-
}
|
|
51
|
-
// attaches a data attribute to every tr element with an object
|
|
52
|
-
// of data values keyed by column name
|
|
53
|
-
function loadRowData(tableRow) {
|
|
54
|
-
var tableCols = tableRow.querySelectorAll('td'),
|
|
55
|
-
colNode,
|
|
56
|
-
col,
|
|
57
|
-
data = {},
|
|
58
|
-
i,
|
|
59
|
-
val;
|
|
60
|
-
for (i = 0; i < tableCols.length; i += 1) {
|
|
61
|
-
colNode = tableCols[i];
|
|
62
|
-
col = cols[i];
|
|
63
|
-
val = colNode.getAttribute('data-value');
|
|
64
|
-
if (col.type === 'number') {
|
|
65
|
-
val = Number(val);
|
|
66
|
-
}
|
|
67
|
-
data[col.key] = val;
|
|
68
|
-
}
|
|
69
|
-
return data;
|
|
70
|
-
}
|
|
71
|
-
// loads all row data
|
|
72
|
-
function loadData() {
|
|
73
|
-
var rows = getTableBody().querySelectorAll('tr'),
|
|
74
|
-
i;
|
|
75
|
-
|
|
76
|
-
for (i = 0; i < rows.length; i += 1) {
|
|
77
|
-
rows[i].data = loadRowData(rows[i]);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
// sorts the table using the data for the ith column
|
|
81
|
-
function sortByIndex(index, desc) {
|
|
82
|
-
var key = cols[index].key,
|
|
83
|
-
sorter = function(a, b) {
|
|
84
|
-
a = a.data[key];
|
|
85
|
-
b = b.data[key];
|
|
86
|
-
return a < b ? -1 : a > b ? 1 : 0;
|
|
87
|
-
},
|
|
88
|
-
finalSorter = sorter,
|
|
89
|
-
tableBody = document.querySelector('.coverage-summary tbody'),
|
|
90
|
-
rowNodes = tableBody.querySelectorAll('tr'),
|
|
91
|
-
rows = [],
|
|
92
|
-
i;
|
|
93
|
-
|
|
94
|
-
if (desc) {
|
|
95
|
-
finalSorter = function(a, b) {
|
|
96
|
-
return -1 * sorter(a, b);
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
for (i = 0; i < rowNodes.length; i += 1) {
|
|
101
|
-
rows.push(rowNodes[i]);
|
|
102
|
-
tableBody.removeChild(rowNodes[i]);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
rows.sort(finalSorter);
|
|
106
|
-
|
|
107
|
-
for (i = 0; i < rows.length; i += 1) {
|
|
108
|
-
tableBody.appendChild(rows[i]);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
// removes sort indicators for current column being sorted
|
|
112
|
-
function removeSortIndicators() {
|
|
113
|
-
var col = getNthColumn(currentSort.index),
|
|
114
|
-
cls = col.className;
|
|
115
|
-
|
|
116
|
-
cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, '');
|
|
117
|
-
col.className = cls;
|
|
118
|
-
}
|
|
119
|
-
// adds sort indicators for current column being sorted
|
|
120
|
-
function addSortIndicators() {
|
|
121
|
-
getNthColumn(currentSort.index).className += currentSort.desc
|
|
122
|
-
? ' sorted-desc'
|
|
123
|
-
: ' sorted';
|
|
124
|
-
}
|
|
125
|
-
// adds event listeners for all sorter widgets
|
|
126
|
-
function enableUI() {
|
|
127
|
-
var i,
|
|
128
|
-
el,
|
|
129
|
-
ithSorter = function ithSorter(i) {
|
|
130
|
-
var col = cols[i];
|
|
131
|
-
|
|
132
|
-
return function() {
|
|
133
|
-
var desc = col.defaultDescSort;
|
|
134
|
-
|
|
135
|
-
if (currentSort.index === i) {
|
|
136
|
-
desc = !currentSort.desc;
|
|
137
|
-
}
|
|
138
|
-
sortByIndex(i, desc);
|
|
139
|
-
removeSortIndicators();
|
|
140
|
-
currentSort.index = i;
|
|
141
|
-
currentSort.desc = desc;
|
|
142
|
-
addSortIndicators();
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
for (i = 0; i < cols.length; i += 1) {
|
|
146
|
-
if (cols[i].sortable) {
|
|
147
|
-
// add the click event handler on the th so users
|
|
148
|
-
// dont have to click on those tiny arrows
|
|
149
|
-
el = getNthColumn(i).querySelector('.sorter').parentElement;
|
|
150
|
-
if (el.addEventListener) {
|
|
151
|
-
el.addEventListener('click', ithSorter(i));
|
|
152
|
-
} else {
|
|
153
|
-
el.attachEvent('onclick', ithSorter(i));
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
// adds sorting functionality to the UI
|
|
159
|
-
return function() {
|
|
160
|
-
if (!getTable()) {
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
cols = loadColumns();
|
|
164
|
-
loadData();
|
|
165
|
-
addSortIndicators();
|
|
166
|
-
enableUI();
|
|
167
|
-
};
|
|
168
|
-
})();
|
|
169
|
-
|
|
170
|
-
window.addEventListener('load', addSorting);
|
package/coverage/lcov.info
DELETED
|
File without changes
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"id": 1,
|
|
4
|
-
"name": "Leanne Graham",
|
|
5
|
-
"username": "Bret",
|
|
6
|
-
"email": "Sincere@april.biz",
|
|
7
|
-
"address": {
|
|
8
|
-
"street": "Kulas Light",
|
|
9
|
-
"suite": "Apt. 556",
|
|
10
|
-
"city": "Gwenborough",
|
|
11
|
-
"zipcode": "92998-3874",
|
|
12
|
-
"geo": {
|
|
13
|
-
"lat": "-37.3159",
|
|
14
|
-
"lng": "81.1496"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"phone": "1-770-736-8031 x56442",
|
|
18
|
-
"website": "hildegard.org",
|
|
19
|
-
"company": {
|
|
20
|
-
"name": "Romaguera-Crona",
|
|
21
|
-
"catchPhrase": "Multi-layered client-server neural-net",
|
|
22
|
-
"bs": "harness real-time e-markets"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"id": 2,
|
|
27
|
-
"name": "Ervin Howell",
|
|
28
|
-
"username": "Antonette",
|
|
29
|
-
"email": "Shanna@melissa.tv",
|
|
30
|
-
"address": {
|
|
31
|
-
"street": "Victor Plains",
|
|
32
|
-
"suite": "Suite 879",
|
|
33
|
-
"city": "Wisokyburgh",
|
|
34
|
-
"zipcode": "90566-7771",
|
|
35
|
-
"geo": {
|
|
36
|
-
"lat": "-43.9509",
|
|
37
|
-
"lng": "-34.4618"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"phone": "010-692-6593 x09125",
|
|
41
|
-
"website": "anastasia.net",
|
|
42
|
-
"company": {
|
|
43
|
-
"name": "Deckow-Crist",
|
|
44
|
-
"catchPhrase": "Proactive didactic contingency",
|
|
45
|
-
"bs": "synergize scalable supply-chains"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"id": 3,
|
|
50
|
-
"name": "Clementine Bauch",
|
|
51
|
-
"username": "Samantha",
|
|
52
|
-
"email": "Nathan@yesenia.net",
|
|
53
|
-
"address": {
|
|
54
|
-
"street": "Douglas Extension",
|
|
55
|
-
"suite": "Suite 847",
|
|
56
|
-
"city": "McKenziehaven",
|
|
57
|
-
"zipcode": "59590-4157",
|
|
58
|
-
"geo": {
|
|
59
|
-
"lat": "-68.6102",
|
|
60
|
-
"lng": "-47.0653"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"phone": "1-463-123-4447",
|
|
64
|
-
"website": "ramiro.info",
|
|
65
|
-
"company": {
|
|
66
|
-
"name": "Romaguera-Jacobson",
|
|
67
|
-
"catchPhrase": "Face to face bifurcated interface",
|
|
68
|
-
"bs": "e-enable strategic applications"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"id": 4,
|
|
73
|
-
"name": "Patricia Lebsack",
|
|
74
|
-
"username": "Karianne",
|
|
75
|
-
"email": "Julianne.OConner@kory.org",
|
|
76
|
-
"address": {
|
|
77
|
-
"street": "Hoeger Mall",
|
|
78
|
-
"suite": "Apt. 692",
|
|
79
|
-
"city": "South Elvis",
|
|
80
|
-
"zipcode": "53919-4257",
|
|
81
|
-
"geo": {
|
|
82
|
-
"lat": "29.4572",
|
|
83
|
-
"lng": "-164.2990"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
"phone": "493-170-9623 x156",
|
|
87
|
-
"website": "kale.biz",
|
|
88
|
-
"company": {
|
|
89
|
-
"name": "Robel-Corkery",
|
|
90
|
-
"catchPhrase": "Multi-tiered zero tolerance productivity",
|
|
91
|
-
"bs": "transition cutting-edge web services"
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"id": 5,
|
|
96
|
-
"name": "Chelsey Dietrich",
|
|
97
|
-
"username": "Kamren",
|
|
98
|
-
"email": "Lucio_Hettinger@annie.ca",
|
|
99
|
-
"address": {
|
|
100
|
-
"street": "Skiles Walks",
|
|
101
|
-
"suite": "Suite 351",
|
|
102
|
-
"city": "Roscoeview",
|
|
103
|
-
"zipcode": "33263",
|
|
104
|
-
"geo": {
|
|
105
|
-
"lat": "-31.8129",
|
|
106
|
-
"lng": "62.5342"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"phone": "(254)954-1289",
|
|
110
|
-
"website": "demarco.info",
|
|
111
|
-
"company": {
|
|
112
|
-
"name": "Keebler LLC",
|
|
113
|
-
"catchPhrase": "User-centric fault-tolerant solution",
|
|
114
|
-
"bs": "revolutionize end-to-end systems"
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"id": 6,
|
|
119
|
-
"name": "Mrs. Dennis Schulist",
|
|
120
|
-
"username": "Leopoldo_Corkery",
|
|
121
|
-
"email": "Karley_Dach@jasper.info",
|
|
122
|
-
"address": {
|
|
123
|
-
"street": "Norberto Crossing",
|
|
124
|
-
"suite": "Apt. 950",
|
|
125
|
-
"city": "South Christy",
|
|
126
|
-
"zipcode": "23505-1337",
|
|
127
|
-
"geo": {
|
|
128
|
-
"lat": "-71.4197",
|
|
129
|
-
"lng": "71.7478"
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
"phone": "1-477-935-8478 x6430",
|
|
133
|
-
"website": "ola.org",
|
|
134
|
-
"company": {
|
|
135
|
-
"name": "Considine-Lockman",
|
|
136
|
-
"catchPhrase": "Synchronised bottom-line interface",
|
|
137
|
-
"bs": "e-enable innovative applications"
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"id": 7,
|
|
142
|
-
"name": "Kurtis Weissnat",
|
|
143
|
-
"username": "Elwyn.Skiles",
|
|
144
|
-
"email": "Telly.Hoeger@billy.biz",
|
|
145
|
-
"address": {
|
|
146
|
-
"street": "Rex Trail",
|
|
147
|
-
"suite": "Suite 280",
|
|
148
|
-
"city": "Howemouth",
|
|
149
|
-
"zipcode": "58804-1099",
|
|
150
|
-
"geo": {
|
|
151
|
-
"lat": "24.8918",
|
|
152
|
-
"lng": "21.8984"
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
"phone": "210.067.6132",
|
|
156
|
-
"website": "elvis.io",
|
|
157
|
-
"company": {
|
|
158
|
-
"name": "Johns Group",
|
|
159
|
-
"catchPhrase": "Configurable multimedia task-force",
|
|
160
|
-
"bs": "generate enterprise e-tailers"
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"id": 8,
|
|
165
|
-
"name": "Nicholas Runolfsdottir V",
|
|
166
|
-
"username": "Maxime_Nienow",
|
|
167
|
-
"email": "Sherwood@rosamond.me",
|
|
168
|
-
"address": {
|
|
169
|
-
"street": "Ellsworth Summit",
|
|
170
|
-
"suite": "Suite 729",
|
|
171
|
-
"city": "Aliyaview",
|
|
172
|
-
"zipcode": "45169",
|
|
173
|
-
"geo": {
|
|
174
|
-
"lat": "-14.3990",
|
|
175
|
-
"lng": "-120.7677"
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
"phone": "586.493.6943 x140",
|
|
179
|
-
"website": "jacynthe.com",
|
|
180
|
-
"company": {
|
|
181
|
-
"name": "Abernathy Group",
|
|
182
|
-
"catchPhrase": "Implemented secondary concept",
|
|
183
|
-
"bs": "e-enable extensible e-tailers"
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"id": 9,
|
|
188
|
-
"name": "Glenna Reichert",
|
|
189
|
-
"username": "Delphine",
|
|
190
|
-
"email": "Chaim_McDermott@dana.io",
|
|
191
|
-
"address": {
|
|
192
|
-
"street": "Dayna Park",
|
|
193
|
-
"suite": "Suite 449",
|
|
194
|
-
"city": "Bartholomebury",
|
|
195
|
-
"zipcode": "76495-3109",
|
|
196
|
-
"geo": {
|
|
197
|
-
"lat": "24.6463",
|
|
198
|
-
"lng": "-168.8889"
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
"phone": "(775)976-6794 x41206",
|
|
202
|
-
"website": "conrad.com",
|
|
203
|
-
"company": {
|
|
204
|
-
"name": "Yost and Sons",
|
|
205
|
-
"catchPhrase": "Switchable contextually-based project",
|
|
206
|
-
"bs": "aggregate real-time technologies"
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"id": 10,
|
|
211
|
-
"name": "Clementina DuBuque",
|
|
212
|
-
"username": "Moriah.Stanton",
|
|
213
|
-
"email": "Rey.Padberg@karina.biz",
|
|
214
|
-
"address": {
|
|
215
|
-
"street": "Kattie Turnpike",
|
|
216
|
-
"suite": "Suite 198",
|
|
217
|
-
"city": "Lebsackbury",
|
|
218
|
-
"zipcode": "31428-2261",
|
|
219
|
-
"geo": {
|
|
220
|
-
"lat": "-38.2386",
|
|
221
|
-
"lng": "57.2232"
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
"phone": "024-648-3804",
|
|
225
|
-
"website": "ambrose.net",
|
|
226
|
-
"company": {
|
|
227
|
-
"name": "Hoeger LLC",
|
|
228
|
-
"catchPhrase": "Centralized empowering task-force",
|
|
229
|
-
"bs": "target end-to-end models"
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
]
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-undef */
|
|
2
|
-
import 'cypress-plugin-snapshots/commands';
|
|
3
|
-
describe('Smoke test', function () {
|
|
4
|
-
it('should load the home page', function () {
|
|
5
|
-
cy.visit('http://localhost:8080/cy/smoke.html', {
|
|
6
|
-
headers: {
|
|
7
|
-
"Accept-Encoding": "gzip, deflate"
|
|
8
|
-
},
|
|
9
|
-
retryOnStatusCodeFailure: true,
|
|
10
|
-
retryOnNetworkFailure: true,
|
|
11
|
-
timeout: 30000
|
|
12
|
-
})
|
|
13
|
-
.then(() => {
|
|
14
|
-
cy.document().toMatchImageSnapshot({
|
|
15
|
-
imageConfig: {"threshold": 0.005}, capture: "viewport"
|
|
16
|
-
});
|
|
17
|
-
})
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('interaction', function () {
|
|
21
|
-
cy.visit('http://localhost:8080/cy/smoke-interaction.html')
|
|
22
|
-
.then(() => {
|
|
23
|
-
cy.document().toMatchImageSnapshot({
|
|
24
|
-
imageConfig: {"threshold": 0.005}, capture: "viewport"
|
|
25
|
-
});
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
it('return', function () {
|
|
30
|
-
cy.visit('http://localhost:8080/cy/smoke-return.html')
|
|
31
|
-
.then(() => {
|
|
32
|
-
cy.document().toMatchImageSnapshot({
|
|
33
|
-
imageConfig: {"threshold": 0.005}, capture: "viewport"
|
|
34
|
-
});
|
|
35
|
-
})
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
it('creation', function () {
|
|
39
|
-
cy.visit('http://localhost:8080/cy/smoke-creation.html')
|
|
40
|
-
.then(() => {
|
|
41
|
-
cy.document().toMatchImageSnapshot({
|
|
42
|
-
imageConfig: {"threshold": 0.005}, capture: "viewport"
|
|
43
|
-
});
|
|
44
|
-
})
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it('fragmentIssue', function () {
|
|
48
|
-
cy.visit('http://localhost:8080/cy/smoke-fragment-issue.html')
|
|
49
|
-
.then(() => {
|
|
50
|
-
cy.document().toMatchImageSnapshot({
|
|
51
|
-
imageConfig: {"threshold": 0.005}, capture: "viewport"
|
|
52
|
-
});
|
|
53
|
-
})
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
it('fragment', function () {
|
|
57
|
-
cy.visit('http://localhost:8080/cy/smoke-fragment.html')
|
|
58
|
-
.then(() => {
|
|
59
|
-
cy.document().toMatchImageSnapshot({
|
|
60
|
-
imageConfig: {"threshold": 0.005}, capture: "viewport"
|
|
61
|
-
});
|
|
62
|
-
})
|
|
63
|
-
});
|
|
64
|
-
});
|
package/cypress/plugins/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/// <reference types="cypress" />
|
|
2
|
-
// ***********************************************************
|
|
3
|
-
// This example plugins/index.js can be used to load plugins
|
|
4
|
-
//
|
|
5
|
-
// You can change the location of this file or turn off loading
|
|
6
|
-
// the plugins file with the 'pluginsFile' configuration option.
|
|
7
|
-
//
|
|
8
|
-
// You can read more here:
|
|
9
|
-
// https://on.cypress.io/plugins-guide
|
|
10
|
-
// ***********************************************************
|
|
11
|
-
|
|
12
|
-
// This function is called when a project is opened or re-opened (e.g. due to
|
|
13
|
-
// the project's config changing)
|
|
14
|
-
const { initPlugin } = require('cypress-plugin-snapshots/plugin');
|
|
15
|
-
/**
|
|
16
|
-
* @type {Cypress.PluginConfig}
|
|
17
|
-
*/
|
|
18
|
-
// eslint-disable-next-line no-unused-vars
|
|
19
|
-
module.exports = (on, config) => {
|
|
20
|
-
// `on` is used to hook into various events Cypress emits
|
|
21
|
-
// `config` is the resolved Cypress config
|
|
22
|
-
initPlugin(on, config);
|
|
23
|
-
// force color profile
|
|
24
|
-
on('before:browser:launch', (browser = {}, launchOptions) => {
|
|
25
|
-
if (browser.family === 'chromium' && browser.name !== 'electron') {
|
|
26
|
-
launchOptions.args.push('--force-color-profile=srgb');
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
return config;
|
|
30
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// ***********************************************
|
|
2
|
-
// This example commands.js shows you how to
|
|
3
|
-
// create various custom commands and overwrite
|
|
4
|
-
// existing commands.
|
|
5
|
-
//
|
|
6
|
-
// For more comprehensive examples of custom
|
|
7
|
-
// commands please read more here:
|
|
8
|
-
// https://on.cypress.io/custom-commands
|
|
9
|
-
// ***********************************************
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
// -- This is a parent command --
|
|
13
|
-
// Cypress.Commands.add('login', (email, password) => { ... })
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
// -- This is a child command --
|
|
17
|
-
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
// -- This is a dual command --
|
|
21
|
-
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
// -- This will overwrite an existing command --
|
|
25
|
-
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
|
package/cypress/support/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// ***********************************************************
|
|
2
|
-
// This example support/index.js is processed and
|
|
3
|
-
// loaded automatically before your test files.
|
|
4
|
-
//
|
|
5
|
-
// This is a great place to put global configuration and
|
|
6
|
-
// behavior that modifies Cypress.
|
|
7
|
-
//
|
|
8
|
-
// You can change the location of this file or turn off
|
|
9
|
-
// automatically serving support files with the
|
|
10
|
-
// 'supportFile' configuration option.
|
|
11
|
-
//
|
|
12
|
-
// You can read more here:
|
|
13
|
-
// https://on.cypress.io/configuration
|
|
14
|
-
// ***********************************************************
|
|
15
|
-
|
|
16
|
-
// Import commands.js using ES2015 syntax:
|
|
17
|
-
import './commands'
|
|
18
|
-
|
|
19
|
-
// Alternatively you can use CommonJS syntax:
|
|
20
|
-
// require('./commands')
|
|
Binary file
|