-
Notifications
You must be signed in to change notification settings - Fork 13
GYR1-808 Allow multiple partners to serve clients in the same zip code #6110
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
GYR1-808 Allow multiple partners to serve clients in the same zip code #6110
Conversation
| # | ||
| # index_vita_partner_zip_codes_on_vita_partner_id (vita_partner_id) | ||
| # index_vita_partner_zip_codes_on_zip_code (zip_code) UNIQUE | ||
| # index_vita_partner_zip_codes_on_zip_code (zip_code) |
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.
needed to take out unique constraint
|
Heroku app: https://gyr-review-app-6110-6085acb231a3.herokuapp.com/ |
| expect(page).to have_css('.client-table') | ||
| expect(page).to have_css('.client-row', count: 4) | ||
|
|
||
| # Default sort order |
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.
this was a flaky test, added a wait condition to help things load first before checking the content
| it "creates a new vita partner zip code for this partner" do | ||
| expect { | ||
| post :create, params: params, format: :js, xhr: true | ||
| }.to change(vita_partner.serviced_zip_codes, :count).by 1 |
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.
what is format: :js, xhr: true doing in this context?
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.
had to look this up because i copied it from the rest of existing tests, but I think its to retrieve data from a URL without a fill page refresh
Link to pivotal/JIRA issue
Is PM acceptance required?
What was done?
How to test?