@suffolklitlab/alkiln 4.10.0 → 4.10.1

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.
Files changed (117) hide show
  1. package/.github/workflows/test_tests.yml +6 -4
  2. package/CHANGELOG.md +6 -0
  3. package/MANIFEST.in +1 -0
  4. package/_alkiln-misc_artifacts/unit_tests_logs-2022-12-29 at 02h22m01s457ms UTC.txt +20 -0
  5. 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
  6. 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
  7. 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
  8. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with a missing phrase-2022-12-29 at 02h13m42s632ms UTC/report.txt +10 -0
  9. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with cannot find missing document-2022-12-29 at 02h14m13s528ms UTC/report.txt +10 -0
  10. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with could not find files-2022-12-29 at 02h14m20s192ms UTC/report.txt +13 -0
  11. 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
  12. 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
  13. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with incorrectly present phrase-2022-12-29 at 02h13m43s918ms UTC/report.txt +10 -0
  14. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with link text not visible-2022-12-29 at 02h13m52s649ms UTC/report.txt +10 -0
  15. 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
  16. 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
  17. 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
  18. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with missing element id-2022-12-29 at 02h13m45s207ms UTC/report.txt +10 -0
  19. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with missing error message-2022-12-29 at 02h13m48s710ms UTC/report.txt +10 -0
  20. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with missing link with url-2022-12-29 at 02h13m54s329ms UTC/report.txt +10 -0
  21. 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
  22. 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
  23. 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
  24. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with unexpectedly able to continue-2022-12-29 at 02h13m46s819ms UTC/report.txt +11 -0
  25. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with var not on page-2022-12-29 at 02h14m10s627ms UTC/report.txt +12 -0
  26. 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
  27. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with wrong email secret name-2022-12-29 at 02h14m18s763ms UTC/report.txt +10 -0
  28. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fail with wrong password secret name-2022-12-29 at 02h14m19s291ms UTC/report.txt +10 -0
  29. 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
  30. 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
  31. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Fields are listed out of order-2022-12-29 at 02h14m55s580ms UTC/report.txt +103 -0
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I check navigation-2022-12-29 at 02h12m41s028ms UTC/report.txt +54 -0
  52. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I check the pages for accessibility-2022-12-29 at 02h13m02s923ms UTC/report.txt +58 -0
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I get the page's JSON-2022-12-29 at 02h13m00s023ms UTC/report.txt +71 -0
  62. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I have four name parts-2022-12-29 at 02h09m31s566ms UTC/report.txt +10 -0
  63. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I have three name parts-2022-12-29 at 02h09m27s653ms UTC/report.txt +10 -0
  64. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I have two name parts-2022-12-29 at 02h09m21s065ms UTC/report.txt +10 -0
  65. 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
  66. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I see user errors_-2022-12-29 at 02h12m37s167ms UTC/report.txt +9 -0
  67. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I set various values-2022-12-29 at 02h11m10s659ms UTC/report.txt +58 -0
  68. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I set various values-2022-12-29 at 02h11m10s659ms UTC/simple-doc.pdf +0 -0
  69. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I sign in-2022-12-29 at 02h10m54s349ms UTC/report.txt +7 -0
  70. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I take a screenshot-2022-12-29 at 02h13m01s434ms UTC/report.txt +6 -0
  71. 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
  72. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/I upload files with a table-2022-12-29 at 02h15m13s490ms UTC/report.txt +19 -0
  73. 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
  74. 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
  75. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Interview name includes url args-2022-12-29 at 02h10m48s849ms UTC/report.txt +6 -0
  76. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Latin-Fail with missing language link-2022-12-29 at 02h13m40s278ms UTC/report.txt +10 -0
  77. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Latin-Fail with wrong page id-2022-12-29 at 02h13m41s379ms UTC/report.txt +10 -0
  78. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Proxy and regular vars are mixed-2022-12-29 at 02h14m51s648ms UTC/report.txt +35 -0
  79. 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
  80. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Report lists unused table rows-2022-12-29 at 02h14m29s563ms UTC/report.txt +65 -0
  81. 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
  82. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Server finishes reloading-2022-12-29 at 02h11m08s477ms UTC/report.txt +6 -0
  83. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Sign in to server successfully-2022-12-29 at 02h14m34s127ms UTC/report.txt +6 -0
  84. 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
  85. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Table MISSING trigger column-2022-12-29 at 02h14m41s898ms UTC/report.txt +33 -0
  86. 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
  87. 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
  88. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Table has trigger column-2022-12-29 at 02h14m39s081ms UTC/report.txt +37 -0
  89. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Test _Then I cannot continue_-2022-12-29 at 02h12m48s119ms UTC/report.txt +9 -0
  90. 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
  91. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/Test _Then I do not continue_-2022-12-29 at 02h12m50s316ms UTC/report.txt +9 -0
  92. 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
  93. 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
  94. 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
  95. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/debug_log.txt +2373 -0
  96. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/handles settings from Github secrets-2022-12-29 at 02h12m13s413ms UTC/report.txt +19 -0
  97. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/report.txt +1439 -0
  98. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/tap element with an error-2022-12-29 at 02h12m18s853ms UTC/report.txt +10 -0
  99. package/alkiln-2022-12-29 at 02h09m19s552ms UTC/tap elements-2022-12-29 at 02h12m16s677ms UTC/report.txt +6 -0
  100. package/docassemble/__init__.py +5 -0
  101. package/lib/scope.js +45 -28
  102. package/lib/utils/files.js +1 -1
  103. package/lib/utils/session_vars.js +5 -3
  104. package/package.json +4 -4
  105. package/setup.py +60 -0
  106. package/tests/features/assembly_line.feature +0 -43
  107. package/tests/features/establishing_steps.feature +0 -62
  108. package/tests/features/example_test.feature +0 -11
  109. package/tests/features/interactive_steps.feature +0 -166
  110. package/tests/features/observation_steps.feature +0 -153
  111. package/tests/features/random_input.feature +0 -31
  112. package/tests/features/reload.feature +0 -155
  113. package/tests/features/reports.feature +0 -557
  114. package/tests/features/some_png_1.png +0 -0
  115. package/tests/features/some_png_2.png +0 -0
  116. package/tests/features/story_table_formats.feature +0 -125
  117. package/tests/features/story_tables.feature +0 -91
