@suffolklitlab/alkiln 4.9.3 → 4.10.1-pre-cli
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/test_tests.yml +8 -6
- package/CHANGELOG.md +30 -1
- package/MANIFEST.in +1 -0
- package/_alkiln-misc_artifacts/unit_tests_logs-2022-12-29 at 02h22m01s457ms UTC.txt +20 -0
- package/action.yml +9 -36
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Base64 encoded corner cases are decoded correctly-2022-12-29 at 02h12m20s302ms UTC/report.txt +23 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail to find var while keeping value secret-2022-12-29 at 02h14m21s556ms UTC/report.txt +13 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with 2 wrong signin secret names-2022-12-29 at 02h14m19s733ms UTC/report.txt +12 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with a missing phrase-2022-12-29 at 02h13m42s632ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with cannot find missing document-2022-12-29 at 02h14m13s528ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with could not find files-2022-12-29 at 02h14m20s192ms UTC/report.txt +13 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with error page from random input-2022-12-29 at 02h13m27s716ms UTC/random_answers_screenshots-2022-12-29 at 02h13m28s915ms UTC/random-1672280009244.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with error page from random input-2022-12-29 at 02h13m27s716ms UTC/report.txt +12 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with incorrectly present phrase-2022-12-29 at 02h13m43s918ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with link text not visible-2022-12-29 at 02h13m52s649ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with link unexpectedly opens in a new window-2022-12-29 at 02h14m06s008ms UTC/report.txt +56 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with link unexpectedly opens in same window-2022-12-29 at 02h14m01s128ms UTC/report.txt +56 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with link with given text does not lead to correct url-2022-12-29 at 02h13m55s993ms UTC/report.txt +56 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with missing element id-2022-12-29 at 02h13m45s207ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with missing error message-2022-12-29 at 02h13m48s710ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with missing link with url-2022-12-29 at 02h13m54s329ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with missing term with the given text-2022-12-29 at 02h14m12s071ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with no interview at arbitrary url-2022-12-29 at 02h11m01s999ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with system error after Step using wrong file name as trigger-2022-12-29 at 02h14m15s021ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with unexpectedly able to continue-2022-12-29 at 02h13m46s819ms UTC/report.txt +11 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with var not on page-2022-12-29 at 02h14m10s627ms UTC/report.txt +12 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with was unexpectedly not able to continue for invalid field input message-2022-12-29 at 02h13m50s143ms UTC/report.txt +13 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with wrong email secret name-2022-12-29 at 02h14m18s763ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with wrong password secret name-2022-12-29 at 02h14m19s291ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fails as it doesn't try to 'continue' with a restart button-2022-12-29 at 02h12m22s559ms UTC/report.txt +19 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fails when table has no header row and rows have only one column-2022-12-29 at 02h14m50s261ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fields are listed out of order-2022-12-29 at 02h14m55s580ms UTC/report.txt +103 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I am able to set a custom wait time before an interview has been loaded-2022-12-29 at 02h10m12s300ms UTC/report.txt +6 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I am able to set a custom wait time that allows steps to run longer than the half minute default-2022-12-29 at 02h09m35s267ms UTC/report.txt +6 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I answer randomly till the end twice-2022-12-29 at 02h13m19s494ms UTC/random_answers_screenshots-2022-12-29 at 02h13m20s448ms UTC/random-1672280001009.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I answer randomly till the end twice-2022-12-29 at 02h13m19s494ms UTC/random_answers_screenshots-2022-12-29 at 02h13m20s448ms UTC/random-1672280001551.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I answer randomly till the end twice-2022-12-29 at 02h13m19s494ms UTC/random_answers_screenshots-2022-12-29 at 02h13m20s448ms UTC/random-1672280002244.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I answer randomly till the end twice-2022-12-29 at 02h13m19s494ms UTC/random_answers_screenshots-2022-12-29 at 02h13m20s448ms UTC/random-1672280003073.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I answer randomly till the end twice-2022-12-29 at 02h13m19s494ms UTC/random_answers_screenshots-2022-12-29 at 02h13m20s448ms UTC/random-1672280003428.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I answer randomly till the end twice-2022-12-29 at 02h13m19s494ms UTC/random_answers_screenshots-2022-12-29 at 02h13m24s217ms UTC/random-1672280004868.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I answer randomly till the end twice-2022-12-29 at 02h13m19s494ms UTC/random_answers_screenshots-2022-12-29 at 02h13m24s217ms UTC/random-1672280005425.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I answer randomly till the end twice-2022-12-29 at 02h13m19s494ms UTC/random_answers_screenshots-2022-12-29 at 02h13m24s217ms UTC/random-1672280006159.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I answer randomly till the end twice-2022-12-29 at 02h13m19s494ms UTC/random_answers_screenshots-2022-12-29 at 02h13m24s217ms UTC/random-1672280007028.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I answer randomly till the end twice-2022-12-29 at 02h13m19s494ms UTC/random_answers_screenshots-2022-12-29 at 02h13m24s217ms UTC/random-1672280007371.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I answer randomly till the end twice-2022-12-29 at 02h13m19s494ms UTC/report.txt +21 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I can include .yml in the filename-2022-12-29 at 02h12m39s613ms UTC/report.txt +6 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I can match JSON page var to str-2022-12-29 at 02h12m57s106ms UTC/json_for-showifs-2022-12-29 at 02h12m59s731ms UTC.json +154 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I can match JSON page var to str-2022-12-29 at 02h12m57s106ms UTC/report.txt +33 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I can wait as a first step in a test-2022-12-29 at 02h10m50s651ms UTC/report.txt +5 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I can't match JSON page var to str-2022-12-29 at 02h14m16s014ms UTC/json_for-showifs-2022-12-29 at 02h14m18s373ms UTC.json +154 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I can't match JSON page var to str-2022-12-29 at 02h14m16s014ms UTC/report.txt +37 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I check navigation-2022-12-29 at 02h12m41s028ms UTC/report.txt +54 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I check the pages for accessibility-2022-12-29 at 02h13m02s923ms UTC/report.txt +58 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I fill in random input for 1 page-2022-12-29 at 02h13m17s219ms UTC/random_answers_screenshots-2022-12-29 at 02h13m18s174ms UTC/random-1672279998764.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I fill in random input for 1 page-2022-12-29 at 02h13m17s219ms UTC/report.txt +7 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I fill in random input till the end-2022-12-29 at 02h13m12s258ms UTC/random_answers_screenshots-2022-12-29 at 02h13m13s676ms UTC/random-1672279994312.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I fill in random input till the end-2022-12-29 at 02h13m12s258ms UTC/random_answers_screenshots-2022-12-29 at 02h13m13s676ms UTC/random-1672279994892.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I fill in random input till the end-2022-12-29 at 02h13m12s258ms UTC/random_answers_screenshots-2022-12-29 at 02h13m13s676ms UTC/random-1672279995594.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I fill in random input till the end-2022-12-29 at 02h13m12s258ms UTC/random_answers_screenshots-2022-12-29 at 02h13m13s676ms UTC/random-1672279996542.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I fill in random input till the end-2022-12-29 at 02h13m12s258ms UTC/random_answers_screenshots-2022-12-29 at 02h13m13s676ms UTC/random-1672279996887.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I fill in random input till the end-2022-12-29 at 02h13m12s258ms UTC/report.txt +13 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I get the page's JSON-2022-12-29 at 02h13m00s023ms UTC/report.txt +71 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I have four name parts-2022-12-29 at 02h09m31s566ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I have three name parts-2022-12-29 at 02h09m27s653ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I have two name parts-2022-12-29 at 02h09m21s065ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I observe things on a single page when I arrive-2022-12-29 at 02h12m35s237ms UTC/report.txt +7 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I see user errors_-2022-12-29 at 02h12m37s167ms UTC/report.txt +9 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I set various values-2022-12-29 at 02h11m10s659ms UTC/report.txt +58 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I set various values-2022-12-29 at 02h11m10s659ms UTC/simple-doc.pdf +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I sign in-2022-12-29 at 02h10m54s349ms UTC/report.txt +7 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I take a screenshot-2022-12-29 at 02h13m01s434ms UTC/report.txt +6 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I take a screenshot-2022-12-29 at 02h13m01s434ms UTC/screenshot-some-screenshot-on-upload-files-2022-12-29 at 02h13m02s597ms UTC.jpg +0 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I upload files with a table-2022-12-29 at 02h15m13s490ms UTC/report.txt +19 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I want to go to a full arbitrary url-2022-12-29 at 02h10m58s362ms UTC/report.txt +6 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Interview name includes url args with a wait-2022-12-29 at 02h10m52s195ms UTC/report.txt +6 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Interview name includes url args-2022-12-29 at 02h10m48s849ms UTC/report.txt +6 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Latin-Fail with missing language link-2022-12-29 at 02h13m40s278ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Latin-Fail with wrong page id-2022-12-29 at 02h13m41s379ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Proxy and regular vars are mixed-2022-12-29 at 02h14m51s648ms UTC/report.txt +35 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Report doesn't complain about `there_is_another _ False` in a table_-2022-12-29 at 02h14m36s652ms UTC/report.txt +16 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Report lists unused table rows-2022-12-29 at 02h14m29s563ms UTC/report.txt +65 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Report still shows page id when I tap to continue without setting any fields-2022-12-29 at 02h14m25s620ms UTC/report.txt +22 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Server finishes reloading-2022-12-29 at 02h11m08s477ms UTC/report.txt +6 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Sign in to server successfully-2022-12-29 at 02h14m34s127ms UTC/report.txt +6 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Story table accidentally uses the opposite double or single quotes-2022-12-29 at 02h15m11s462ms UTC/report.txt +18 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Table MISSING trigger column-2022-12-29 at 02h14m41s898ms UTC/report.txt +33 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Table has no header row, MISSING trigger column-2022-12-29 at 02h14m47s483ms UTC/report.txt +33 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Table has no header row, has trigger column-2022-12-29 at 02h14m44s776ms UTC/report.txt +37 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Table has trigger column-2022-12-29 at 02h14m39s081ms UTC/report.txt +37 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Test _Then I cannot continue_-2022-12-29 at 02h12m48s119ms UTC/report.txt +9 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Test _Then I can/342/200/231t continue_ with an apostrophe-2022-12-29 at 02h12m52s553ms UTC/report.txt" +9 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Test _Then I do not continue_-2022-12-29 at 02h12m50s316ms UTC/report.txt +9 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Test _Then I don't continue_ with a single quote-2022-12-29 at 02h12m45s907ms UTC/report.txt +9 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Test _Then I don/342/200/231t continue_ with an apostrophe-2022-12-29 at 02h12m54s800ms UTC/report.txt" +9 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Warn when there are too many names-2022-12-29 at 02h14m22s722ms UTC/report.txt +8 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/debug_log.txt +2373 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/handles settings from Github secrets-2022-12-29 at 02h12m13s413ms UTC/report.txt +19 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/report.txt +1439 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/tap element with an error-2022-12-29 at 02h12m18s853ms UTC/report.txt +10 -0
- package/alkiln-2022-12-29 at 02h09m19s552ms UTC/tap elements-2022-12-29 at 02h12m16s677ms UTC/report.txt +6 -0
- package/alkiln-2023-01-11 at 19h24m55s354ms UTC/I set various values-2023-01-11 at 19h24m56s530ms UTC/report.txt +27 -0
- package/alkiln-2023-01-11 at 19h24m55s354ms UTC/I set various values-2023-01-11 at 19h25m07s611ms UTC/report.txt +27 -0
- package/alkiln-2023-01-11 at 19h24m55s354ms UTC/debug_log.txt +262 -0
- package/alkiln-2023-01-11 at 19h24m55s354ms UTC/report.txt +60 -0
- package/alkiln-2023-01-11 at 19h50m26s510ms UTC/debug_log.txt +224 -0
- package/alkiln-2023-01-11 at 19h50m26s510ms UTC/report.txt +22 -0
- package/alkiln-2023-01-11 at 19h53m45s106ms UTC/I set various values-2023-01-11 at 19h53m46s085ms UTC/report.txt +27 -0
- package/alkiln-2023-01-11 at 19h53m45s106ms UTC/I set various values-2023-01-11 at 19h53m57s482ms UTC/report.txt +27 -0
- package/alkiln-2023-01-11 at 19h53m45s106ms UTC/debug_log.txt +261 -0
- package/alkiln-2023-01-11 at 19h53m45s106ms UTC/report.txt +60 -0
- package/cucumber.js +1 -1
- package/docassemble/__init__.py +5 -0
- package/lib/run_cucumber.js +96 -0
- package/lib/scope.js +183 -119
- package/lib/steps.js +29 -1
- package/lib/utils/files.js +3 -3
- package/lib/utils/session_vars.js +5 -3
- package/package.json +8 -8
- package/setup.py +60 -0
- package/tests/unit_tests/fields.fixtures.js +79 -103
- package/tests/unit_tests/getAllFields.test.js +18 -13
- package/tests/unit_tests/getSafeScenarioFilename.test.js +2 -2
- package/tests/unit_tests/html.fixtures.js +0 -1
- package/tests/features/assembly_line.feature +0 -43
- package/tests/features/establishing_steps.feature +0 -62
- package/tests/features/example_test.feature +0 -11
- package/tests/features/interactive_steps.feature +0 -134
- package/tests/features/observation_steps.feature +0 -153
- package/tests/features/random_input.feature +0 -31
- package/tests/features/reload.feature +0 -155
- package/tests/features/reports.feature +0 -546
- package/tests/features/some_png_1.png +0 -0
- package/tests/features/some_png_2.png +0 -0
- package/tests/features/story_table_formats.feature +0 -125
- package/tests/features/story_tables.feature +0 -91
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Assembly Line Kiln Automated Testing Report - Wed, 11 Jan 2023 19:50:39 GMT
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
===============================
|
|
5
|
+
===============================
|
|
6
|
+
Failed scenarios:
|
|
7
|
+
|
|
8
|
+
---------------
|
|
9
|
+
Scenario: I set various values
|
|
10
|
+
Tags: @interactive @slow @i1
|
|
11
|
+
---------------
|
|
12
|
+
Trying to load the interview
|
|
13
|
+
screen id: upload-files
|
|
14
|
+
| upload_files_visible | some_png_1.png, some_png_2.png | |
|
|
15
|
+
| show_upload | True | |
|
|
16
|
+
| upload_files_hidden | some_png_2.png,some_png_1.png | |
|
|
17
|
+
screen id: group-of-complex-fields
|
|
18
|
+
| double_quote_dict['double_quote_key']['dq_two'] | true | |
|
|
19
|
+
| single_quote_dict['single_quote_key']['sq_two'] | true | |
|
|
20
|
+
screen id: direct-standard-fields
|
|
21
|
+
| checkboxes_yesno | True | |
|
|
22
|
+
| checkboxes_other['checkbox_other_opt_1'] | true | |
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
|
|
2
|
+
---------------
|
|
3
|
+
Scenario: I set various values
|
|
4
|
+
Tags: @interactive @slow @i1
|
|
5
|
+
---------------
|
|
6
|
+
Trying to load the interview
|
|
7
|
+
screen id: upload-files
|
|
8
|
+
| upload_files_visible | some_png_1.png, some_png_2.png | |
|
|
9
|
+
| show_upload | True | |
|
|
10
|
+
| upload_files_hidden | some_png_2.png,some_png_1.png | |
|
|
11
|
+
screen id: group-of-complex-fields
|
|
12
|
+
| double_quote_dict['double_quote_key']['dq_two'] | true | |
|
|
13
|
+
| single_quote_dict['single_quote_key']['sq_two'] | true | |
|
|
14
|
+
screen id: direct-standard-fields
|
|
15
|
+
| checkboxes_yesno | True | |
|
|
16
|
+
| checkboxes_other['checkbox_other_opt_1'] | true | |
|
|
17
|
+
| dropdown_test | dropdown_opt_2 | |
|
|
18
|
+
| radio_yesno | False | |
|
|
19
|
+
| radio_other | radio_other_opt_3 | |
|
|
20
|
+
| text_input | Regular text input field value | |
|
|
21
|
+
| textarea | Multiline text\narea value | |
|
|
22
|
+
| date_input | today - 1 | |
|
|
23
|
+
| direct_standard_fields | True | |
|
|
24
|
+
|
|
25
|
+
ERROR: The question id was supposed to be "showifs", but it's actually "direct-standard-fields".
|
|
26
|
+
|
|
27
|
+
**-- Scenario Failed --**
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
|
|
2
|
+
---------------
|
|
3
|
+
Scenario: I set various values
|
|
4
|
+
Tags: @interactive @slow @i1
|
|
5
|
+
---------------
|
|
6
|
+
Trying to load the interview
|
|
7
|
+
screen id: upload-files
|
|
8
|
+
| upload_files_visible | some_png_1.png, some_png_2.png | |
|
|
9
|
+
| show_upload | True | |
|
|
10
|
+
| upload_files_hidden | some_png_2.png,some_png_1.png | |
|
|
11
|
+
screen id: group-of-complex-fields
|
|
12
|
+
| double_quote_dict['double_quote_key']['dq_two'] | true | |
|
|
13
|
+
| single_quote_dict['single_quote_key']['sq_two'] | true | |
|
|
14
|
+
screen id: direct-standard-fields
|
|
15
|
+
| checkboxes_yesno | True | |
|
|
16
|
+
| checkboxes_other['checkbox_other_opt_1'] | true | |
|
|
17
|
+
| dropdown_test | dropdown_opt_2 | |
|
|
18
|
+
| radio_yesno | False | |
|
|
19
|
+
| radio_other | radio_other_opt_3 | |
|
|
20
|
+
| text_input | Regular text input field value | |
|
|
21
|
+
| textarea | Multiline text\narea value | |
|
|
22
|
+
| date_input | today - 1 | |
|
|
23
|
+
| direct_standard_fields | True | |
|
|
24
|
+
|
|
25
|
+
ERROR: The question id was supposed to be "showifs", but it's actually "direct-standard-fields".
|
|
26
|
+
|
|
27
|
+
**-- Scenario Failed --**
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
|
|
2
|
+
Report:
|
|
3
|
+
type: heading, value:
|
|
4
|
+
---------------
|
|
5
|
+
Scenario: I set various values
|
|
6
|
+
Tags: @interactive @slow @i1
|
|
7
|
+
---------------
|
|
8
|
+
Report:
|
|
9
|
+
type: row, value: Trying to load the interview
|
|
10
|
+
Report:
|
|
11
|
+
type: page_id, value: upload-files
|
|
12
|
+
Report:
|
|
13
|
+
type: row, value: | upload_files_visible | some_png_1.png, some_png_2.png | |
|
|
14
|
+
Report:
|
|
15
|
+
type: row, value: | show_upload | True | |
|
|
16
|
+
Report:
|
|
17
|
+
type: row, value: | upload_files_hidden | some_png_2.png,some_png_1.png | |
|
|
18
|
+
Report:
|
|
19
|
+
type: page_id, value: group-of-complex-fields
|
|
20
|
+
Report:
|
|
21
|
+
type: row, value: | double_quote_dict['double_quote_key']['dq_two'] | true | |
|
|
22
|
+
Report:
|
|
23
|
+
type: row, value: | single_quote_dict['single_quote_key']['sq_two'] | true | |
|
|
24
|
+
Report:
|
|
25
|
+
type: page_id, value: direct-standard-fields
|
|
26
|
+
Report:
|
|
27
|
+
type: row, value: | checkboxes_yesno | True | |
|
|
28
|
+
Report:
|
|
29
|
+
type: row, value: | checkboxes_other['checkbox_other_opt_1'] | true | |
|
|
30
|
+
Report:
|
|
31
|
+
type: row, value: | dropdown_test | dropdown_opt_2 | |
|
|
32
|
+
Report:
|
|
33
|
+
type: row, value: | radio_yesno | False | |
|
|
34
|
+
Report:
|
|
35
|
+
type: row, value: | radio_other | radio_other_opt_3 | |
|
|
36
|
+
Report:
|
|
37
|
+
type: row, value: | text_input | Regular text input field value | |
|
|
38
|
+
Report:
|
|
39
|
+
type: row, value: | textarea | Multiline text\narea value | |
|
|
40
|
+
Report:
|
|
41
|
+
type: row, value: | date_input | today - 1 | |
|
|
42
|
+
Report:
|
|
43
|
+
type: row, value: | direct_standard_fields | True | |
|
|
44
|
+
Report:
|
|
45
|
+
type: error, value: The question id was supposed to be "showifs", but it's actually "direct-standard-fields".
|
|
46
|
+
Report:
|
|
47
|
+
type: outcome, value: **-- Scenario Failed --**
|
|
48
|
+
Report:
|
|
49
|
+
type: heading, value:
|
|
50
|
+
---------------
|
|
51
|
+
Scenario: I set various values
|
|
52
|
+
Tags: @interactive @slow @i1
|
|
53
|
+
---------------
|
|
54
|
+
Report:
|
|
55
|
+
type: row, value: Trying to load the interview
|
|
56
|
+
Report:
|
|
57
|
+
type: page_id, value: upload-files
|
|
58
|
+
Report:
|
|
59
|
+
type: row, value: | upload_files_visible | some_png_1.png, some_png_2.png | |
|
|
60
|
+
Report:
|
|
61
|
+
type: row, value: | show_upload | True | |
|
|
62
|
+
Report:
|
|
63
|
+
type: row, value: | upload_files_hidden | some_png_2.png,some_png_1.png | |
|
|
64
|
+
Report:
|
|
65
|
+
type: page_id, value: group-of-complex-fields
|
|
66
|
+
Report:
|
|
67
|
+
type: row, value: | double_quote_dict['double_quote_key']['dq_two'] | true | |
|
|
68
|
+
Report:
|
|
69
|
+
type: row, value: | single_quote_dict['single_quote_key']['sq_two'] | true | |
|
|
70
|
+
Report:
|
|
71
|
+
type: page_id, value: direct-standard-fields
|
|
72
|
+
Report:
|
|
73
|
+
type: row, value: | checkboxes_yesno | True | |
|
|
74
|
+
Report:
|
|
75
|
+
type: row, value: | checkboxes_other['checkbox_other_opt_1'] | true | |
|
|
76
|
+
Report:
|
|
77
|
+
type: row, value: | dropdown_test | dropdown_opt_2 | |
|
|
78
|
+
Report:
|
|
79
|
+
type: row, value: | radio_yesno | False | |
|
|
80
|
+
Report:
|
|
81
|
+
type: row, value: | radio_other | radio_other_opt_3 | |
|
|
82
|
+
Report:
|
|
83
|
+
type: row, value: | text_input | Regular text input field value | |
|
|
84
|
+
Report:
|
|
85
|
+
type: row, value: | textarea | Multiline text\narea value | |
|
|
86
|
+
Report:
|
|
87
|
+
type: row, value: | date_input | today - 1 | |
|
|
88
|
+
Report:
|
|
89
|
+
type: row, value: | direct_standard_fields | True | |
|
|
90
|
+
Report:
|
|
91
|
+
type: error, value: The question id was supposed to be "showifs", but it's actually "direct-standard-fields".
|
|
92
|
+
Report:
|
|
93
|
+
type: outcome, value: **-- Scenario Failed --**Failures:
|
|
94
|
+
|
|
95
|
+
1) Scenario: I set various values (attempt 2) # docassemble/ALKilnTests/data/sources/interactive_steps.feature:7
|
|
96
|
+
✔ Before # lib/steps.js:103
|
|
97
|
+
✔ Given I start the interview at "all_tests" # lib/steps.js:156
|
|
98
|
+
✔ Then the question id should be "upload files" # lib/steps.js:458
|
|
99
|
+
✔ When I set the var "upload_files_visible" to "some_png_1.png, some_png_2.png" # lib/steps.js:947
|
|
100
|
+
✔ And I set the var "show_upload" to "True" # lib/steps.js:947
|
|
101
|
+
✔ And I upload "some_png_2.png,some_png_1.png" to "upload_files_hidden" # lib/steps.js:973
|
|
102
|
+
✔ And I tap to continue # lib/steps.js:732
|
|
103
|
+
✔ Then the question id should be "group of complex fields" # lib/steps.js:458
|
|
104
|
+
✔ And I set the var "double_quote_dict['double_quote_key']['dq_two']" to "true" # lib/steps.js:947
|
|
105
|
+
✔ And I set the var "single_quote_dict['single_quote_key']['sq_two']" to "true" # lib/steps.js:947
|
|
106
|
+
✔ And I tap to continue # lib/steps.js:732
|
|
107
|
+
✔ Then the question id should be "direct standard fields" # lib/steps.js:458
|
|
108
|
+
✔ When I set the var "checkboxes_yesno" to "True" # lib/steps.js:947
|
|
109
|
+
✔ And I set the var "checkboxes_other['checkbox_other_opt_1']" to "true" # lib/steps.js:947
|
|
110
|
+
✔ And I set the var "dropdown_test" to "dropdown_opt_2" # lib/steps.js:947
|
|
111
|
+
✔ And I set the var "radio_yesno" to "False" # lib/steps.js:947
|
|
112
|
+
✔ And I set the var "radio_other" to "radio_other_opt_3" # lib/steps.js:947
|
|
113
|
+
✔ And I set the var "text_input" to "Regular text input field value" # lib/steps.js:947
|
|
114
|
+
✔ And I set the var "textarea" to "Multiline text\narea value" # lib/steps.js:947
|
|
115
|
+
✔ And I set the var "date_input" to "today - 1" # lib/steps.js:947
|
|
116
|
+
✔ When I set the var "direct_standard_fields" to "True" # lib/steps.js:947
|
|
117
|
+
✖ Then the question id should be "showifs" # lib/steps.js:458
|
|
118
|
+
AssertionError: The question id was supposed to be "showifs", but it's actually "direct-standard-fields".: expected false to be true
|
|
119
|
+
+ expected - actual
|
|
120
|
+
|
|
121
|
+
-false
|
|
122
|
+
+true
|
|
123
|
+
|
|
124
|
+
at World.<anonymous> (/Users/Comfadorable/Desktop/General/coding/suffolk-lit-lab-assembly-line/docassemble-cucumber/lib/steps.js:476:43)
|
|
125
|
+
at processTicksAndRejections (node:internal/process/task_queues:96:5)
|
|
126
|
+
- When I set the var "show_2" to "True" # lib/steps.js:947
|
|
127
|
+
- And I set the var "show_3" to "True" # lib/steps.js:947
|
|
128
|
+
- And I set the var "showif_checkbox_yesno" to "true" # lib/steps.js:947
|
|
129
|
+
- And I set the var "showif_checkboxes_other['showif_checkboxes_nota_2']" to "true" # lib/steps.js:947
|
|
130
|
+
- And I set the var "showif_checkboxes_other['showif_checkboxes_nota_3']" to "true" # lib/steps.js:947
|
|
131
|
+
- And I set the var "showif_yesnoradio" to "True" # lib/steps.js:947
|
|
132
|
+
- And I set the var "showif_radio_other" to "showif_radio_multi_2" # lib/steps.js:947
|
|
133
|
+
- And I set the var "showif_text_input" to "Show if text input value" # lib/steps.js:947
|
|
134
|
+
- And I set the var "showif_textarea" to "Show if\nmultiline text\narea value" # lib/steps.js:947
|
|
135
|
+
- And I set the var "showif_dropdown" to "showif_dropdown_1" # lib/steps.js:947
|
|
136
|
+
- When I tap to continue # lib/steps.js:732
|
|
137
|
+
- Then the question id should be "object checkboxes" # lib/steps.js:458
|
|
138
|
+
- And I set the var "object_checkboxes_test['obj_chkbx_opt_1']" to "true" # lib/steps.js:947
|
|
139
|
+
- And I set the var "object_dropdown" to "obj_opt_2" # lib/steps.js:947
|
|
140
|
+
- When I tap to continue # lib/steps.js:732
|
|
141
|
+
- Then the question id should be "buttons yesnomaybe" # lib/steps.js:458
|
|
142
|
+
- When I set the var "buttons_yesnomaybe" to "None" # lib/steps.js:947
|
|
143
|
+
- Then the question id should be "buttons other" # lib/steps.js:458
|
|
144
|
+
- When I set the var "buttons_other" to "button_3" # lib/steps.js:947
|
|
145
|
+
- Then the question id should be "button continue" # lib/steps.js:458
|
|
146
|
+
- When I set the var "button_continue" to "True" # lib/steps.js:947
|
|
147
|
+
- Then the question id should be "screen features" # lib/steps.js:458
|
|
148
|
+
- When I tap to continue # lib/steps.js:732
|
|
149
|
+
- Then the question id should be "proxy vars" # lib/steps.js:458
|
|
150
|
+
- When I set the var "x[i].name.first" to "Proxyname1" # lib/steps.js:947
|
|
151
|
+
- And I tap to continue # lib/steps.js:732
|
|
152
|
+
- Then the question id should be "is there another generic" # lib/steps.js:458
|
|
153
|
+
- When I set the var "x.there_is_another" to "True" # lib/steps.js:947
|
|
154
|
+
- Then the question id should be "proxy vars" # lib/steps.js:458
|
|
155
|
+
- When I set the var "x[i].name.first" to "Proxyname2" # lib/steps.js:947
|
|
156
|
+
- And I tap to continue # lib/steps.js:732
|
|
157
|
+
- Then the question id should be "is there another generic" # lib/steps.js:458
|
|
158
|
+
- When I set the var "x.there_is_another" to "False" # lib/steps.js:947
|
|
159
|
+
- Then the question id should be "first signature" # lib/steps.js:458
|
|
160
|
+
- When I sign # lib/steps.js:992
|
|
161
|
+
- And I tap to continue # lib/steps.js:732
|
|
162
|
+
- Then the question id should be "second signature" # lib/steps.js:458
|
|
163
|
+
- When I sign # lib/steps.js:992
|
|
164
|
+
- And I tap to continue # lib/steps.js:732
|
|
165
|
+
- Then the question id should be "simple doc" # lib/steps.js:458
|
|
166
|
+
- When I download "simple-doc.pdf" # lib/steps.js:999
|
|
167
|
+
- And I tap to continue # lib/steps.js:732
|
|
168
|
+
- Then the question id should be "button event action" # lib/steps.js:458
|
|
169
|
+
- And I tap to continue # lib/steps.js:732
|
|
170
|
+
- Then the question id should be "single-dropdown-field" # lib/steps.js:458
|
|
171
|
+
- And I set the var "single_dropdown_field" to "email" # lib/steps.js:947
|
|
172
|
+
- And I tap to continue # lib/steps.js:732
|
|
173
|
+
- Then the question id should be "the end" # lib/steps.js:458
|
|
174
|
+
✔ After # lib/steps.js:1113
|
|
175
|
+
|
|
176
|
+
Warnings:
|
|
177
|
+
|
|
178
|
+
1) Scenario: I set various values (attempt 1, retried) # docassemble/ALKilnTests/data/sources/interactive_steps.feature:7
|
|
179
|
+
✔ Before # lib/steps.js:103
|
|
180
|
+
✔ Given I start the interview at "all_tests" # lib/steps.js:156
|
|
181
|
+
✔ Then the question id should be "upload files" # lib/steps.js:458
|
|
182
|
+
✔ When I set the var "upload_files_visible" to "some_png_1.png, some_png_2.png" # lib/steps.js:947
|
|
183
|
+
✔ And I set the var "show_upload" to "True" # lib/steps.js:947
|
|
184
|
+
✔ And I upload "some_png_2.png,some_png_1.png" to "upload_files_hidden" # lib/steps.js:973
|
|
185
|
+
✔ And I tap to continue # lib/steps.js:732
|
|
186
|
+
✔ Then the question id should be "group of complex fields" # lib/steps.js:458
|
|
187
|
+
✔ And I set the var "double_quote_dict['double_quote_key']['dq_two']" to "true" # lib/steps.js:947
|
|
188
|
+
✔ And I set the var "single_quote_dict['single_quote_key']['sq_two']" to "true" # lib/steps.js:947
|
|
189
|
+
✔ And I tap to continue # lib/steps.js:732
|
|
190
|
+
✔ Then the question id should be "direct standard fields" # lib/steps.js:458
|
|
191
|
+
✔ When I set the var "checkboxes_yesno" to "True" # lib/steps.js:947
|
|
192
|
+
✔ And I set the var "checkboxes_other['checkbox_other_opt_1']" to "true" # lib/steps.js:947
|
|
193
|
+
✔ And I set the var "dropdown_test" to "dropdown_opt_2" # lib/steps.js:947
|
|
194
|
+
✔ And I set the var "radio_yesno" to "False" # lib/steps.js:947
|
|
195
|
+
✔ And I set the var "radio_other" to "radio_other_opt_3" # lib/steps.js:947
|
|
196
|
+
✔ And I set the var "text_input" to "Regular text input field value" # lib/steps.js:947
|
|
197
|
+
✔ And I set the var "textarea" to "Multiline text\narea value" # lib/steps.js:947
|
|
198
|
+
✔ And I set the var "date_input" to "today - 1" # lib/steps.js:947
|
|
199
|
+
✔ When I set the var "direct_standard_fields" to "True" # lib/steps.js:947
|
|
200
|
+
✖ Then the question id should be "showifs" # lib/steps.js:458
|
|
201
|
+
AssertionError: The question id was supposed to be "showifs", but it's actually "direct-standard-fields".: expected false to be true
|
|
202
|
+
+ expected - actual
|
|
203
|
+
|
|
204
|
+
-false
|
|
205
|
+
+true
|
|
206
|
+
|
|
207
|
+
at World.<anonymous> (/Users/Comfadorable/Desktop/General/coding/suffolk-lit-lab-assembly-line/docassemble-cucumber/lib/steps.js:476:43)
|
|
208
|
+
at processTicksAndRejections (node:internal/process/task_queues:96:5)
|
|
209
|
+
- When I set the var "show_2" to "True" # lib/steps.js:947
|
|
210
|
+
- And I set the var "show_3" to "True" # lib/steps.js:947
|
|
211
|
+
- And I set the var "showif_checkbox_yesno" to "true" # lib/steps.js:947
|
|
212
|
+
- And I set the var "showif_checkboxes_other['showif_checkboxes_nota_2']" to "true" # lib/steps.js:947
|
|
213
|
+
- And I set the var "showif_checkboxes_other['showif_checkboxes_nota_3']" to "true" # lib/steps.js:947
|
|
214
|
+
- And I set the var "showif_yesnoradio" to "True" # lib/steps.js:947
|
|
215
|
+
- And I set the var "showif_radio_other" to "showif_radio_multi_2" # lib/steps.js:947
|
|
216
|
+
- And I set the var "showif_text_input" to "Show if text input value" # lib/steps.js:947
|
|
217
|
+
- And I set the var "showif_textarea" to "Show if\nmultiline text\narea value" # lib/steps.js:947
|
|
218
|
+
- And I set the var "showif_dropdown" to "showif_dropdown_1" # lib/steps.js:947
|
|
219
|
+
- When I tap to continue # lib/steps.js:732
|
|
220
|
+
- Then the question id should be "object checkboxes" # lib/steps.js:458
|
|
221
|
+
- And I set the var "object_checkboxes_test['obj_chkbx_opt_1']" to "true" # lib/steps.js:947
|
|
222
|
+
- And I set the var "object_dropdown" to "obj_opt_2" # lib/steps.js:947
|
|
223
|
+
- When I tap to continue # lib/steps.js:732
|
|
224
|
+
- Then the question id should be "buttons yesnomaybe" # lib/steps.js:458
|
|
225
|
+
- When I set the var "buttons_yesnomaybe" to "None" # lib/steps.js:947
|
|
226
|
+
- Then the question id should be "buttons other" # lib/steps.js:458
|
|
227
|
+
- When I set the var "buttons_other" to "button_3" # lib/steps.js:947
|
|
228
|
+
- Then the question id should be "button continue" # lib/steps.js:458
|
|
229
|
+
- When I set the var "button_continue" to "True" # lib/steps.js:947
|
|
230
|
+
- Then the question id should be "screen features" # lib/steps.js:458
|
|
231
|
+
- When I tap to continue # lib/steps.js:732
|
|
232
|
+
- Then the question id should be "proxy vars" # lib/steps.js:458
|
|
233
|
+
- When I set the var "x[i].name.first" to "Proxyname1" # lib/steps.js:947
|
|
234
|
+
- And I tap to continue # lib/steps.js:732
|
|
235
|
+
- Then the question id should be "is there another generic" # lib/steps.js:458
|
|
236
|
+
- When I set the var "x.there_is_another" to "True" # lib/steps.js:947
|
|
237
|
+
- Then the question id should be "proxy vars" # lib/steps.js:458
|
|
238
|
+
- When I set the var "x[i].name.first" to "Proxyname2" # lib/steps.js:947
|
|
239
|
+
- And I tap to continue # lib/steps.js:732
|
|
240
|
+
- Then the question id should be "is there another generic" # lib/steps.js:458
|
|
241
|
+
- When I set the var "x.there_is_another" to "False" # lib/steps.js:947
|
|
242
|
+
- Then the question id should be "first signature" # lib/steps.js:458
|
|
243
|
+
- When I sign # lib/steps.js:992
|
|
244
|
+
- And I tap to continue # lib/steps.js:732
|
|
245
|
+
- Then the question id should be "second signature" # lib/steps.js:458
|
|
246
|
+
- When I sign # lib/steps.js:992
|
|
247
|
+
- And I tap to continue # lib/steps.js:732
|
|
248
|
+
- Then the question id should be "simple doc" # lib/steps.js:458
|
|
249
|
+
- When I download "simple-doc.pdf" # lib/steps.js:999
|
|
250
|
+
- And I tap to continue # lib/steps.js:732
|
|
251
|
+
- Then the question id should be "button event action" # lib/steps.js:458
|
|
252
|
+
- And I tap to continue # lib/steps.js:732
|
|
253
|
+
- Then the question id should be "single-dropdown-field" # lib/steps.js:458
|
|
254
|
+
- And I set the var "single_dropdown_field" to "email" # lib/steps.js:947
|
|
255
|
+
- And I tap to continue # lib/steps.js:732
|
|
256
|
+
- Then the question id should be "the end" # lib/steps.js:458
|
|
257
|
+
✔ After # lib/steps.js:1113
|
|
258
|
+
|
|
259
|
+
1 scenario (1 failed)
|
|
260
|
+
69 steps (1 failed, 48 skipped, 20 passed)
|
|
261
|
+
0m25.838s (executing steps: 0m25.661s)
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
Assembly Line Kiln Automated Testing Report - Wed, 11 Jan 2023 19:54:10 GMT
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
===============================
|
|
5
|
+
===============================
|
|
6
|
+
Failed scenarios:
|
|
7
|
+
|
|
8
|
+
---------------
|
|
9
|
+
Scenario: I set various values
|
|
10
|
+
Tags: @interactive @slow @i1
|
|
11
|
+
---------------
|
|
12
|
+
Trying to load the interview
|
|
13
|
+
screen id: upload-files
|
|
14
|
+
| upload_files_visible | some_png_1.png, some_png_2.png | |
|
|
15
|
+
| show_upload | True | |
|
|
16
|
+
| upload_files_hidden | some_png_2.png,some_png_1.png | |
|
|
17
|
+
screen id: group-of-complex-fields
|
|
18
|
+
| double_quote_dict['double_quote_key']['dq_two'] | true | |
|
|
19
|
+
| single_quote_dict['single_quote_key']['sq_two'] | true | |
|
|
20
|
+
screen id: direct-standard-fields
|
|
21
|
+
| checkboxes_yesno | True | |
|
|
22
|
+
| checkboxes_other['checkbox_other_opt_1'] | true | |
|
|
23
|
+
| dropdown_test | dropdown_opt_2 | |
|
|
24
|
+
| radio_yesno | False | |
|
|
25
|
+
| radio_other | radio_other_opt_3 | |
|
|
26
|
+
| text_input | Regular text input field value | |
|
|
27
|
+
| textarea | Multiline text\narea value | |
|
|
28
|
+
| date_input | today - 1 | |
|
|
29
|
+
| direct_standard_fields | True | |
|
|
30
|
+
|
|
31
|
+
ERROR: The question id was supposed to be "showifs", but it's actually "direct-standard-fields".
|
|
32
|
+
|
|
33
|
+
**-- Scenario Failed --**
|
|
34
|
+
|
|
35
|
+
---------------
|
|
36
|
+
Scenario: I set various values
|
|
37
|
+
Tags: @interactive @slow @i1
|
|
38
|
+
---------------
|
|
39
|
+
Trying to load the interview
|
|
40
|
+
screen id: upload-files
|
|
41
|
+
| upload_files_visible | some_png_1.png, some_png_2.png | |
|
|
42
|
+
| show_upload | True | |
|
|
43
|
+
| upload_files_hidden | some_png_2.png,some_png_1.png | |
|
|
44
|
+
screen id: group-of-complex-fields
|
|
45
|
+
| double_quote_dict['double_quote_key']['dq_two'] | true | |
|
|
46
|
+
| single_quote_dict['single_quote_key']['sq_two'] | true | |
|
|
47
|
+
screen id: direct-standard-fields
|
|
48
|
+
| checkboxes_yesno | True | |
|
|
49
|
+
| checkboxes_other['checkbox_other_opt_1'] | true | |
|
|
50
|
+
| dropdown_test | dropdown_opt_2 | |
|
|
51
|
+
| radio_yesno | False | |
|
|
52
|
+
| radio_other | radio_other_opt_3 | |
|
|
53
|
+
| text_input | Regular text input field value | |
|
|
54
|
+
| textarea | Multiline text\narea value | |
|
|
55
|
+
| date_input | today - 1 | |
|
|
56
|
+
| direct_standard_fields | True | |
|
|
57
|
+
|
|
58
|
+
ERROR: The question id was supposed to be "showifs", but it's actually "direct-standard-fields".
|
|
59
|
+
|
|
60
|
+
**-- Scenario Failed --**
|
package/cucumber.js
CHANGED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const log = require('./utils/log');
|
|
5
|
+
const session_vars = require('./utils/session_vars');
|
|
6
|
+
|
|
7
|
+
// import {loadConfiguration, loadSupport, runCucumber } from '@cucumber/cucumber/api';
|
|
8
|
+
const cucumber_api = require('@cucumber/cucumber/api');
|
|
9
|
+
|
|
10
|
+
(async function main() {
|
|
11
|
+
let argv = process.argv;
|
|
12
|
+
|
|
13
|
+
let just_args = argv.slice(2);
|
|
14
|
+
|
|
15
|
+
const environment = { cwd: process.cwd() };
|
|
16
|
+
const provided_config = {
|
|
17
|
+
"publishQuiet": true,
|
|
18
|
+
"require": "./lib/index.js",
|
|
19
|
+
"format": ["progress", "summary:cucumber-report.txt"],
|
|
20
|
+
"paths": ["docassemble/*/data/sources/*.feature"],
|
|
21
|
+
"retry": 1,
|
|
22
|
+
}
|
|
23
|
+
if (just_args.length > 0) {
|
|
24
|
+
// Cucumber expects tags in boolean expressions, like (@a0 or @a1) and @random.
|
|
25
|
+
// If we get a list of only tags, then "or" them all together
|
|
26
|
+
if (just_args.every((val) => val.startsWith("@"))) {
|
|
27
|
+
provided_config.tags = just_args.join(' or ');
|
|
28
|
+
}
|
|
29
|
+
// If we get a list of seemingly no tags, assume they meant to use tags
|
|
30
|
+
else if (just_args.every((val) => !val.startsWith("@"))) {
|
|
31
|
+
provided_config.tags = just_args.map((val) => "@" + val).join(' or ');
|
|
32
|
+
}
|
|
33
|
+
// If it's a mix of tags and no tags, it's probably a boolean expression!
|
|
34
|
+
else {
|
|
35
|
+
provided_config.tags = just_args.join(' ');
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
const { runConfiguration } = await cucumber_api.loadConfiguration({
|
|
39
|
+
provided: provided_config
|
|
40
|
+
}, environment);
|
|
41
|
+
var path = require('path');
|
|
42
|
+
var codeDir = path.dirname(require.main.filename);
|
|
43
|
+
const support = await cucumber_api.loadSupport({ support: {
|
|
44
|
+
requireModules: [`${ codeDir }/index.js`],
|
|
45
|
+
requirePaths: [ `${ codeDir }/index.js`],
|
|
46
|
+
importPaths: [],
|
|
47
|
+
}, sources: {paths: []}}, environment);
|
|
48
|
+
|
|
49
|
+
const { success } = await cucumber_api.runCucumber({...runConfiguration, support});
|
|
50
|
+
console.log("%o", success);
|
|
51
|
+
const exitCode = success ? 0 : 1;
|
|
52
|
+
process.exitCode = exitCode;
|
|
53
|
+
// console.log(support);
|
|
54
|
+
// console.log(`codeDir: ${ codeDir }`);
|
|
55
|
+
|
|
56
|
+
//const cli = new cucumber_cli.default({
|
|
57
|
+
// argv: argv,
|
|
58
|
+
// cwd,
|
|
59
|
+
// stdout: process.stdout,
|
|
60
|
+
//});
|
|
61
|
+
//try {
|
|
62
|
+
// result = await cli.run();
|
|
63
|
+
// }
|
|
64
|
+
// catch (error) {
|
|
65
|
+
// console.error(error);
|
|
66
|
+
// process.exit(1);
|
|
67
|
+
//}
|
|
68
|
+
|
|
69
|
+
//const exitCode = result.success ? 0 : 1;
|
|
70
|
+
//process.exitCode = exitCode;
|
|
71
|
+
|
|
72
|
+
// This is hardcoded information from `cucumber.js`. Once we move to cucumber 8, we should
|
|
73
|
+
// change that the cucumber.json and actually parse the info from it.
|
|
74
|
+
// The file won't be used for anything other than detecting and removing color codes
|
|
75
|
+
let summary_file_name = 'cucumber-report.txt';
|
|
76
|
+
fs.readFile(summary_file_name, 'utf8', (err, data) => {
|
|
77
|
+
if (err) {
|
|
78
|
+
console.error(err);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Replace terminal color codes, if present
|
|
83
|
+
// https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797#colors--graphics-mode
|
|
84
|
+
data = data.replace(/\x1b\[[0-9][0-9]?[0-9]?m/g, '');
|
|
85
|
+
|
|
86
|
+
// Put it in the correct file in the correct folder
|
|
87
|
+
let artifacts_path = session_vars.get_artifacts_path_name();
|
|
88
|
+
fs.appendFileSync( `${ log.debug_log_file }`, data, err => {
|
|
89
|
+
console.log(err);
|
|
90
|
+
if (err) {
|
|
91
|
+
console.error(err);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
}); // Ends appendFileSync
|
|
95
|
+
});
|
|
96
|
+
})();
|