@suffolklitlab/alkiln 5.17.1 → 5.17.2-deps
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/.github/workflows/al_da_image_latest.yml +64 -3
- package/.github/workflows/github_server.yml +1 -1
- package/.github/workflows/playground.yml +1 -1
- package/CHANGELOG.md +44 -4
- package/action.yml +1 -1
- package/docs/decisions/017_post_navigation_custom_behavior_2026_10_26.md +136 -0
- package/lib/run_cucumber.js +1 -1
- package/lib/scope.js +655 -237
- package/lib/steps.js +137 -60
- package/models.json +19 -0
- package/npm-shrinkwrap.json +1154 -2211
- package/package.json +14 -14
- package/pi-session-2026-11-04T23-59-20-761Z_01a1a900-beb8-70ca-a64d-033dc70709e8.html +4411 -0
- package/tests/log_codes/log_code_expected_instances.txt +10 -1
- package/tests/unit_tests/navigation.test.js +72 -0
|
@@ -160,7 +160,7 @@ ALK0144:1
|
|
|
160
160
|
ALK0145:1
|
|
161
161
|
ALK0146:1
|
|
162
162
|
ALK0147:1
|
|
163
|
-
ALK0148:
|
|
163
|
+
ALK0148:1
|
|
164
164
|
ALK0149:1
|
|
165
165
|
ALK0150:1
|
|
166
166
|
ALK0151:1
|
|
@@ -301,3 +301,12 @@ ALK0285:1
|
|
|
301
301
|
ALK0286:1
|
|
302
302
|
ALK0287:1
|
|
303
303
|
ALK0288:1
|
|
304
|
+
ALK0289:1
|
|
305
|
+
ALK0290:1
|
|
306
|
+
ALK0291:1
|
|
307
|
+
ALK0292:1
|
|
308
|
+
ALK0293:1
|
|
309
|
+
ALK0294:1
|
|
310
|
+
ALK0295:1
|
|
311
|
+
ALK0296:1
|
|
312
|
+
ALK0297:1
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const chai = require('chai');
|
|
2
|
+
const expect = chai.expect;
|
|
3
|
+
const fs = require(`fs`);
|
|
4
|
+
|
|
5
|
+
const scope = require(`../../lib/scope.js`);
|
|
6
|
+
|
|
7
|
+
scope.log_and_update_if_new_page_id = async function() {
|
|
8
|
+
/** Mock this `scope` function to avoid extraneous errors. */
|
|
9
|
+
return `mock-page-id`;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
describe(`The deepest navigation logic`, function () {
|
|
13
|
+
|
|
14
|
+
it(`will handle a missing required system error handler by throwing ALK0295`, async function() {
|
|
15
|
+
let error = null
|
|
16
|
+
try {
|
|
17
|
+
await scope.wait_until_continued( scope, { post_nav_handlers: [
|
|
18
|
+
scope.throw_on_invalid_answers,
|
|
19
|
+
scope.throw_on_non_navigation_timeout,
|
|
20
|
+
] });
|
|
21
|
+
} catch (err) {
|
|
22
|
+
error = err;
|
|
23
|
+
}
|
|
24
|
+
expect( error instanceof ReferenceError, `Not a ReferenceError` ).to.be.true;
|
|
25
|
+
expect( error.message.includes(`ALK0295`), `Missing log code ALK0295` ).to.be.true;
|
|
26
|
+
expect( error.message.includes(`ALK0296`), `Unwanted log code ALK0296 is present`).to.be.false;
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it(`will handle a missing required navigation timeout handler by throwing ALK0296`, async function() {
|
|
30
|
+
let error = null
|
|
31
|
+
try {
|
|
32
|
+
await scope.wait_until_continued( scope, { post_nav_handlers: [
|
|
33
|
+
scope.throw_on_system_error,
|
|
34
|
+
scope.throw_on_invalid_answers,
|
|
35
|
+
] });
|
|
36
|
+
} catch (err) {
|
|
37
|
+
error = err;
|
|
38
|
+
}
|
|
39
|
+
expect( error instanceof ReferenceError, `Not a ReferenceError` ).to.be.true;
|
|
40
|
+
expect( error.message.includes(`ALK0295`), `Unwanted log code ALK0295 is present`).to.be.false;
|
|
41
|
+
expect( error.message.includes(`ALK0296`), `Missing log code ALK0296` ).to.be.true;
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
it(`will handle the absence of both critical error throwers by throwing ALK0295 and ALK0296`, async function() {
|
|
45
|
+
let error = null
|
|
46
|
+
try {
|
|
47
|
+
await scope.wait_until_continued( scope, { post_nav_handlers: [
|
|
48
|
+
scope.throw_on_invalid_answers,
|
|
49
|
+
] });
|
|
50
|
+
} catch (err) {
|
|
51
|
+
error = err;
|
|
52
|
+
}
|
|
53
|
+
expect( error instanceof ReferenceError, `Not a ReferenceError` ).to.be.true;
|
|
54
|
+
expect( error.message.includes(`ALK0295`), `Missing log code ALK0295` ).to.be.true;
|
|
55
|
+
expect( error.message.includes(`ALK0296`), `Missing log code ALK0296` ).to.be.true;
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
it(`will not throw ALK0295 or ALK0296 if all required handlers are present`, async function() {
|
|
59
|
+
let error = null
|
|
60
|
+
try {
|
|
61
|
+
await scope.wait_until_continued( scope, { post_nav_handlers: [
|
|
62
|
+
scope.throw_on_system_error,
|
|
63
|
+
scope.throw_on_non_navigation_timeout,
|
|
64
|
+
] });
|
|
65
|
+
} catch (err) {
|
|
66
|
+
error = err;
|
|
67
|
+
}
|
|
68
|
+
expect( error.message.includes(`ALK0295`), `Unwanted log code ALK0295 is present` ).to.be.false;
|
|
69
|
+
expect( error.message.includes(`ALK0296`), `Unwanted log code ALK0296 is present` ).to.be.false;
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
});
|