@@ -1,557 +0,0 @@
1
- @reports
2
- Feature: Reports show the right things
3
-
4
- # rf for report failing
5
- # rw for report warning
6
- # rp for report pass
7
-
8
- # ===============================
9
- # Reports for "failed" Scenarios
10
- # ===============================
11
-
12
- # ---- Exceptions in steps.js ----
13
-
14
- @fast @rf1 @error
15
- Scenario: Fail with missing language link
16
- Given the final Scenario status should be "failed"
17
- Given the Scenario report should include:
18
- """
19
- Could not find the link with the text "Latin"
20
- """
21
- And I start the interview at "all_tests" in lang "Latin"
22
-
23
- ## This screen has not yet been created in the testing interview
24
- #@fast @rf2 @error
25
- #Scenario: Fail with found no page id
26
- # Given the final Scenario status should be "failed"
27
- # Given the Scenario report should include:
28
- # """
29
- # Did not find any question id.
30
- # """
31
- # And I start the interview at "all_tests"
32
- # Then the question id should be "any question id"
33
-
34
- @fast @rf3 @error
35
- Scenario: Fail with wrong page id
36
- Given the final Scenario status should be "failed"
37
- Given the Scenario report should include:
38
- """
39
- The question id was supposed to be
40
- """
41
- And I start the interview at "all_tests"
42
- Then the question id should be "wrong question id"
43
-
44
- @fast @rf4 @error
45
- Scenario: Fail with a missing phrase
46
- Given the final Scenario status should be "failed"
47
- Given the Scenario report should include:
48
- """
49
- SHOULD be on this page, but it's NOT
50
- """
51
- And I start the interview at "all_tests"
52
- Then I SHOULD see the phrase "phrase missing"
53
-
54
- @fast @rf5 @error
55
- Scenario: Fail with incorrectly present phrase
56
- Given the final Scenario status should be "failed"
57
- Given the Scenario report should include:
58
- """
59
- should NOT be on this page, but it IS here
60
- """
61
- And I start the interview at "all_tests"
62
- Then I should NOT see the phrase "e"
63
-
64
- @fast @rf6 @error
65
- Scenario: Fail with missing element id
66
- Given the final Scenario status should be "failed"
67
- Given the Scenario report should include:
68
- """
69
- No element on this page has the ID
70
- """
71
- And I start the interview at "all_tests"
72
- Then an element should have the id "wrong element id"
73
-
74
- @fast @rf7 @error
75
- Scenario: Fail with unexpectedly able to continue
76
- Given the final Scenario status should be "failed"
77
- Given the Scenario report should include:
78
- """
79
- The page should have stopped the user from continuing, but the user was able to continue.
80
- """
81
- And I start the interview at "all_tests"
82
- Then the question id should be "upload files"
83
- And I tap to continue
84
- Then I can't continue
85
-
86
- @fast @rf8 @error
87
- Scenario: Fail with missing error message
88
- Given the final Scenario status should be "failed"
89
- Given the Scenario report should include:
90
- """
91
- No error message was found on the page
92
- """
93
- And I start the interview at "all_tests"
94
- And I will be told an answer is invalid
95
-
96
- ## Not sure how to trigger this at the moment
97
- #@fast @rf9 @error
98
- #Scenario: Fail with missing user error message
99
- # Given the final Scenario status should be "failed"
100
- # Given the Scenario report should include:
101
- # """
102
- # The error was a system error, not an error message to the user.
103
- # """
104
- # And I start the interview at "all_tests"
105
- # And I will be told an answer is invalid
106
-
107
- # TODO: Check this with validation code failure too
108
- @fast @rf10 @error
109
- Scenario: Fail with was unexpectedly not able to continue for invalid field input message
110
- Given the final Scenario status should be "failed"
111
- Given the Scenario report should include:
112
- """
113
- User did not arrive at the next page.
114
- """
115
- And I start the interview at "all_tests"
116
- And I tap to continue
117
- And I tap to continue
118
- And I tap to continue
119
- Then I arrive at the next page
120
-
121
- @fast @rf11 @error
122
- Scenario: Fail with link text not visible
123
- Given the final Scenario status should be "failed"
124
- Given the Scenario report should include:
125
- """
126
- Cannot find a link with the text
127
- """
128
- And I start the interview at "all_tests"
129
- Then I should see the link "Missing link"
130
-
131
- @fast @rf12 @error
132
- Scenario: Fail with missing link with url
133
- Given the final Scenario status should be "failed"
134
- Given the Scenario report should include:
135
- """
136
- Cannot find a link to
137
- """
138
- And I start the interview at "all_tests"
139
- Then I should see the link to "http://missing-url.com"
140
-
141
- @slow @rf13 @error @table
142
- Scenario: Fail with link with given text does not lead to correct url
143
- Given the final Scenario status should be "failed"
144
- Given the Scenario report should include:
145
- """
146
- Cannot find a link with the text "Link to external page" leading to http://wrong-url.com.
147
- """
148
-   Given I start the interview at "all_tests"
149
- And I tap to continue
150
-   And I get to "showifs" with this data:
151
- | var | value | trigger |
152
- | double_quote_dict["double_quote_key"]['dq_two'] | true | |
153
- | checkboxes_other['checkbox_other_opt_1'] | true | |
154
- | dropdown_test | dropdown_opt_2 | |
155
- | radio_yesno | False | false |
156
- | radio_other | radio_other_opt_3 | |
157
- | single_quote_dict['single_quote_key']['sq_two'] | true | |
158
- | text_input | Regular text input field value | |
159
- | textarea | Multiline text\narea value | |
160
- Then I arrive at the next page
161
-   Then I get to "screen features" with this data:
162
- | var | value | trigger |
163
- | object_checkboxes_test["obj_chkbx_opt_1"] | true | |
164
- | object_dropdown | obj_opt_2 | |
165
- | button_continue | True | |
166
- | buttons_other | button_2 | |
167
- | buttons_yesnomaybe | True | |
168
- And I should see the link to "http://ecosia.org/"
169
- Then the "Link to external page" link leads to "http://wrong-url.com"
170
-
171
- @slow @rf14 @error @table
172
- Scenario: Fail with link unexpectedly opens in same window
173
- Given the final Scenario status should be "failed"
174
- Given the Scenario report should include:
175
- """
176
- The link "Link to external page" does NOT open in the same window
177
- """
178
-   Given I start the interview at "all_tests"
179
- And I tap to continue
180
-   And I get to "showifs" with this data:
181
- | var | value | trigger |
182
- | double_quote_dict["double_quote_key"]['dq_two'] | true | |
183
- | checkboxes_other['checkbox_other_opt_1'] | true | |
184
- | dropdown_test | dropdown_opt_2 | |
185
- | radio_yesno | False | false |
186
- | radio_other | radio_other_opt_3 | |
187
- | single_quote_dict['single_quote_key']['sq_two'] | true | |
188
- | text_input | Regular text input field value | |
189
- | textarea | Multiline text\narea value | |
190
- Then I arrive at the next page
191
-   Then I get to "screen features" with this data:
192
- | var | value | trigger |
193
- | object_checkboxes_test["obj_chkbx_opt_1"] | true | |
194
- | object_dropdown | obj_opt_2 | |
195
- | button_continue | True | |
196
- | buttons_other | button_2 | |
197
- | buttons_yesnomaybe | True | |
198
- And I should see the link to "http://ecosia.org/"
199
- Then the "Link to external page" link opens in the same window
200
-
201
- @fast @rf15 @error @table
202
- Scenario: Fail with link unexpectedly opens in a new window
203
- Given the final Scenario status should be "failed"
204
- Given the Scenario report should include:
205
- """
206
- The link "Link: reload the page" does NOT open in a new window
207
- """
208
-   Given I start the interview at "all_tests"
209
- And I tap to continue
210
-   And I get to "showifs" with this data:
211
- | var | value | trigger |
212
- | double_quote_dict["double_quote_key"]['dq_two'] | true | |
213
- | checkboxes_other['checkbox_other_opt_1'] | true | |
214
- | dropdown_test | dropdown_opt_2 | |
215
- | radio_yesno | False | false |
216
- | radio_other | radio_other_opt_3 | |
217
- | single_quote_dict['single_quote_key']['sq_two'] | true | |
218
- | text_input | Regular text input field value | |
219
- | textarea | Multiline text\narea value | |
220
- Then I arrive at the next page
221
-   Then I get to "screen features" with this data:
222
- | var | value | trigger |
223
- | object_checkboxes_test["obj_chkbx_opt_1"] | true | |
224
- | object_dropdown | obj_opt_2 | |
225
- | button_continue | True | |
226
- | buttons_other | button_2 | |
227
- | buttons_yesnomaybe | True | |
228
- And I should see the link to "http://ecosia.org/"
229
- Then the "Link: reload the page" link opens in a new window
230
-
231
- ## Don't currently have a broken link to test and this Step is not officially supported
232
- #@fast @rf16 @error @table
233
- #Scenario: Fail with link leads to a broken page
234
- # Given the final Scenario status should be "failed"
235
- # Given the Scenario report should include:
236
- # """
237
- # link is broken
238
- # """
239
- #  Given I start the interview at "all_tests"
240
- # And I tap to continue
241
- #  And I get to "showifs" with this data:
242
- # | var | value | trigger |
243
- # | double_quote_dict["double_quote_key"]['dq_two'] | true | |
244
- # | checkboxes_other['checkbox_other_opt_1'] | true | |
245
- # | dropdown_test | dropdown_opt_2 | |
246
- # | radio_yesno | False | false |
247
- # | radio_other | radio_other_opt_3 | |
248
- # | single_quote_dict['single_quote_key']['sq_two'] | true | |
249
- # | text_input | Regular text input field value | |
250
- # | textarea | Multiline text\narea value | |
251
- # Then I arrive at the next page
252
- #  Then I get to "screen features" with this data:
253
- # | var | value | trigger |
254
- # | button_continue | True | |
255
- # | buttons_other | button_2 | |
256
- # | buttons_yesnomaybe | True | |
257
- # And I should see the link to "http://ecosia.org/"
258
- # Then the "Link to external page" link opens a working page
259
-
260
- # 'I tap to continue'
261
- # Tapping to continue should not ever fail for its own sake. We
262
- # have Steps that check the consequences of tapping to continue.
263
-
264
- # Below is test from scope.js, which makes this of place. Maybe this is the
265
- # wrong way to organize things. Or maybe we shouldn't give tests unique ids
266
- # at all.
267
-
268
- # Not testing: missing var independently, missing value independently.
269
- # Cannot auto test that multiple vars get detected because it's not currently
270
- # possible to hand in multiple vars and require that all rows be used, but it
271
- # has been confirmed by hand for now.
272
- @fast @rf17 @error
273
- Scenario: Fail with var not on page
274
- Given the final Scenario status should be "failed"
275
- Given the Scenario report should include:
276
- """
277
- Did not find a field on this page for the variable
278
- """
279
- And the Scenario report should include:
280
- """
281
- Missing variable or variables on page
282
- """
283
- And I start the interview at "all_tests"
284
- And I set the var "missing_var_1" to "missing value 1"
285
-
286
- @fast @rf18 @error
287
- Scenario: Fail with missing term with the given text
288
- Given the final Scenario status should be "failed"
289
- Given the Scenario report should include:
290
- """
291
- The term "wrong term" seems to be missing
292
- """
293
- And I start the interview at "all_tests"
294
- Then I tap the defined text link "wrong term"
295
-
296
- @fast @rf19 @error
297
- Scenario: Fail with cannot find missing document
298
- Given the final Scenario status should be "failed"
299
- Given the Scenario report should include:
300
- """
301
- Cannot find a link to that document
302
- """
303
- And I start the interview at "all_tests"
304
- Then I download "missing-doc.pdf"
305
-
306
-
307
- # ---- Exceptions in scope.js ----
308
-
309
- # This can have a ton of different error messages depending on the DA error
310
- # that was triggered. We'll make do with one for now.
311
- @fast @rf20 @error
312
- Scenario: Fail with system error after Step using wrong file name as trigger
313
- Given the final Scenario status should be "failed"
314
- Given the Scenario report should include:
315
- """
316
- Reference to invalid playground path
317
- """
318
- And I start the interview at "wrong_yaml_filename"
319
-
320
- ## Not sure how to trigger this. I think we'd need the server to be down.
321
- #@fast @rf21 @error
322
- #Scenario: Fail with interview does not load after multiple tries
323
- # Given the final Scenario status should be "failed"
324
- # Given the Scenario report should include:
325
- # """
326
- # The interview at ${ interview_url } did not load after
327
- # """
328
- # And I start the interview at "wrong_yaml_filename"
329
-
330
- @fast @rf22 @table
331
- Scenario: I can't match JSON page var to str
332
- Given the final Scenario status should be "failed"
333
- Given the Scenario report should include:
334
- """
335
- was not equal to the expected value
336
- """
337
- Given I start the interview at "all_tests.yml"
338
-   And I get to "showifs" with this data:
339
- | var | value | trigger |
340
- | double_quote_dict["double_quote_key"]['dq_two'] | true | |
341
- | checkboxes_other['checkbox_other_opt_1'] | true | |
342
- | dropdown_test | dropdown_opt_2 | |
343
- | radio_yesno | False | false |
344
- | radio_other | radio_other_opt_3 | |
345
- | single_quote_dict['single_quote_key']['sq_two'] | true | |
346
- | text_input | Regular text input field value | |
347
- | textarea | Multiline text\narea value | |
348
- | date_input | today | |
349
- Then the text in the JSON variable "dropdown_test" should be
350
- """
351
- wrong_value
352
- """
353
-
354
- @fast @rf22 @signin
355
- Scenario: Fail with wrong email secret name
356
- Given the final Scenario status should be "failed"
357
- Given the Scenario report should include:
358
- """
359
- email address GitHub SECRET
360
- """
361
-   Given I log on with the email "WRONG_EMAIL_NAME" and the password "USER1_PASSWORD"
362
-
363
- @fast @rf23 @signin
364
- Scenario: Fail with wrong password secret name
365
- Given the final Scenario status should be "failed"
366
- Given the Scenario report should include:
367
- """
368
- password GitHub SECRET
369
- """
370
-   Given I sign in with the email "USER1_EMAIL" and the password "WRONG_PASSWORD_NAME"
371
-
372
- @fast @rf24 @signin
373
- Scenario: Fail with 2 wrong signin secret names
374
- Given the final Scenario status should be "failed"
375
- Given the Scenario report should include:
376
- """
377
- email address GitHub SECRET
378
- """
379
- Given the Scenario report should include:
380
- """
381
- password GitHub SECRET
382
- """
383
-   Given I sign in with the email "WRONG_EMAIL_NAME" and the password "WRONG_PASSWORD_NAME"
384
-
385
- @fast @rf25 @upload
386
- Scenario: Fail with could not find files
387
- Given the final Scenario status should be "failed"
388
- Given the Scenario report should include:
389
- """
390
- Could not find "nonexistant1.pdf, nonexistant2.pdf"
391
- """
392
- Given I start the interview at "all_tests"
393
- And I upload "nonexistant1.pdf, nonexistant2.pdf" to "upload_files_visible"
394
-
395
- @fast @rf26 @secret @error
396
- Scenario: Fail to find var while keeping value secret
397
- Given the final Scenario status should be "failed"
398
- Given the Scenario report should include:
399
- """
400
- Did not find a field on this page for the variable "missing_var" that could be set to "SECRET_FOR_MISSING_FIELD"
401
- """
402
- And the Scenario report should include:
403
- """
404
- For security, ALKiln will not create a screenshot for this error.
405
- """
406
- And I start the interview at "test_secret_vars"
407
- And I set the var "missing_var" to the secret "SECRET_FOR_MISSING_FIELD"
408
-
409
-
410
- # scope.js
411
- # I upload "___" to "___"
412
- # No need to test wrong var name
413
- # Test non-existant file?
414
- # How to test non-existant directory?
415
- #
416
- # I sign
417
-
418
-
419
- # ===============================
420
- # Reports for Scenarios with warnings
421
- # ===============================
422
-
423
- @fast @rw1 @warning
424
- Scenario: Warn when there are too many names
425
- Given the Scenario report should include:
426
- """
427
- The name "Uli Udo User Sampson Jr" has more than 4 parts, but 4 is the maximum allowed. The test will set the name to "Uli Udo User Jr"
428
- """
429
- Given I start the interview at "AL_tests"
430
- And I set the name of "users[0]" to "Uli Udo User Sampson Jr"
431
- And I tap to continue
432
-
433
-
434
- # ===============================
435
- # Reports for "passed" Scenarios
436
- # ===============================
437
-
438
- @fast @rp1
439
- Scenario: Report still shows page id when I tap to continue without setting any fields
440
- Given the final Scenario status should be "passed"
441
- Given the Scenario report should include:
442
- """
443
- ---------------
444
- Scenario: Report still shows page id when I tap to continue without setting any fields
445
- Tags: @reports @fast @rp1
446
- ---------------
447
- Trying to load the interview
448
- screen id: upload-files
449
- screen id: group-of-complex-fields
450
- | double_quote_dict['double_quote_key']['dq_two'] | true | |
451
- | single_quote_dict['single_quote_key']['sq_two'] | true | |
452
- screen id: direct-standard-fields
453
- | checkboxes_yesno | True | |
454
- | checkboxes_other['checkbox_other_opt_1'] | true | |
455
- | dropdown_test | dropdown_opt_2 | |
456
- | radio_yesno | False | |
457
- | radio_other | radio_other_opt_3 | |
458
- | text_input | Regular text input field value | |
459
- | textarea | Multiline text\narea value | |
460
- screen id: showifs
461
-
462
- """
463
- And I start the interview at "all_tests"
464
- And I tap to continue
465
- # Next page
466
- And I set the var "double_quote_dict['double_quote_key']['dq_two']" to "true"
467
- And I set the var "single_quote_dict['single_quote_key']['sq_two']" to "true"
468
- And I tap to continue
469
- Then the question id should be "direct standard fields"
470
- # Next page
471
- When I set the var "checkboxes_yesno" to "True"
472
- And I set the var "checkboxes_other['checkbox_other_opt_1']" to "true"
473
- And I set the var "dropdown_test" to "dropdown_opt_2"
474
- And I set the var "radio_yesno" to "False"
475
- And I set the var "radio_other" to "radio_other_opt_3"
476
- And I set the var "text_input" to "Regular text input field value"
477
- And I set the var "textarea" to "Multiline text\narea value"
478
- When I tap to continue
479
- # Next page
480
- Then the question id should be "showifs"
481
- When I tap to continue
482
- # Next page
483
- Then the question id should be "object checkboxes"
484
- And I set the var "object_checkboxes_test['obj_chkbx_opt_1']" to "true"
485
- And I set the var "object_dropdown" to "obj_opt_2"
486
- When I tap to continue
487
- # Next page (showifs ID SHOULD BE SHOWN IN REPORT)
488
- Then the question id should be "buttons yesnomaybe"
489
-
490
- @slow @rp2 @table
491
- Scenario: Report lists unused table rows
492
- Given the final Scenario status should be "passed"
493
- Given the Scenario report should include:
494
- """
495
- Unused rows:
496
- | extra_2 | extra 2 | |
497
- | extra_out_of_alphabetical_order | extra 1 | |
498
- """
499
- Given the Scenario report should include:
500
- """
501
- Unused rows:
502
- | extra_3 | extra 3 | |
503
- | extra_4 | extra 4 | |
504
- | extra_5 | extra 5 | |
505
- """
506
- Given the Scenario report should include:
507
- """
508
- Unused rows:
509
- | extra_6 | extra 6 | |
510
- | extra_7 | extra 7 | |
511
- """
512
- And I start the interview at "all_tests"
513
-   And I get to "direct standard fields" with this data:
514
- | var | value | trigger |
515
- | double_quote_dict["double_quote_key"]['dq_two'] | true | |
516
- | single_quote_dict['single_quote_key']['sq_two'] | true | |
517
- | extra_out_of_alphabetical_order | extra 1 | |
518
- | extra_2 | extra 2 | |
519
-   And I get to "showifs" with this data:
520
- | var | value | trigger |
521
- | extra_3 | extra 3 | |
522
- | checkboxes_other['checkbox_other_opt_1'] | true | |
523
- | dropdown_test | dropdown_opt_2 | |
524
- | radio_yesno | False | false |
525
- | extra_4 | extra 4 | |
526
- | radio_other | radio_other_opt_3 | |
527
- | text_input | Regular text input field value | |
528
- | textarea | Multiline text\narea value | |
529
- | extra_5 | extra 5 | |
530
-   Then I get to "screen features" with this data:
531
- | var | value | trigger |
532
- | object_checkboxes_test["obj_chkbx_opt_1"] | true | |
533
- | object_dropdown | obj_opt_2 | |
534
- | extra_6 | extra 6 | |
535
- | extra_7 | extra 7 | |
536
- | button_continue | True | |
537
- | buttons_other | button_2 | |
538
- | buttons_yesnomaybe | True | |
539
-
540
- @fast @rp3 @signin
541
- Scenario: Sign in to server successfully
542
- Given the Scenario report should include:
543
- """
544
- Signed in
545
- """
546
-   Given I sign in with the email "USER1_EMAIL" and the password "USER1_PASSWORD"
547
-
548
- @rp4 @table
549
- Scenario: Report doesn't complain about `there_is_another | False` in a table.
550
- Given the Scenario report should not include:
551
- """
552
- The attribute `.there_is_another` is invalid in story table tests
553
- """
554
- Given I start the interview at "test_gather"
555
- And I get to "end screen" with this data:
556
- | var | value | trigger |
557
- | users.there_is_another | False | users.there_is_another |
Binary file
Binary file
@@ -1,125 +0,0 @@
1
- @story_tables_formats @table
2
- Feature: Supported story table formats
3
-
4
- NOTE:
5
- Unsupported formats:
6
- - Format 1 and 2 tables (permanent) (see https://github.com/plocket/docassemble-cucumber/issues/264)
7
-
8
- NOTE:
9
- x[i].name.first is the string in the YAML for this variable name, and it's the info that will be in the DOM.
10
- https://github.com/plocket/docassemble-ALAutomatedTestingTests/blob/ad1232049d7ca7a9b97b22f8ca3915dd3dae8114/docassemble/ALAutomatedTestingTests/data/questions/all_tests.yml#L80
11
-
12
- NOTE:
13
- The `trigger` column does not require a value. That way simple interviews
14
- don't have to deal with it. They don't even need a trigger column (see tests below).
15
-
16
- ### Here for reference. See note above about formats 1 and 2 being unsupported
17
- ## TODO: Test og table with `trigger` col added?
18
- #@fast @stf1
19
- #Scenario: Table is format 1 (og three cols)
20
- #  Given I start the interview at "all_tests"
21
- #  And I get to "showifs" with this data:
22
- # | var | choice | value |
23
- # | checkboxes_other['checkbox_other_opt_1'] | | true |
24
- # | checkboxes_yesno | True | true |
25
- # | dropdown_test | | dropdown_opt_2 |
26
- # | radio_other | | radio_other_opt_3 |
27
- # | radio_yesno | False | true |
28
- # | text_input | | Regular text input field value |
29
- # | textarea | | Multiline text\narea value |
30
- #
31
- #@fast @stf2
32
- #Scenario: Table is format 2 (no trigger column)
33
- #  Given I start the interview at "all_tests"
34
- #  And I get to "showifs" with this data:
35
- # | var | value | checked |
36
- # | checkboxes_other['checkbox_other_opt_2'] | true | |
37
- # | checkboxes_yesno | True | true |
38
- # | dropdown_test | dropdown_opt_2 | |
39
- # | radio_other | radio_other_opt_3 | |
40
- # | radio_yesno | False | false |
41
- # | text_input | Regular text input field value | |
42
- # | textarea | Multiline text\narea value | |
43
-
44
- # TODO: Only go up to the x[i] pages
45
- @slow @stf3
46
- Scenario: Table has trigger column
47
-   Given I start the interview at "all_tests"
48
-   And I get to "showifs" with this data:
49
- | var | value | trigger |
50
- | double_quote_dict["double_quote_key"]['dq_two'] | true | |
51
- | checkboxes_other['checkbox_other_opt_1'] | true | |
52
- | checkboxes_other['checkbox_other_opt_2'] | true | |
53
- | checkboxes_other['checkbox_other_opt_3'] | false | |
54
- | checkboxes_yesno | True | |
55
- | dropdown_test | dropdown_opt_2 | |
56
- | radio_other | radio_other_opt_3 | |
57
- | radio_yesno | False | |
58
- | single_quote_dict['single_quote_key']['sq_two'] | true | |
59
- | text_input | Regular text input field value | |
60
- | textarea | Multiline text\narea value | |
61
-
62
- # TODO: Only go up to the x[i] pages
63
- @slow @stf4
64
- Scenario: Table MISSING trigger column
65
-   Given I start the interview at "all_tests"
66
-   And I get to "showifs" with this data:
67
- | var | value |
68
- | double_quote_dict["double_quote_key"]['dq_two'] | true |
69
- | checkboxes_other['checkbox_other_opt_2'] | true |
70
- | checkboxes_yesno | True |
71
- | dropdown_test | dropdown_opt_2 |
72
- | radio_other | radio_other_opt_3 |
73
- | radio_yesno | False |
74
- | single_quote_dict['single_quote_key']['sq_two'] | true |
75
- | text_input | Regular text input field value |
76
- | textarea | Multiline text\narea value |
77
-
78
- @fast @stf5
79
- Scenario: Table has no header row, has trigger column
80
-   Given I start the interview at "all_tests"
81
-   And I get to "showifs" with this data:
82
- | double_quote_dict["double_quote_key"]['dq_two'] | true | |
83
- | checkboxes_other['checkbox_other_opt_1'] | true | |
84
- | checkboxes_other['checkbox_other_opt_2'] | true | |
85
- | checkboxes_other['checkbox_other_opt_3'] | false | |
86
- | checkboxes_yesno | True | |
87
- | dropdown_test | dropdown_opt_2 | |
88
- | radio_other | radio_other_opt_3 | |
89
- | radio_yesno | False | |
90
- | single_quote_dict['single_quote_key']['sq_two'] | true | |
91
- | text_input | Regular text input field value | |
92
- | textarea | Multiline text\narea value | |
93
-
94
- @fast @stf6
95
- Scenario: Table has no header row, MISSING trigger column
96
-   Given I start the interview at "all_tests"
97
-   And I get to "showifs" with this data:
98
- | double_quote_dict["double_quote_key"]['dq_two'] | true |
99
- | checkboxes_other['checkbox_other_opt_2'] | true |
100
- | checkboxes_yesno | True |
101
- | dropdown_test | dropdown_opt_2 |
102
- | radio_other | radio_other_opt_3 |
103
- | radio_yesno | False |
104
- | single_quote_dict['single_quote_key']['sq_two'] | true |
105
- | text_input | Regular text input field value |
106
- | textarea | Multiline text\narea value |
107
-
108
- @fast @stf7
109
- Scenario: Fails when table has no header row and rows have only one column
110
- Given the final Scenario status should be "failed"
111
- And the Scenario report should include:
112
- """
113
- Your Story Table definition needs to be changed.
114
- """
115
-   Given I start the interview at "all_tests"
116
-   And I get to "showifs" with this data:
117
- | double_quote_dict["double_quote_key"]['dq_two'] |
118
- | checkboxes_other['checkbox_other_opt_2'] |
119
- | checkboxes_yesno |
120
- | dropdown_test |
121
- | radio_other |
122
- | radio_yesno |
123
- | single_quote_dict['single_quote_key']['sq_two'] |
124
- | text_input |
125
- | textarea |