@suffolklitlab/alkiln 4.6.2 → 4.7.2
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/CHANGELOG.md +26 -0
- package/lib/docassemble/docassemble_api_interface.js +18 -0
- package/lib/scope.js +699 -116
- package/lib/steps.js +274 -121
- package/lib/utils/files.js +1 -0
- package/lib/utils/session_vars.js +1 -0
- package/package.json +3 -2
- package/tests/features/interactive_steps.feature +1 -1
- package/tests/features/random_input.feature +31 -0
- package/tests/features/reload.feature +155 -0
- package/tests/features/story_table_formats.feature +49 -1
package/CHANGELOG.md
CHANGED
|
@@ -40,6 +40,32 @@ Format:
|
|
|
40
40
|
-->
|
|
41
41
|
<!-- ## [Unreleased] -->
|
|
42
42
|
|
|
43
|
+
## [4.7.2] - 2022-08-09
|
|
44
|
+
### Changed
|
|
45
|
+
- Inform the developer when a test failure may have been caused by a server reload. See https://github.com/SuffolkLITLab/ALKiln/issues/392.
|
|
46
|
+
- Retry all failing tests once.
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## [4.7.1] - 2022-08-07
|
|
50
|
+
### Changed
|
|
51
|
+
- Ensure unique folder names for random input screenshots in case developer uses multiple random steps in one Scenario.
|
|
52
|
+
- Ensure random input detects unexpected interview errors.
|
|
53
|
+
|
|
54
|
+
### Fixed
|
|
55
|
+
- Fix failure when signature page is the first screen.
|
|
56
|
+
- Internal tests failing even when failure status is as expected.
|
|
57
|
+
- Double printing in report of scenario failure, one of them even when Scenario was possibly non-failure, like skipped.
|
|
58
|
+
|
|
59
|
+
## [4.7.0] - 2022-07-27
|
|
60
|
+
### Added
|
|
61
|
+
- Generate random input to fill out a simple form automatically. Does not yet ensure that random screenshot folder names are unique, or that error screens are detected as errors. 4.7.1 implements those.
|
|
62
|
+
|
|
63
|
+
### Changed
|
|
64
|
+
- Add page id to the "Missing Variable or variables on page" error report
|
|
65
|
+
- Allows Story Tables to not include a header row, as long as they have 2 or 3 columns.
|
|
66
|
+
This isn't the suggested way at the moment, since including headers is more readable,
|
|
67
|
+
but can prevent confusing and unnecessary errors.
|
|
68
|
+
|
|
43
69
|
## [4.6.2] - 2022-06-28
|
|
44
70
|
### Changed
|
|
45
71
|
- Put cucumber tests' artifacts in one folder. See https://github.com/SuffolkLITLab/ALKiln/issues/552.
|
|
@@ -120,6 +120,24 @@ da_i.throw_an_error_if_server_is_not_responding = async function ( options ) {
|
|
|
120
120
|
}
|
|
121
121
|
}; // Ends da_i.throw_an_error_if_server_is_not_responding()
|
|
122
122
|
|
|
123
|
+
// node -e 'require("./lib/docassemble/docassemble_api_interface.js").is_server_responding()'
|
|
124
|
+
da_i.is_server_responding = async function ( dev_id_options ) {
|
|
125
|
+
/** Use _da_REST.get_dev_id() to test if server is up.
|
|
126
|
+
* See https://docassemble.org/docs/api.html#user. */
|
|
127
|
+
|
|
128
|
+
// Default timeouts
|
|
129
|
+
let { timeout } = dev_id_options || { timeout: DEFAULT_MAX_REQUEST_MS };
|
|
130
|
+
try {
|
|
131
|
+
let response = await _da_REST.get_dev_id( timeout );
|
|
132
|
+
if ( response && response.data && response.data.id ) {
|
|
133
|
+
return true;
|
|
134
|
+
} else {
|
|
135
|
+
return false;
|
|
136
|
+
}
|
|
137
|
+
} catch ( error ) {
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
}; // Ends da_i.is_server_responding();
|
|
123
141
|
|
|
124
142
|
// node -e 'require("./lib/docassemble/docassemble_api_interface.js").get_dev_id()'
|
|
125
143
|
da_i.get_dev_id = async function ( dev_id_options ) {
|