Removed more api keys #829
Annotations
10 errors and 12 warnings
Tests:
spec/features/users/user_regenerable_field_spec.rb#L16
user regenerable fields api key can regenerate
Failure/Error:
within(class_name) do
token = find(".regenerable-field span").text
existing ? accept_confirm { click_on("Regenerate") } : click_on("Generate")
expect(page).to have_css(".fa-check-circle")
expect(find(".regenerable-field span").text).not_to eq(token)
end
Capybara::ElementNotFound:
Unable to find css ".user_api_key"
|
Tests:
spec/models/form_spec.rb#L53
Form API User should return true for user in whitelist
Failure/Error: expect(form.api_user_id_can_see?(user.id)).to be_truthy
NoMethodError:
undefined method `api_user_id_can_see?' for #<Form id: "38cb3c4f-1a3e-4d0d-b9eb-3e882b12b9cd", access_level: "protected", allow_incomplete: false, authenticate_sms: false, created_at: "2023-11-28 13:47:56.336599933 -0600", default_response_name: nil, downloads: 0, mission_id: "b5394bd9-36c7-48c9-a0ce-fa59e3e4f2b2", name: "Sample Form 139", original_id: nil, published_changed_at: nil, root_id: "2b53ae21-eecd-4f06-b369-0eccc1bc5e76", sms_relay: false, smsable: false, standard_copy: false, status: "draft", updated_at: "2023-11-28 13:47:56.343881571 -0600">
|
Tests:
spec/models/form_spec.rb#L57
Form API User should return false for user not in whitelist
Failure/Error: expect(form.api_user_id_can_see?(other_user.id)).to be_falsey
NoMethodError:
undefined method `api_user_id_can_see?' for #<Form id: "8836190d-f0b9-4387-814f-95ef47cf6503", access_level: "protected", allow_incomplete: false, authenticate_sms: false, created_at: "2023-11-28 13:47:56.608639813 -0600", default_response_name: nil, downloads: 0, mission_id: "71905fa9-9e29-467e-b76b-ed32b6cf1baa", name: "Sample Form 140", original_id: nil, published_changed_at: nil, root_id: "4adc2be1-c161-43c5-ba1c-dd9c74ae87c1", sms_relay: false, smsable: false, standard_copy: false, status: "draft", updated_at: "2023-11-28 13:47:56.616766668 -0600">
|
Tests:
spec/searchers/responses_searcher_spec.rb#L201
ResponsesSearcher question qualifier should handle translations
Failure/Error:
expect(searcher(%({#{codes[2]}}:chat))).to have_filter_data(
qings: [{id: form.c[2].id, option_node_id: node3.id, option_node_value: "chat"}]
)
expected [[{:id=>"7b5f68d5-e782-40af-9d8f-2e6cb20ddab9", :option_node_id=>nil, :option_node_value=>"chat"}], ""] to have filter data {:advanced_text=>"", :qings=>[{:id=>"7b5f68d5-e782-40af-9d8f-2e6cb20ddab9", :option_node_id=>"c6e21665-ac47-4e86-8b27-346eac2c5bde", :option_node_value=>"chat"}]}
Diff:
@@ -1,3 +1,5 @@
-:advanced_text => "",
-:qings => [{:id=>"7b5f68d5-e782-40af-9d8f-2e6cb20ddab9", :option_node_id=>"c6e21665-ac47-4e86-8b27-346eac2c5bde", :option_node_value=>"chat"}],
+[[{:id=>"7b5f68d5-e782-40af-9d8f-2e6cb20ddab9",
+ :option_node_id=>nil,
+ :option_node_value=>"chat"}],
+ ""]
|
Tests:
spec/models/odk/form_renderer_spec.rb#L46
ODK::FormRenderer form in mission with multiple languages should render both languages
Failure/Error: expect(tidyxml(renderer.xml)).to eq(prepare_odk_form_fixture(fixture_name, renderer.form))
expected: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<h:html xmlns=\"http://www.w3.org/2002/xforms\" xmlns:ev...:itext('qing2e0dbca3-9760-4ea2-aca0-5af4aa266a83:hint')\"/>\n </input>\n </h:body>\n</h:html>\n"
got: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<h:html xmlns=\"http://www.w3.org/2002/xforms\" xmlns:ev...:itext('qing2e0dbca3-9760-4ea2-aca0-5af4aa266a83:hint')\"/>\n </input>\n </h:body>\n</h:html>\n"
(compared using ==)
Diff:
@@ -20,17 +20,6 @@
<value/>
</text>
</translation>
- <translation lang="Français">
- <text id="qing2e0dbca3-9760-4ea2-aca0-5af4aa266a83:label">
- <value>Text Question Title 1</value>
- </text>
- <text id="qing2e0dbca3-9760-4ea2-aca0-5af4aa266a83:hint">
- <value>Question Hint 1</value>
- </text>
- <text id="BLANK">
- <value/>
- </text>
- </translation>
</itext>
<bind nodeset="/data/qing2e0dbca3-9760-4ea2-aca0-5af4aa266a83" type="string"/>
</model>
|
Tests:
spec/models/user_spec.rb#L151
User creation should have an api_key generated
Failure/Error: expect(user.api_key).to_not(be_blank)
expected `nil.blank?` to return false, got true
|
Tests:
spec/features/responses/location_picker_spec.rb#L25
response form location picker picking a location
Failure/Error: click_link("Joe Batt's Arm", match: :first)
Selenium::WebDriver::Error::UnexpectedAlertOpenError:
unexpected alert open: {Alert text : Search Error}
(Session info: headless chrome=119.0.6045.159)
|
Tests:
spec/requests/api_key_field_spec.rb#L21
api key form field in show mode for same user should be visible
Failure/Error: assert_select("div.user_api_key", true)
Minitest::Assertion:
Expected at least 1 element matching "div.user_api_key", found 0.
Expected 0 to be >= 1.
|
Tests:
spec/requests/api_key_field_spec.rb#L37
api key form field in edit mode for same user should be visible
Failure/Error:
assert_select("div.user_api_key", true) do |e|
old_key = e.to_s
end
Minitest::Assertion:
Expected at least 1 element matching "div.user_api_key", found 0.
Expected 0 to be >= 1.
|
Tests:
spec/requests/api_key_field_spec.rb#L44
api key form field in edit mode for same user should have regenerate button
Failure/Error: assert_select("div.user_api_key a", text: /Regenerate/, count: 1)
Minitest::Assertion:
Expected exactly 1 element matching "div.user_api_key a", found 0.
Expected: 1
Actual: 0
|
Tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Tests:
app/javascript/components/Filters/model.js#L133
Unexpected console statement
|
Tests:
app/javascript/components/conditions/ConditionSetFormField/ConditionFormField/component.js#L69
Unexpected console statement
|
Tests:
app/javascript/components/conditions/ConditionSetFormField/ConditionFormField/component.js#L112
Unexpected console statement
|
Tests:
app/javascript/components/conditions/ConditionSetFormField/ConditionFormField/model.js#L148
Unexpected console statement
|
Tests:
app/javascript/packs/enketo.js#L43
Unexpected console statement
|
Tests:
app/javascript/packs/enketo.js#L57
Unexpected alert
|
Tests:
app/javascript/packs/enketo.js#L80
Unexpected console statement
|
Tests:
app/javascript/packs/enketo.js#L91
Unexpected alert
|
Tests:
app/javascript/packs/enketo.js#L94
Unexpected console statement
|
Tests:
spec/models/broadcaster_spec.rb#L16
Sms::Broadcaster with adapter set in mission settings builds appropriate adapter and Sms::Broadcast instance
Skipped: Temporarily skipped with xit
|
Tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|