kryptheon 0.1.50 → 0.1.51

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-edge.js CHANGED
@@ -565,9 +565,14 @@ function judgeVariant(clean, variant, plan) {
565
565
  // Back to the form with the very answer the recorded save got - "Settings
566
566
  // saved" for both - is the save going through.
567
567
  const c0 = saved[0].cleanWrite;
568
- const asSaved = redirected && c0 && ok(c0) && probe.backToForm(c0) && probe.backToForm(w0) && probe.answerShape(c0) === probe.answerShape(w0);
569
- const weak = redirected && probe.backToForm(w0) && w0.shownAfter !== true && !asSaved;
568
+ // The page it went to, opened, and the value not on it: answered as a
569
+ // save, not shown as kept. Found on the round 21 rerun: an edit answered
570
+ // "Changes saved" for a language the app never writes - said as stored.
571
+ const notShown = redirected && w0.shownAfter === false;
572
+ const asSaved = redirected && !notShown && c0 && ok(c0) && probe.backToForm(c0) && probe.backToForm(w0) && probe.answerShape(c0) === probe.answerShape(w0);
573
+ const weak = notShown || (redirected && probe.backToForm(w0) && w0.shownAfter !== true && !asSaved);
570
574
  const pageLine = redirected && w0.shownAfter === true ? ['The page it went to after saving, ' + w0.to + ', shows ' + show(plan.value) + '.']
575
+ : notShown ? ['It answered as a save (' + w0.to + '), but that page, opened, does not show ' + show(plan.value) + ' - whether it was kept is not shown.']
571
576
  : asSaved ? ['It answered as your recorded save did (' + w0.to + ') - the value was taken.']
572
577
  : weak ? ['It answered with a redirect back to the form (' + w0.to + '), which does not say whether it kept the value.'] : [];
573
578
  if (problem || toCheck) {
@@ -9,6 +9,8 @@
9
9
  // Pure string work: no Playwright, no filesystem, so both the command line and
10
10
  // the reporter can use it.
11
11
 
12
+ const selectors = require('./kryptheon-selectors.js');
13
+
12
14
  // Pulls the readable name out of a recorded line, e.g.
13
15
  // page.getByRole('button', { name: 'Sign Up' }).click() -> Sign Up
14
16
  function nameInLine(line) {
@@ -143,6 +145,23 @@ function findReplayRisks(source) {
143
145
  });
144
146
  }
145
147
 
148
+ // 7. A step that finds what it clicks by a date or a time in its text.
149
+ // Found on the round 21 rerun: a calendar recording picked each session's
150
+ // card by "Oct 23, 2026, 11:28 PM"; a fresh database seeded its sessions
151
+ // from that day on, and the recording never replayed - the note it saved
152
+ // was never checked.
153
+ const dated = actions.find((a) => !a.isGoto && selectors.textMatchers(a.text).some((t) => selectors.volatileKind(t) === 'datetime'));
154
+ if (dated) {
155
+ const text = selectors.textMatchers(dated.text).find((t) => selectors.volatileKind(t) === 'datetime');
156
+ risks.push({
157
+ kind: 'picks-by-date',
158
+ line: dated.line,
159
+ step: text.slice(0, 80),
160
+ why: 'this step finds what it clicks by a date or time ("' + text.slice(0, 60) + '") - on another day that text is different, and the step cannot find it',
161
+ fix: 'record again, picking it by something that does not change with the day - a name, a label, or its place in the list',
162
+ });
163
+ }
164
+
146
165
  // 4. Steps inside an embedded frame - most often a payment provider's
147
166
  // checkout. Found on a blind test (round 18): a recording went on into
148
167
  // Razorpay's checkout (contact number, UPI QR, EMI, close); its frame
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kryptheon",
3
- "version": "0.1.50",
3
+ "version": "0.1.51",
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",