kryptheon 0.1.77 → 0.1.78
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/kryptheon-fixture.js +11 -5
- package/kryptheon-heal.js +64 -4
- package/kryptheon-probe-fixture.js +3 -1
- package/kryptheon-replay.js +52 -13
- package/kryptheon-reporter.js +10 -4
- package/package.json +2 -2
package/kryptheon-fixture.js
CHANGED
|
@@ -471,14 +471,20 @@ const test = base.test.extend({
|
|
|
471
471
|
// A value the recording types and then finds its record by gets this
|
|
472
472
|
// run's own number, so a second run does not find two (replay
|
|
473
473
|
// freshValues). Before heal.watch, which keeps getByRole as it is now.
|
|
474
|
+
// A value typed into a field the app keeps unique (a slug, a handle, a promo code) gets this run's number after
|
|
475
|
+
// a dash, so the second run is not refused as "already taken" (replay uniqueValues, round 34).
|
|
474
476
|
let freshToken = null;
|
|
475
477
|
let freshShown = [];
|
|
478
|
+
let uniqueShown = [];
|
|
476
479
|
try {
|
|
477
|
-
const
|
|
478
|
-
|
|
480
|
+
const source = fs.readFileSync(testInfo.file, 'utf8');
|
|
481
|
+
const values = replay.freshValues(source);
|
|
482
|
+
const unique = replay.uniqueValues(source);
|
|
483
|
+
if (values.length || unique.length) {
|
|
479
484
|
freshToken = String(Date.now()).slice(-6);
|
|
480
485
|
freshShown = values.map((v) => signature.normaliseText(v));
|
|
481
|
-
|
|
486
|
+
uniqueShown = unique.map((v) => signature.normaliseText(v));
|
|
487
|
+
replay.useFreshNames(page, values, freshToken, unique);
|
|
482
488
|
}
|
|
483
489
|
} catch (e) {
|
|
484
490
|
freshToken = null; /* replayed exactly as recorded */
|
|
@@ -549,7 +555,7 @@ const test = base.test.extend({
|
|
|
549
555
|
// to reporter stdio hooks that this reporter does not implement, so
|
|
550
556
|
// anything printed from here is dropped before it reaches a terminal.
|
|
551
557
|
// This run's number taken back out, so the page reads as it did when recorded.
|
|
552
|
-
const captured = replay.withoutFresh(await signature.collectSignature(page, failedRequests), freshToken, freshShown);
|
|
558
|
+
const captured = replay.withoutFresh(await signature.collectSignature(page, failedRequests), freshToken, freshShown, uniqueShown);
|
|
553
559
|
if (signature.signatureEnabled()) signature.recordSignature(testInfo.title, captured);
|
|
554
560
|
|
|
555
561
|
// Said once per run by the reporter, not once per test: it is a fact about
|
|
@@ -579,7 +585,7 @@ const test = base.test.extend({
|
|
|
579
585
|
failedRequests: failedRequests,
|
|
580
586
|
signature: captured,
|
|
581
587
|
recordingId: recordingId,
|
|
582
|
-
steps: heal.mergeMemory(sameRecording ? previousEntry.steps : null, replay.withoutFresh(healer.learned, freshToken, freshShown)),
|
|
588
|
+
steps: heal.mergeMemory(sameRecording ? previousEntry.steps : null, replay.withoutFresh(healer.learned, freshToken, freshShown, uniqueShown)),
|
|
583
589
|
};
|
|
584
590
|
} catch (e) {
|
|
585
591
|
current = null; // page closed by the test - leave any baseline untouched
|
package/kryptheon-heal.js
CHANGED
|
@@ -55,6 +55,26 @@ const FIELD_ROLES = new Set(['textbox', 'searchbox', 'combobox', 'listbox', 'spi
|
|
|
55
55
|
const LOOK_ROLES = new Set(['cell', 'gridcell']);
|
|
56
56
|
const lookClick = (role, name, method) => method === 'click' && LOOK_ROLES.has(role) && /\d/.test(String(name || ''));
|
|
57
57
|
|
|
58
|
+
// A step that can be done only once per record: Confirm, Approve, Check in, Redeem, Mark as paid, Release ...
|
|
59
|
+
// Found on round 34 (2026-11-22): the first replay confirmed the one pending order, and on every replay after it
|
|
60
|
+
// the Confirm button was gone - nothing left to confirm - and the flow was said to break on an app that was fine.
|
|
61
|
+
// Such a click is skipped and said, and only when the page proves it: the step found this very button on an earlier
|
|
62
|
+
// passing run, the page around it is the same page, and the button is now not there at all. Never "Save", "Add",
|
|
63
|
+
// "Next", "Delete", "Cancel" or "Close": those are not done once per record. Never a password confirmation.
|
|
64
|
+
// Steps that move a record that is already there - never one that makes a new one ("Reserve a table", "Book",
|
|
65
|
+
// "Join", "Enroll" create, and the next replay has a fresh one to click).
|
|
66
|
+
const ONCE_STEP = /^(confirm|approve|accept|reject|decline|check[\s-]?in|redeem|claim|publish|unpublish|complete|mark( as)? (paid|done|complete|completed|read|shipped|delivered)|archive|unarchive|activate|deactivate|verify|release|settle|refund|void|ship|fulfil|fulfill|dispatch|deliver|reopen|resolve)\b/i;
|
|
67
|
+
// how much of the page around the step must still be there: stricter than a rename's, since nothing is clicked
|
|
68
|
+
// in its place
|
|
69
|
+
const ONCE_SAME_PAGE = 0.8;
|
|
70
|
+
const NOT_ONCE = /password|email|account|sign|log ?in|delete|remove/i;
|
|
71
|
+
|
|
72
|
+
/** Whether a button or link name is a step done once per record ("Confirm", "Approve", "Check in" ...). */
|
|
73
|
+
function isOnceStep(name) {
|
|
74
|
+
const n = String(name == null ? '' : name).trim();
|
|
75
|
+
return !!n && n.length <= 40 && ONCE_STEP.test(n) && !NOT_ONCE.test(n);
|
|
76
|
+
}
|
|
77
|
+
|
|
58
78
|
function norm(text) {
|
|
59
79
|
return String(text == null ? '' : text).replace(/\s+/g, ' ').trim().toLowerCase();
|
|
60
80
|
}
|
|
@@ -185,6 +205,23 @@ function watch(page, options) {
|
|
|
185
205
|
return decideRename(name, fallback[kind], now, ofRole);
|
|
186
206
|
}
|
|
187
207
|
|
|
208
|
+
// A one-time step an earlier replay already did (isOnceStep): this step found the very button on a passing run,
|
|
209
|
+
// the page around it now is that page, and the button is not on it at all.
|
|
210
|
+
async function usedUp(key, role, name, method, locator) {
|
|
211
|
+
if (!/^(click|dblclick|tap)$/.test(method) || !ACTION_ROLES.has(role) || !isOnceStep(name)) return false;
|
|
212
|
+
if (!memory || !Array.isArray(memory[key]) || !memory[key].some((n) => norm(n) === norm(name))) return false;
|
|
213
|
+
const around = memory[key + PAGE_KEY];
|
|
214
|
+
if (!Array.isArray(around) || !around.length) return false;
|
|
215
|
+
const roles = await readRoles();
|
|
216
|
+
if (!roles) return false;
|
|
217
|
+
const here = new Set(pageNames(roles, role).map(norm));
|
|
218
|
+
// what held the button itself (its row "Order 7 pending Confirm", its cell) changes with it: left out
|
|
219
|
+
const placed = around.filter((n) => !norm(n).includes(norm(name)));
|
|
220
|
+
if (!placed.length || placed.filter((n) => here.has(norm(n))).length < placed.length * ONCE_SAME_PAGE) return false;
|
|
221
|
+
const count = await locator.count().catch(() => 1);
|
|
222
|
+
return count === 0;
|
|
223
|
+
}
|
|
224
|
+
|
|
188
225
|
async function act(locator, real, method, args, role, name) {
|
|
189
226
|
const key = counter++ + ' ' + role + ' ' + name;
|
|
190
227
|
const there = await locator
|
|
@@ -213,6 +250,10 @@ function watch(page, options) {
|
|
|
213
250
|
renamed.push({ role: role, was: name, skipped: true });
|
|
214
251
|
return undefined;
|
|
215
252
|
}
|
|
253
|
+
if (await usedUp(key, role, name, method, locator)) {
|
|
254
|
+
renamed.push({ role: role, was: name, skipped: true, once: true });
|
|
255
|
+
return undefined;
|
|
256
|
+
}
|
|
216
257
|
// Not a rename this can prove: the step fails the way it always did.
|
|
217
258
|
return real.apply(locator, args);
|
|
218
259
|
}
|
|
@@ -257,10 +298,9 @@ function watch(page, options) {
|
|
|
257
298
|
return locator;
|
|
258
299
|
};
|
|
259
300
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
if (!name) return locator;
|
|
301
|
+
// The steps of a locator by role and name - and of the one picked from it with first(), last() or nth(i), which
|
|
302
|
+
// codegen writes when a name is on more than one element ("Check in" on every ticket's row): round 34 again.
|
|
303
|
+
function watchSteps(locator, role, name) {
|
|
264
304
|
for (const method of ACTIONS) {
|
|
265
305
|
const real = locator[method];
|
|
266
306
|
if (typeof real !== 'function') continue;
|
|
@@ -268,7 +308,21 @@ function watch(page, options) {
|
|
|
268
308
|
return act(locator, real, method, Array.prototype.slice.call(arguments), role, name);
|
|
269
309
|
};
|
|
270
310
|
}
|
|
311
|
+
for (const pick of ['first', 'last', 'nth']) {
|
|
312
|
+
const real = locator[pick];
|
|
313
|
+
if (typeof real !== 'function') continue;
|
|
314
|
+
locator[pick] = function () {
|
|
315
|
+
return watchSteps(real.apply(locator, arguments), role, name);
|
|
316
|
+
};
|
|
317
|
+
}
|
|
271
318
|
return locator;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
page.getByRole = function (role, roleOptions) {
|
|
322
|
+
const locator = byRole(role, roleOptions);
|
|
323
|
+
const name = roleOptions && typeof roleOptions.name === 'string' ? roleOptions.name : null;
|
|
324
|
+
if (!name) return locator;
|
|
325
|
+
return watchSteps(locator, role, name);
|
|
272
326
|
};
|
|
273
327
|
|
|
274
328
|
return {
|
|
@@ -305,6 +359,11 @@ function countPattern(text) {
|
|
|
305
359
|
|
|
306
360
|
/** The report line, shared by the terminal and the history. */
|
|
307
361
|
function describeRename(entry) {
|
|
362
|
+
if (entry.skipped && entry.once) {
|
|
363
|
+
return 'The ' + (entry.role === 'link' ? 'link' : 'button') + ' "' + entry.was + '" was not on the page - an earlier run of this flow already did it, ' +
|
|
364
|
+
'and there was nothing left to "' + entry.was + '". I skipped that click and checked the rest of the flow. To check this step again, ' +
|
|
365
|
+
'add a new one waiting for it in your test data, or record the flow again.';
|
|
366
|
+
}
|
|
308
367
|
if (entry.skipped) {
|
|
309
368
|
return 'The ' + entry.role + ' "' + entry.was + '" was not on the page - it holds an id, date or number that moves with the data, ' +
|
|
310
369
|
'so I skipped clicking it and carried on. If that click mattered, record that step again on something that does not change.';
|
|
@@ -326,4 +385,5 @@ module.exports = {
|
|
|
326
385
|
watch: watch,
|
|
327
386
|
mergeMemory: mergeMemory,
|
|
328
387
|
describeRename: describeRename,
|
|
388
|
+
isOnceStep: isOnceStep,
|
|
329
389
|
};
|
|
@@ -338,7 +338,9 @@ const test = base.test.extend({
|
|
|
338
338
|
// The fresh names first: heal keeps the page's own getByRole as it is now
|
|
339
339
|
// (kryptheon-replay.js freshValues).
|
|
340
340
|
try {
|
|
341
|
-
|
|
341
|
+
// and a unique field's value its dashed form ("ss-482173"), so a replay is never refused as "already taken"
|
|
342
|
+
const source = fs.readFileSync(testInfo.file, 'utf8');
|
|
343
|
+
replay.useFreshNames(page, replay.freshValues(source), String(Date.now()).slice(-6), replay.uniqueValues(source));
|
|
342
344
|
} catch (e) {
|
|
343
345
|
/* replayed exactly as recorded */
|
|
344
346
|
}
|
package/kryptheon-replay.js
CHANGED
|
@@ -371,11 +371,13 @@ const QUOTED = /(['"`])((?:\\.|(?!\1).)*)\1/g;
|
|
|
371
371
|
function freshValues(source) {
|
|
372
372
|
const lines = String(source || '').split('\n');
|
|
373
373
|
const fills = [];
|
|
374
|
+
// a unique field's value gets its own form (uniqueValues): never also a spaced one
|
|
375
|
+
const unique = new Set(uniqueValues(source));
|
|
374
376
|
lines.forEach((line, i) => {
|
|
375
377
|
const m = /\.fill\(\s*(['"`])((?:\\.|(?!\1).)*)\1\s*\)/.exec(line);
|
|
376
378
|
if (!m || /process\.env\./.test(line) || isSecretField(nameInLine(line))) return;
|
|
377
379
|
const value = m[2].trim();
|
|
378
|
-
if (value.length >= 3 && !FRESH_SKIP.test(value)) fills.push({ value: value, line: i });
|
|
380
|
+
if (value.length >= 3 && !FRESH_SKIP.test(value) && !unique.has(value)) fills.push({ value: value, line: i });
|
|
379
381
|
});
|
|
380
382
|
const out = [];
|
|
381
383
|
for (const f of fills) {
|
|
@@ -386,14 +388,39 @@ function freshValues(source) {
|
|
|
386
388
|
return out.sort((a, b) => b.length - a.length);
|
|
387
389
|
}
|
|
388
390
|
|
|
391
|
+
// A field the app keeps unique: replayed as recorded, the second run is refused ("slug already taken") and the
|
|
392
|
+
// flow is said to break on an app that is fine (round 34, 2026-11-21: an event's URL slug "ss"). Its value gets
|
|
393
|
+
// this run's number after a dash - "ss" -> "ss-482173" - the form a slug, a handle or a code takes; a space would
|
|
394
|
+
// be refused. Named by the field's label. Never an email (too often the sign-in's), never a number, never a value
|
|
395
|
+
// with a space, and never a username typed right before a password: that is the sign-in.
|
|
396
|
+
const UNIQUE_FIELD = /\b(slug|handle|user\s?name|login\s?name|subdomain|sku|permalink|url\s?key|short\s?name|identifier|((promo|coupon|discount|invite|invitation|referral|voucher|gift)\s?code))\b/i;
|
|
397
|
+
|
|
398
|
+
function uniqueValues(source) {
|
|
399
|
+
const lines = String(source || '').split('\n');
|
|
400
|
+
const out = [];
|
|
401
|
+
lines.forEach((line, i) => {
|
|
402
|
+
const m = /\.fill\(\s*(['"`])((?:\\.|(?!\1).)*)\1\s*\)/.exec(line);
|
|
403
|
+
if (!m || /process\.env\./.test(line)) return;
|
|
404
|
+
const field = nameInLine(line);
|
|
405
|
+
if (!field || !UNIQUE_FIELD.test(field) || isSecretField(field)) return;
|
|
406
|
+
const value = m[2].trim();
|
|
407
|
+
if (!value || /[\s@]/.test(value) || /^[\d.,:/+#-]+$/.test(value) || value.length > 60) return;
|
|
408
|
+
// the sign-in: a password (or a value kept out of the file) typed within the next lines
|
|
409
|
+
const next = lines.slice(i + 1, i + 4).find((l) => /\.fill\(/.test(l));
|
|
410
|
+
if (next && (/process\.env\./.test(next) || isSecretField(nameInLine(next)))) return;
|
|
411
|
+
if (!out.includes(value)) out.push(value);
|
|
412
|
+
});
|
|
413
|
+
return out.sort((a, b) => b.length - a.length);
|
|
414
|
+
}
|
|
415
|
+
|
|
389
416
|
// Which page gets which fresh names. Set per page, read by the locators it
|
|
390
417
|
// makes, so two tests in one process never share a run's number.
|
|
391
418
|
const FRESH = new WeakMap();
|
|
392
419
|
const GETTERS = ['getByRole', 'getByText', 'getByLabel', 'getByTitle', 'getByAltText', 'getByPlaceholder'];
|
|
393
420
|
|
|
394
|
-
/** "nothing" -> "nothing 482173" wherever a looked-for or typed text holds it. */
|
|
421
|
+
/** "nothing" -> "nothing 482173", and a unique field's "ss" -> "ss-482173", wherever a looked-for or typed text holds it. */
|
|
395
422
|
function freshText(state, text) {
|
|
396
|
-
return state && typeof text === 'string' ? text.replace(state.pattern, (m) => m + ' ' + state.token) : text;
|
|
423
|
+
return state && typeof text === 'string' ? text.replace(state.pattern, (m) => m + (state.dashed && state.dashed.has(m) ? '-' : ' ') + state.token) : text;
|
|
397
424
|
}
|
|
398
425
|
|
|
399
426
|
function wrapGetters(proto, stateOf) {
|
|
@@ -418,11 +445,17 @@ function wrapGetters(proto, stateOf) {
|
|
|
418
445
|
}
|
|
419
446
|
}
|
|
420
447
|
|
|
421
|
-
/** Gives this page's run its own names for the values freshValues found. */
|
|
422
|
-
function useFreshNames(page, values, token) {
|
|
423
|
-
|
|
424
|
-
const
|
|
425
|
-
|
|
448
|
+
/** Gives this page's run its own names for the values freshValues found, and the dashed form to uniqueValues'. */
|
|
449
|
+
function useFreshNames(page, values, token, unique) {
|
|
450
|
+
const dashed = (unique || []).filter((v) => typeof v === 'string' && v);
|
|
451
|
+
const all = (values || []).concat(dashed.filter((v) => !(values || []).includes(v))).sort((a, b) => b.length - a.length);
|
|
452
|
+
if (!page || !all.length) return;
|
|
453
|
+
// a whole word only for a short unique value: "s" must not catch the "s" inside "Save"
|
|
454
|
+
const escaped = all.map((v) => {
|
|
455
|
+
const e = v.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
456
|
+
return dashed.includes(v) ? '(?<![\\w-])' + e + '(?![\\w-])' : e;
|
|
457
|
+
});
|
|
458
|
+
FRESH.set(page, { pattern: new RegExp(escaped.join('|'), 'g'), token: String(token), dashed: new Set(dashed) });
|
|
426
459
|
const pageProto = Object.getPrototypeOf(page);
|
|
427
460
|
wrapGetters(pageProto, (p) => FRESH.get(p));
|
|
428
461
|
const locatorProto = Object.getPrototypeOf(page.locator('body'));
|
|
@@ -437,7 +470,7 @@ function useFreshNames(page, values, token) {
|
|
|
437
470
|
state = null;
|
|
438
471
|
}
|
|
439
472
|
// Only a value typed whole, as the recording typed it, gets the number.
|
|
440
|
-
const typed = state && typeof value === 'string' && new RegExp('^\\s*(?:' + state.pattern.source + ')\\s*$').test(value);
|
|
473
|
+
const typed = state && typeof value === 'string' && new RegExp('^\\s*(?:' + state.pattern.source + ')\\s*$').test(value.trim());
|
|
441
474
|
return fill.call(this, typed ? freshText(state, value) : value, options);
|
|
442
475
|
};
|
|
443
476
|
wrapped.__kxFresh = true;
|
|
@@ -451,15 +484,20 @@ function useFreshNames(page, values, token) {
|
|
|
451
484
|
* '#' ("nothing 2" -> "nothing #"): there the number is already "#", and
|
|
452
485
|
* "nothing # #" goes back to "nothing #".
|
|
453
486
|
*/
|
|
454
|
-
function withoutFresh(value, token, shown) {
|
|
487
|
+
function withoutFresh(value, token, shown, dashedShown) {
|
|
455
488
|
if (!token) return value;
|
|
489
|
+
const esc = (f) => f.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
456
490
|
const forms = (shown || []).filter(Boolean).sort((a, b) => b.length - a.length);
|
|
457
491
|
// One pass, longest form first, so "nothing # #" loses one "#" and keeps
|
|
458
492
|
// the "2" of "nothing 2".
|
|
459
|
-
const numbered = forms.length ? new RegExp('(' + forms.map(
|
|
493
|
+
const numbered = forms.length ? new RegExp('(' + forms.map(esc).join('|') + ') #', 'g') : null;
|
|
494
|
+
// a unique field's "ss-482173", as the signature writes it: "ss-#"
|
|
495
|
+
const dashForms = (dashedShown || []).filter(Boolean).sort((a, b) => b.length - a.length);
|
|
496
|
+
const dashNumbered = dashForms.length ? new RegExp('(' + dashForms.map(esc).join('|') + ')-#', 'g') : null;
|
|
460
497
|
const strip = (s) => {
|
|
461
|
-
|
|
462
|
-
|
|
498
|
+
let out = s.split(' ' + token).join('').split('-' + token).join('');
|
|
499
|
+
if (numbered) out = out.replace(numbered, '$1');
|
|
500
|
+
return dashNumbered ? out.replace(dashNumbered, '$1') : out;
|
|
463
501
|
};
|
|
464
502
|
const walk = (v) => {
|
|
465
503
|
if (typeof v === 'string') return strip(v);
|
|
@@ -477,6 +515,7 @@ function withoutFresh(value, token, shown) {
|
|
|
477
515
|
module.exports = {
|
|
478
516
|
withoutFresh: withoutFresh,
|
|
479
517
|
freshValues: freshValues,
|
|
518
|
+
uniqueValues: uniqueValues,
|
|
480
519
|
useFreshNames: useFreshNames,
|
|
481
520
|
freshText: freshText,
|
|
482
521
|
recordingId: recordingId,
|
package/kryptheon-reporter.js
CHANGED
|
@@ -553,7 +553,8 @@ function readRenamed(attachments) {
|
|
|
553
553
|
if (!found) return [];
|
|
554
554
|
try {
|
|
555
555
|
const list = JSON.parse(found.body.toString('utf8'));
|
|
556
|
-
|
|
556
|
+
// a skipped step has no new name, and is said all the same: dropping it made every skip silent (2026-11-22)
|
|
557
|
+
return Array.isArray(list) ? list.filter(function (e) { return e && e.was && (e.now || e.skipped); }) : [];
|
|
557
558
|
} catch (e) {
|
|
558
559
|
return [];
|
|
559
560
|
}
|
|
@@ -863,7 +864,7 @@ class KryptheonReporter {
|
|
|
863
864
|
const renamed = readRenamed(result.attachments);
|
|
864
865
|
if (renamed.length) record.renamed = renamed;
|
|
865
866
|
const renamedLines = renamed.map(function (entry) {
|
|
866
|
-
return ' Renamed: ' + heal.describeRename(entry);
|
|
867
|
+
return (entry.skipped ? ' Skipped: ' : ' Renamed: ') + heal.describeRename(entry);
|
|
867
868
|
});
|
|
868
869
|
|
|
869
870
|
if (status === 'passed') {
|
|
@@ -876,7 +877,10 @@ class KryptheonReporter {
|
|
|
876
877
|
if (renamedLines.length) {
|
|
877
878
|
if (QUIET) process.stdout.write('OK ' + test.title + '\n');
|
|
878
879
|
process.stdout.write(renamedLines.join('\n') + '\n');
|
|
879
|
-
|
|
880
|
+
// a skipped step was not tried: the rest held, and that one step is said as not checked
|
|
881
|
+
process.stdout.write(renamed.some(function (e) { return e.skipped; })
|
|
882
|
+
? ' The rest of the flow held. The skipped step above was not checked this time.\n'
|
|
883
|
+
: ' Nothing is broken. To stop seeing this, record the flow again.\n');
|
|
880
884
|
}
|
|
881
885
|
return;
|
|
882
886
|
}
|
|
@@ -953,7 +957,7 @@ class KryptheonReporter {
|
|
|
953
957
|
out.push(lastPass ? ' This was working on ' + formatWhen(lastPass) + '.' : ' This has not passed before.');
|
|
954
958
|
// On the way to the failure. It explains why the steps before it worked
|
|
955
959
|
// even though a name in the recording no longer matches.
|
|
956
|
-
for (const entry of renamed) out.push(' Renamed on the way: ' + heal.describeRename(entry));
|
|
960
|
+
for (const entry of renamed) out.push((entry.skipped ? ' Skipped on the way: ' : ' Renamed on the way: ') + heal.describeRename(entry));
|
|
957
961
|
|
|
958
962
|
// A save the form held back in the browser: said with the field, and
|
|
959
963
|
// never blamed on a step that cannot repeat - nothing was sent, so
|
|
@@ -1110,6 +1114,8 @@ module.exports = KryptheonReporter;
|
|
|
1110
1114
|
// Shared with the fixture so baselines strip hosts exactly the same way.
|
|
1111
1115
|
// Attached to the exported class, so `new (require(...))()` keeps working.
|
|
1112
1116
|
module.exports.requestPath = requestPath;
|
|
1117
|
+
// For the checks: which noted steps a run says.
|
|
1118
|
+
module.exports.readRenamed = readRenamed;
|
|
1113
1119
|
|
|
1114
1120
|
// Exported for the checks: what a file that would not load turns into.
|
|
1115
1121
|
module.exports.readLoadError = readLoadError;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kryptheon",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.78",
|
|
4
4
|
"description": "Record what you do in your app and get plain-language reports when it breaks.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"pg": "^8.23.0"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|
|
79
|
-
"check": "node kryptheon-store.check.js && node kryptheon-code.check.js && node kryptheon-constdata.check.js && node kryptheon-listitems.check.js && node kryptheon-accept.check.js && node kryptheon-keys.check.js && node kryptheon-dashboard.check.js && node kryptheon-tour.check.js && node kryptheon-upgrade.check.js && node kryptheon-edge.check.js && node kryptheon-reliability.check.js && node kryptheon-fresh.check.js && node kryptheon-payments-dash.check.js && node kryptheon-embedded.check.js && node kryptheon-autostart.check.js && node kryptheon-changes.check.js && node kryptheon-look.check.js && node kryptheon-verify.check.js && node kryptheon-recheck.check.js && node kryptheon-reporter.check.js && node kryptheon-signature.check.js && node kryptheon-signature.stream.check.js && node kryptheon-signature.baseline.check.js && node kryptheon-signature.settle.check.js && node kryptheon-signature.number.check.js && node kryptheon-signature.rows.check.js && node kryptheon-env.check.js && node kryptheon-watchdog.check.js && node kryptheon-phone.check.js && node kryptheon-homedash.check.js && node kryptheon-record.check.js && node kryptheon-selectors.check.js && node kryptheon-recordings.check.js && node kryptheon-testfiles.check.js && node kryptheon-cleanup.check.js && node kryptheon-orphan.check.js && node kryptheon-project.check.js && node kryptheon-setup.check.js && node kryptheon-browser.check.js && node kryptheon-heal.check.js && node kryptheon-load.check.js && node kryptheon-authz.check.js && node kryptheon-roles.check.js && node kryptheon-map.check.js && node kryptheon-api.check.js && node kryptheon-webhook.check.js && node kryptheon-csv.check.js && node kryptheon-witness.check.js && node kryptheon-round34.check.js && node kryptheon-token.check.js && node kryptheon-questions.check.js && node kryptheon-pwbox.check.js && node kryptheon-quiet.check.js && node kryptheon-speed.check.js && node kryptheon-stopped.check.js && node kryptheon-daily.check.js && node kryptheon-live.check.js && node kryptheon-aim.check.js && node kryptheon-peruser.check.js && node kryptheon-aiapp.check.js && node kryptheon-doors.check.js && node kryptheon-package.check.js && node kryptheon-newer.check.js",
|
|
79
|
+
"check": "node kryptheon-store.check.js && node kryptheon-code.check.js && node kryptheon-constdata.check.js && node kryptheon-listitems.check.js && node kryptheon-accept.check.js && node kryptheon-keys.check.js && node kryptheon-dashboard.check.js && node kryptheon-tour.check.js && node kryptheon-upgrade.check.js && node kryptheon-edge.check.js && node kryptheon-reliability.check.js && node kryptheon-fresh.check.js && node kryptheon-unique.check.js && node kryptheon-payments-dash.check.js && node kryptheon-embedded.check.js && node kryptheon-autostart.check.js && node kryptheon-changes.check.js && node kryptheon-look.check.js && node kryptheon-verify.check.js && node kryptheon-recheck.check.js && node kryptheon-reporter.check.js && node kryptheon-signature.check.js && node kryptheon-signature.stream.check.js && node kryptheon-signature.baseline.check.js && node kryptheon-signature.settle.check.js && node kryptheon-signature.number.check.js && node kryptheon-signature.rows.check.js && node kryptheon-env.check.js && node kryptheon-watchdog.check.js && node kryptheon-phone.check.js && node kryptheon-homedash.check.js && node kryptheon-record.check.js && node kryptheon-selectors.check.js && node kryptheon-recordings.check.js && node kryptheon-testfiles.check.js && node kryptheon-cleanup.check.js && node kryptheon-orphan.check.js && node kryptheon-project.check.js && node kryptheon-setup.check.js && node kryptheon-browser.check.js && node kryptheon-heal.check.js && node kryptheon-once.check.js && node kryptheon-load.check.js && node kryptheon-authz.check.js && node kryptheon-roles.check.js && node kryptheon-map.check.js && node kryptheon-api.check.js && node kryptheon-webhook.check.js && node kryptheon-csv.check.js && node kryptheon-witness.check.js && node kryptheon-round34.check.js && node kryptheon-token.check.js && node kryptheon-questions.check.js && node kryptheon-pwbox.check.js && node kryptheon-quiet.check.js && node kryptheon-speed.check.js && node kryptheon-stopped.check.js && node kryptheon-daily.check.js && node kryptheon-live.check.js && node kryptheon-aim.check.js && node kryptheon-peruser.check.js && node kryptheon-aiapp.check.js && node kryptheon-doors.check.js && node kryptheon-package.check.js && node kryptheon-newer.check.js",
|
|
80
80
|
"check:store": "node kryptheon-store.check.js",
|
|
81
81
|
"check:code": "node kryptheon-code.check.js",
|
|
82
82
|
"check:constdata": "node kryptheon-constdata.check.js",
|