Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1075 Fix Capybara warning for "Files", discover failing test #1120

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

Janell-Huyck
Copy link
Contributor

@Janell-Huyck Janell-Huyck commented Nov 13, 2023

Fixes #1075

See PR #1108 for more information about the Capybara warnings.

There was a Capybara warning for Unused parameters passed to Capybara::Queries::SelectorQuery : ["Files"]. This came from the test at spec/features/form_tab_nav_js_spec.rb:30 that had a parameter "Files" in the have_selector() call. The lack of keyword "text:" caused this parameter to not be used, so the test was only looking for the first item in the query, an active list item.

Adding in the keyword "text:" causes the test to fail because the desired behavior is not happening.

I skipped the test because it will not pass without fixing the bug, and have created an issue for the bug, Ref #1121

@Janell-Huyck Janell-Huyck changed the title 1075 Fix Capybara warning, discover failing test 1075 Fix Capybara warning for "Files", discover failing test Nov 13, 2023
@crowesn crowesn merged commit 9103a33 into develop Nov 14, 2023
1 of 2 checks passed
@crowesn crowesn deleted the warn-1075-capybara-warning-for-files branch November 14, 2023 14:48
@crowesn crowesn self-assigned this Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unused parameters passed to Capybara
2 participants