-
Notifications
You must be signed in to change notification settings - Fork 4
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
3385 - Regional staff submission history #3490
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3490 +/- ##
===========================================
+ Coverage 90.64% 90.66% +0.01%
===========================================
Files 310 311 +1
Lines 8908 8924 +16
Branches 677 680 +3
===========================================
+ Hits 8075 8091 +16
- Misses 704 706 +2
+ Partials 129 127 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
@@ -14,7 +14,7 @@ All tests added into the `tdrs-frontend/cypress/e2e/` folder will be run against | |||
1. In a new terminal, set up test users by running | |||
```bash | |||
cd tdrs-backend | |||
docker-compose exec web python manage.py generate_cypress_users | |||
docker-compose exec web python manage.py loaddata cypress/users cypress/data_files |
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.
🥇
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.
LGTM!
response = self.post_data_file_file(api_client, regional_data_file_data) | ||
"""Test OFA Regional Staff cannot download datafiles.""" | ||
post_client = self.login_as(data_analyst) | ||
response = self.post_data_file_file(post_client, regional_data_file_data) |
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.
I know you didn't write this func, but it has a confusing/awkward name. Are you open to renaming it to something like post_datafile
?
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.
done!
}) | ||
|
||
cy.clearCookie('sessionid') | ||
cy.clearCookie('csrftoken') | ||
}) | ||
|
||
Cypress.Commands.add( | ||
'adminApiRequest', | ||
'adminConsoleFormRequest', |
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.
Love this name change to help us remember it is admin form fields in the future!
accountIsRegionalStaff(state) | ||
? selectUser(state) | ||
.regions?.map((region) => region.stts) | ||
.flat() |
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.
Can we alphabetize this list?
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.
Couple of nits. Otherwise this looks great, LGTM!
Co-authored-by: Eric Lipe <[email protected]>
Summary of Changes
Pull request closes #3385
How to Test
OFA Regional Staff
role. Add one or more regions.Deliverables
More details on how deliverables herein are assessed included here.
Deliverable 1: Accepted Features
Checklist of ACs:
lfrohlich
and/oradpennington
confirmed that ACs are met.Deliverable 2: Tested Code
CodeCov Report
comment in PR)CodeCov Report
comment in PR)Deliverable 3: Properly Styled Code
Deliverable 4: Accessible
iamjolly
andttran-hub
using Accessibility Insights reveal any errors introduced in this PR?Deliverable 5: Deployed
Deliverable 6: Documented
Deliverable 7: Secure
Deliverable 8: User Research
Research product(s) clearly articulate(s):