-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fix spec tests for table actions #5012
Changes from 8 commits
a11972c
11cdc12
2e2cdd1
efd4daf
e9c8738
34eb33c
73c8963
dfd67d1
8bccd40
46bd25d
9c68632
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
require_relative '../../requests/hmis/login_and_permissions' | ||
require_relative '../../support/hmis_base_setup' | ||
|
||
RSpec.feature 'Enrollment/household management', type: :system do | ||
RSpec.feature 'Intake assessment', type: :system do | ||
include_context 'hmis base setup' | ||
# could parse CAPYBARA_APP_HOST | ||
let!(:ds1) { create(:hmis_data_source, hmis: 'localhost') } | ||
|
@@ -74,7 +74,7 @@ def complete_individual_assessment | |
expect(e2.intake_assessment).to be_nil | ||
|
||
fill_in 'Search Clients', with: c1.last_name | ||
click_link c1.brief_name | ||
find('a', text: 'View Enrollment', match: :first).trigger(:click) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We lose some fidelity here -- previously we knew we were clicking on the row for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like we have |
||
click_link 'Assessments' | ||
click_link 'Finish Intake' | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@martha I'm wondering about this change, were you seeing failures?
We had previously needed this workaround for failed clicks, but I thought we fixed it with #4735.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gigxz yes, I thought I saw a failure with this locally, but let me poke it a little more...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. Something I will do if I want to be certain about new system test is to run it repeatedly on CI by adding to the below line:
hmis-warehouse/bin/run_hmis_system_tests.sh
Line 110 in 9b26502
temporarily of course :)