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

Latest to Staging #5577

Merged
merged 218 commits into from
Jun 23, 2020
Merged
Show file tree
Hide file tree
Changes from 204 commits
Commits
Show all changes
218 commits
Select commit Hold shift + click to select a range
7e7a24b
Refactor getting token into reusable method.
Jun 16, 2020
67a808e
Adding smoketest for qc-ing petition as petitions clerk.
Jun 16, 2020
1e37531
Adding statistics as petitions clerk to smoketests
Jun 16, 2020
43a0c9f
added user contact state validation
ericsorenson Jun 17, 2020
d3c767b
Merge branch 'develop' into dedicated-constants
ericsorenson Jun 17, 2020
4d7aa37
Update package-lock.json
ericsorenson Jun 17, 2020
0b181c4
fix invalid state
ericsorenson Jun 17, 2020
8713003
Adding petitioner smoketest workflow
Jun 17, 2020
c6c70c0
WIP creating having the test create a case before doing other things
mrinsin Jun 17, 2020
05bafd4
4609: reply to message modal
rachaelparris Jun 17, 2020
6ff4eec
[skip ci] Petitioner create case smoke test done. Refactored a bit.
Jun 17, 2020
e2e90c6
Merge branch 'more-smoketests' of https://github.com/flexion/ef-cms i…
Jun 17, 2020
c453e7f
Merge pull request #5528 from flexion/4609-reply-to-message-modal
rachaelparris Jun 17, 2020
6072ed7
[skip ci] added smoketests for petitonsclerk creates a case and saves…
mrinsin Jun 17, 2020
c266503
Merge branch 'more-smoketests' of https://github.com/flexion/ef-cms i…
mrinsin Jun 17, 2020
0dfb4c7
add US military locations
ericsorenson Jun 17, 2020
a3dc030
Merge branch 'develop' into dedicated-constants
ericsorenson Jun 17, 2020
040a6bc
run doc generator
ericsorenson Jun 17, 2020
5f61cf7
Case creation smoketest complete.
Jun 17, 2020
b00ecea
US_STATES_OTHER was missing in the applicationContextPublic
ericsorenson Jun 17, 2020
adadb74
added validation rules for signed judge related properties for order …
mrinsin Jun 17, 2020
95221e0
generated entity docs
mrinsin Jun 17, 2020
1b83438
Merge pull request #5524 from flexion/dedicated-constants
ericsorenson Jun 17, 2020
f6b0504
boost size limit on JSON payload
ericsorenson Jun 17, 2020
10df8e1
Merge branch 'develop' into dedicated-constants
ericsorenson Jun 17, 2020
ba439c0
Update package-lock.json
ericsorenson Jun 17, 2020
097dc82
added docket number to entity validation error message
mrinsin Jun 17, 2020
d27f6a3
websockets
codyseibert Jun 17, 2020
7b1be8e
Merge pull request #5533 from flexion/dedicated-constants
ericsorenson Jun 18, 2020
f0ca078
setting up the local websockets
codyseibert Jun 18, 2020
edb1d41
Merge branch 'develop' of https://github.com/flexion/ef-cms into more…
Jun 18, 2020
ed97b67
Make case status and case title requried on case message
matthopson Jun 18, 2020
d335f47
Migrate case message records for required field changes
matthopson Jun 18, 2020
46b74fe
Merge branch '4609-message-required' into 4609-submit-reply
rachaelparris Jun 18, 2020
c837cff
Merge pull request #5530 from flexion/more-smoketests
rachelschneiderman Jun 18, 2020
5a6cd76
remove notifications websockets
codyseibert Jun 18, 2020
638a96f
[skip ci] WIP - file document as petitioner smoketest
Jun 18, 2020
3901497
Validate case message entity in migration
matthopson Jun 18, 2020
3232002
fixing tests
Jun 18, 2020
45aae7c
Merge branch 'develop' into 5313-add-validation-rules
ericsorenson Jun 18, 2020
c0bc124
Update case message seed data and tests
matthopson Jun 18, 2020
35b6b3b
Merge branch 'develop' into opex_websockets
codyseibert Jun 18, 2020
94e25a3
Merge branch '4609-message-required' into 4609-submit-reply
rachaelparris Jun 18, 2020
06adab1
fix tests with new draft state requirements
ericsorenson Jun 18, 2020
a6fa597
build websockets
codyseibert Jun 18, 2020
48ce9fd
Merge pull request #5535 from flexion/4609-message-required
matthopson Jun 18, 2020
17dabca
Merge branch 'develop' into 4609-submit-reply
rachaelparris Jun 18, 2020
810c6a0
4609: add parentMessageId to case messages
rachaelparris Jun 18, 2020
9311aa5
test fixes; remove handler file; update case message description
rachaelparris Jun 18, 2020
d1d5d3a
remove unneeded case title from seed data
rachaelparris Jun 18, 2020
5760020
debugging signing, passing the torch [skip ci]
ericsorenson Jun 18, 2020
e54566c
Merge pull request #5536 from flexion/4609-submit-reply
rachaelparris Jun 18, 2020
ba6a0b2
4609: submit message reply
rachaelparris Jun 18, 2020
e8ac727
Merge pull request #5538 from flexion/4609-submit-reply-endpoint
rachaelparris Jun 18, 2020
8a681ce
fixing protocol
codyseibert Jun 18, 2020
be4a386
removing the handlers
codyseibert Jun 18, 2020
8ac1284
4609: remove message from inbox after replying
rachaelparris Jun 18, 2020
4527371
remove proxy
codyseibert Jun 18, 2020
dee4d96
test fixes
rachaelparris Jun 18, 2020
955b9d4
accidently deleted a file - adding back;
codyseibert Jun 18, 2020
cc9e1b8
fixed failing tests
mrinsin Jun 18, 2020
09b89ff
more test fixes
rachaelparris Jun 18, 2020
785c4b2
Merge pull request #5539 from flexion/4609-submit-reply-endpoint
rachaelparris Jun 18, 2020
8adf23e
WIP [skip ci] fixing failing tests, undid draft state related validat…
mrinsin Jun 18, 2020
7a67cd9
Fix bug in migration script
matthopson Jun 18, 2020
d665cac
fixing issue with env
codyseibert Jun 18, 2020
901391f
4609: forward message modal
rachaelparris Jun 18, 2020
fda8426
test description update
rachaelparris Jun 18, 2020
ac86dd2
Merge pull request #5541 from flexion/4609-migration-bug
matthopson Jun 18, 2020
9cc592f
jsdoc update
rachaelparris Jun 18, 2020
c7643ae
removing all serverless related code
codyseibert Jun 18, 2020
7f67d0b
Update case detail tabs
matthopson Jun 18, 2020
4ac4d38
Shared and client unit tests are now passing.
Jun 18, 2020
07e607e
Merge pull request #5542 from flexion/4609-forward-message-modal
rachaelparris Jun 18, 2020
9384f9b
Remove dupe
matthopson Jun 18, 2020
a9feb3f
web sockets remove wait
codyseibert Jun 18, 2020
91546f8
Remove console.logs, add in todo for refactoring
Jun 18, 2020
bb3bc2f
Fix pa11y
matthopson Jun 18, 2020
d57f8ff
Fixed test, removed unnecessary sign pdf logic
Jun 18, 2020
82deb85
validate early and often
kkoskelin Jun 18, 2020
721a150
Merge pull request #5543 from flexion/4609-6-case-detail
matthopson Jun 18, 2020
df41e39
Merge pull request #5540 from flexion/opex_websockets
codyseibert Jun 18, 2020
b87fd86
Skip smoketest that has been refactored to be more reliable:
Jun 18, 2020
3e0479a
Merge branch 'develop' of https://github.com/flexion/ef-cms into 5313…
mrinsin Jun 18, 2020
c9c6b8b
Merge pull request #5545 from flexion/smoketest-fix
rachelschneiderman Jun 18, 2020
e533d31
4609: message detail thread view
rachaelparris Jun 18, 2020
c07a6ca
upgrade eslint-plugin-jsdoc, imagemin-pngquant, pug
ericsorenson Jun 18, 2020
3bbab97
Merge pull request #5546 from flexion/4609-message-detail-thread
rachaelparris Jun 19, 2020
fd5a794
Merge pull request #5547 from flexion/dedicated-constants
ericsorenson Jun 19, 2020
0745657
upgrade eslint-plugin-spellcheck
ericsorenson Jun 19, 2020
db9b66a
Merge branch 'develop' into dedicated-constants
ericsorenson Jun 19, 2020
dcd5ac3
add US_STATES_OTHER to Contacts, rerun doc builder
ericsorenson Jun 19, 2020
a090e1d
Update package-lock.json
ericsorenson Jun 19, 2020
5f1db59
Merge pull request #5534 from flexion/5313-add-validation-rules
mrinsin Jun 19, 2020
e370fc5
Merge pull request #5548 from flexion/dedicated-constants
ericsorenson Jun 19, 2020
27ec7ad
Rename helper method. Skip incomplete tests.
Jun 19, 2020
b6a4100
Merge branch 'develop' of https://github.com/flexion/ef-cms into more…
Jun 19, 2020
323255f
[skip ci] Adding validation in document for judge - it's required whe…
Jun 18, 2020
73f69c1
Merge branch 'develop' into validation-restrictions-when
ericsorenson Jun 19, 2020
96b2ebc
Add back login steps
Jun 19, 2020
b624b17
certificateOfServiceDate can be null
ericsorenson Jun 19, 2020
8021565
Updated entity documentation. Fixed test.
Jun 19, 2020
4c9a33f
hoist another joiStrictTimestamp
ericsorenson Jun 19, 2020
7761a6d
Merge pull request #5550 from flexion/5313-add-validation-rules
rachelschneiderman Jun 19, 2020
7c78e92
Merge branch 'develop' into validation-restrictions-when
ericsorenson Jun 19, 2020
001e3de
Merge pull request #5544 from flexion/validation-restrictions-when
ericsorenson Jun 19, 2020
ce1ea07
Merge pull request #5549 from flexion/more-smoketests
rachelschneiderman Jun 19, 2020
4c42af9
Added unit test for new opinion judge validation requirement.
Jun 19, 2020
de1ec0b
fixing how the modules are exported
codyseibert Jun 19, 2020
671e697
Merge pull request #5551 from flexion/5313-add-validation-rules
rachelschneiderman Jun 19, 2020
90b39ab
4609: submit forward message
rachaelparris Jun 19, 2020
08db904
Merge pull request #5552 from flexion/opex_fixing_deploy_issue
codyseibert Jun 19, 2020
e6ef2ca
jsdoc update
rachaelparris Jun 19, 2020
5632f82
Merge pull request #5553 from flexion/4609-submit-forward
rachaelparris Jun 19, 2020
4024773
4609: complete case message endpoint
rachaelparris Jun 19, 2020
e468991
fix tests; address PR comment
rachaelparris Jun 19, 2020
63719e7
4609: submit complete message
rachaelparris Jun 19, 2020
af01deb
Merge pull request #5555 from flexion/4609-complete-modal
rachaelparris Jun 19, 2020
14443bb
Merge branch 'develop' into 4609-submit-complete
rachaelparris Jun 19, 2020
bd2ebaf
validate event codes
ericsorenson Jun 19, 2020
4197b6b
Merge branch 'develop' into validate-event-codes
ericsorenson Jun 19, 2020
e6708f2
generate entity docs
ericsorenson Jun 19, 2020
75cea5d
Merge pull request #5556 from flexion/4609-submit-complete
rachaelparris Jun 19, 2020
3817339
working on my completed endpoint
codyseibert Jun 19, 2020
2b41a3f
completed for individual
codyseibert Jun 19, 2020
5d47f1d
changing es query
codyseibert Jun 19, 2020
794aaf5
4609: completed section messages endpoint and table
rachaelparris Jun 19, 2020
1777d3d
Merge branch 'develop' into validate-event-codes
ericsorenson Jun 19, 2020
717c114
WIP adding otherPetitioners to a case
mrinsin Jun 19, 2020
d2d191e
add tests
rachaelparris Jun 19, 2020
a3785fc
refined testing of otherPetitioners for cases of all party types
mrinsin Jun 19, 2020
73f2870
jsdocs, small validation fix
rachaelparris Jun 19, 2020
45e01b3
format completedAt date string
rachaelparris Jun 19, 2020
3d3cd4d
updated Case.js tests
mrinsin Jun 19, 2020
be71962
test fixes
rachaelparris Jun 19, 2020
103c5c3
fix invalid seed data
ericsorenson Jun 19, 2020
603ad45
Adding expectations and screenshot in failing test step. Adding more …
Jun 19, 2020
2e2e705
added otherPetitioners to getCaseContacts
mrinsin Jun 19, 2020
bce335f
Merge pull request #5560 from flexion/more-smoketests
rachelschneiderman Jun 19, 2020
6141028
4609: completed message detail page updates
rachaelparris Jun 19, 2020
6df3cc5
fixing the trigger
codyseibert Jun 19, 2020
10d9e67
Merge pull request #5558 from flexion/4609-completed-messages
rachaelparris Jun 19, 2020
5f74346
Merge branch 'develop' into 4609-completed-message-detail-page
rachaelparris Jun 19, 2020
4ce1fc6
adding tests
codyseibert Jun 19, 2020
e266fe3
added missing event codes
ericsorenson Jun 19, 2020
6001bea
Merge branch 'develop' into validate-event-codes
ericsorenson Jun 19, 2020
abb95a5
Merge pull request #5562 from flexion/4609-completed-message-detail-page
rachaelparris Jun 19, 2020
7fc4667
Merge pull request #5563 from flexion/bug-fix-cognito-registration
codyseibert Jun 19, 2020
9fc8762
Merge pull request #5557 from flexion/validate-event-codes
ericsorenson Jun 19, 2020
9392846
Merge branch '5430-other-petitioners' of https://github.com/flexion/e…
Jun 19, 2020
33f3ca4
Responding to PR feedback
Jun 19, 2020
88ea01d
4609: messages on case detail
rachaelparris Jun 19, 2020
fa1d17c
Merge pull request #5561 from flexion/5430-other-petitioners
rachelschneiderman Jun 19, 2020
7c1710d
provide information on validation failures
kkoskelin Jun 20, 2020
5e3933a
more efficient use of functions used to identify/create constructors
kkoskelin Jun 20, 2020
373c3c8
safe default; print console warning if partyType is defined, but not …
kkoskelin Jun 21, 2020
28926cd
Merge pull request #5564 from flexion/4609-messages-on-case-detail
rachaelparris Jun 22, 2020
759e795
move Document.getDocumentTypes to constants
ericsorenson Jun 22, 2020
24b417b
Merge branch 'develop' into validate-event-codes
ericsorenson Jun 22, 2020
7575945
Merge branch 'validator-debug' of github.com:flexion/ef-cms into Cont…
kkoskelin Jun 22, 2020
7d0d7c3
fixing jsdoc warning
kkoskelin Jun 22, 2020
194bb00
Merge branch 'develop' of github.com:flexion/ef-cms into validator-debug
kkoskelin Jun 22, 2020
ed258fc
Merge pull request #5567 from flexion/validate-event-codes
ericsorenson Jun 22, 2020
0fa7f0a
4609: remove thread from all inboxes when replying or forwarding
rachaelparris Jun 22, 2020
15ad980
Merge pull request #5568 from flexion/4609-remove-thread-from-inbox
rachaelparris Jun 22, 2020
624c35b
5430: basic ui card
Jun 22, 2020
b51c035
styling, filler seed data, and computed value
Jun 22, 2020
c5cc4d2
new validator example
kkoskelin Jun 22, 2020
6dc6f2e
Merge branch 'validator-debug' of github.com:flexion/ef-cms into Cont…
kkoskelin Jun 22, 2020
f381e13
More eventCode enums
ericsorenson Jun 22, 2020
a9f0eb2
Merge branch 'develop' into validate-event-codes
ericsorenson Jun 22, 2020
bce2a58
Merge pull request #5569 from flexion/validate-event-codes
ericsorenson Jun 22, 2020
caa50c0
5430: added toggle action and sequence
Jun 22, 2020
635c719
even moar refactor
kkoskelin Jun 22, 2020
4d5944b
5430: added unit test and fixed jsdoc
Jun 22, 2020
5cff5c6
Navigate to message detail after action
matthopson Jun 22, 2020
0914f40
5430: added unit test coverage
Jun 22, 2020
6dd7d1a
Merge branch 'develop' of https://github.com/flexion/ef-cms into 5430…
Jun 22, 2020
6fe628d
4609: filter out messages older than 7 days from Sent and Completed b…
rachaelparris Jun 22, 2020
8d17ae8
refresh case messages when sending a new one from case detail
rachaelparris Jun 22, 2020
3cfaf69
Merge branch '4609-refresh-messages-case-detail' into 4609-messages-o…
rachaelparris Jun 22, 2020
d82403f
Upload document redirect to drafts rather than inProgress
matthopson Jun 22, 2020
572d7d5
Merge pull request #5565 from flexion/validator-debug
kkoskelin Jun 22, 2020
c8019b7
5430: pull constants into component via state instead of passing as prop
Jun 22, 2020
e6330da
5430: added component props and used icon prop for Button component
Jun 22, 2020
465c10b
Set message rather than navigate to message detail
matthopson Jun 22, 2020
53273fc
5430: added title and email address
Jun 22, 2020
651ea3b
Remove docket number from props
matthopson Jun 22, 2020
72bfc0d
updated tests
kkoskelin Jun 22, 2020
26bd8bf
Merge branch 'develop' of github.com:flexion/ef-cms into ContactFacto…
kkoskelin Jun 22, 2020
44bc4c1
Merge pull request #5572 from flexion/4609-13-action-redirect
matthopson Jun 22, 2020
816d56b
Merge pull request #5570 from flexion/5430-other-petitioners-ui
sutt0n Jun 22, 2020
fd3e977
Added e2e test, fixed seed data.
Jun 22, 2020
6007111
Merge branch 'develop' of https://github.com/flexion/ef-cms into 5430…
Jun 22, 2020
c3ca08f
added applicationContextPublic to sonarcloud exclusion list
Jun 22, 2020
e7382f8
Merge pull request #5566 from flexion/ContactFactory-Reimagined
kkoskelin Jun 22, 2020
63714f1
added coverage for eventCode
Jun 22, 2020
38fc473
removed unused entity code
Jun 22, 2020
6f158d7
excluded api app files
Jun 22, 2020
e2859db
Add message action modals to pa11y
matthopson Jun 22, 2020
fa306d0
starting a manual testing document to help us test before pr to court
codyseibert Jun 22, 2020
0a60bc8
Merge pull request #5573 from flexion/5430-dod
mrinsin Jun 22, 2020
6693734
Merge branch 'develop' of https://github.com/flexion/ef-cms into 5430…
Jun 22, 2020
bfef7bf
correctly calculate a date 7 days ago
rachaelparris Jun 22, 2020
e8cca59
Update swagger
matthopson Jun 22, 2020
64aa84b
Merge pull request #5575 from flexion/5430-dod-sonarcloud
sutt0n Jun 22, 2020
7ee4148
Merge pull request #5571 from flexion/4609-messages-older-than-7-days
rachaelparris Jun 22, 2020
d50a77b
remove code-smells for sonarcloud
kkoskelin Jun 22, 2020
aff0331
Update pa11y
matthopson Jun 22, 2020
e6c53fd
Add additional swagger docs
matthopson Jun 22, 2020
b96e4f0
Merge pull request #5576 from flexion/4609-dod-mh
matthopson Jun 22, 2020
c69a635
4609: integration tests for replying, forwarding, and completing mess…
rachaelparris Jun 22, 2020
492837b
forgot to add one test
rachaelparris Jun 22, 2020
af3a9a8
Merge pull request #5579 from flexion/4609-integration-tests
rachaelparris Jun 22, 2020
2d869fc
4609: npm update
rachaelparris Jun 22, 2020
55e7744
Merge pull request #5578 from flexion/sonar-contactfactory
kkoskelin Jun 23, 2020
7b4b26c
Merge pull request #5574 from flexion/manual-testing
codyseibert Jun 23, 2020
9d56607
Merge pull request #5580 from flexion/4609-integration-tests
rachaelparris Jun 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 0 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -323,18 +323,9 @@ jobs:
- run:
name: 'Deploy - Web Client - Terraform'
command: docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "EFCMS_DOMAIN=${EFCMS_DOMAIN}" -e "DYNAMSOFT_S3_ZIP_PATH=${DYNAMSOFT_S3_ZIP_PATH}" -e "DYNAMSOFT_URL=${DYNAMSOFT_URL}" -e "DYNAMSOFT_PRODUCT_KEYS=${DYNAMSOFT_PRODUCT_KEYS}" -e "IS_DYNAMSOFT_ENABLED=${IS_DYNAMSOFT_ENABLED}" --rm efcms /bin/sh -c "cd web-client/terraform/main && ../bin/deploy-app.sh $ENV"
- run:
name: 'Setup SNS Subscription'
command: docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "COGNITO_SUFFIX=${COGNITO_SUFFIX}" -e "AWS_ACCOUNT_ID=${AWS_ACCOUNT_ID}" -e "EFCMS_DOMAIN=${EFCMS_DOMAIN}" -e "SES_DMARC_EMAIL=${SES_DMARC_EMAIL}" -e "ES_INSTANCE_COUNT=${ES_INSTANCE_COUNT}" --rm efcms /bin/sh -c "cd web-api && ./setup-sns-subscriptions.sh ${ENV}"
- run:
name: Setup Elasticsearch Index Settings
command: docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "EFCMS_DOMAIN=${EFCMS_DOMAIN}" --rm efcms /bin/sh -c "./web-api/setup-elasticsearch-index.sh ${ENV}"
- run:
name: 'Deploy - Web API - Serverless - Notifications - us-east-1'
command: docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "EFCMS_DOMAIN=${EFCMS_DOMAIN}" -e "CIRCLE_HONEYBADGER_API_KEY=${CIRCLE_HONEYBADGER_API_KEY}" -e "IRS_SUPERUSER_EMAIL=${IRS_SUPERUSER_EMAIL}" -v $(pwd)/.cache:/home/app/.cache --rm efcms /bin/sh -c "./web-api/run-serverless-notifications.sh ${ENV} us-east-1"
- run:
name: 'Deploy - Web API - Serverless - Notifications - us-west-1'
command: docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "EFCMS_DOMAIN=${EFCMS_DOMAIN}" -e "CIRCLE_HONEYBADGER_API_KEY=${CIRCLE_HONEYBADGER_API_KEY}" -e "IRS_SUPERUSER_EMAIL=${IRS_SUPERUSER_EMAIL}" -v $(pwd)/.cache:/home/app/.cache --rm efcms /bin/sh -c "./web-api/run-serverless-notifications.sh ${ENV} us-west-1"
# - run:
# name: 'Deploy - Switch environment color'
# command: docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "EFCMS_DOMAIN=${EFCMS_DOMAIN}" --rm efcms /bin/sh -c "cd web-api && ./switch-environment-color.sh ${ENV}"
Expand All @@ -344,9 +335,6 @@ jobs:
- run:
name: 'Deploy - Public Web Client - S3'
command: docker run -e "ENV=${ENV}" -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "EFCMS_DOMAIN=${EFCMS_DOMAIN}" -e "COGNITO_SUFFIX=${COGNITO_SUFFIX}" -e "CIRCLE_SHA1=${CIRCLE_SHA1}" --rm efcms /bin/sh -c "./web-client/build-dist-public.sh $ENV && aws s3 sync dist-public s3://ui-public-${ENV}.${EFCMS_DOMAIN} --delete && aws s3 cp s3://ui-public-${ENV}.${EFCMS_DOMAIN}/index.html s3://ui-public-${ENV}.${EFCMS_DOMAIN}/index.html --metadata-directive REPLACE --cache-control max-age=0 && aws s3 sync dist-public s3://failover-ui-public-${ENV}.${EFCMS_DOMAIN} --delete --cache-control no-cache && aws s3 cp s3://failover-ui-public-${ENV}.${EFCMS_DOMAIN}/index.html s3://failover-ui-public-${ENV}.${EFCMS_DOMAIN}/index.html --metadata-directive REPLACE --cache-control max-age=0"
- run:
name: 'Deploy - Web WS - Route53'
command: docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "EFCMS_DOMAIN=${EFCMS_DOMAIN}" --rm efcms /bin/sh -c "cd web-api && ./setup-regional-route53-ws.sh ${ENV}"
- run:
name: 'Deploy - Web API - Global Tables'
command: docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" --rm efcms /bin/sh -c "cd web-api && node setup-global-tables.js efcms-${ENV} us-east-1,us-west-1"
Expand Down Expand Up @@ -412,9 +400,6 @@ jobs:
else
echo "skipping…"
fi
# - run:
# name: 'Deploy - Cognito Authorizer Check'
# command: docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "EFCMS_DOMAIN=${EFCMS_DOMAIN}" --rm efcms /bin/sh -c "find web-api/*.yml | ENV=${ENV} xargs node web-api/verify-authorizers.js"
- store_artifacts:
path: /home/app/cypress-smoketests/videos/

Expand Down
5 changes: 5 additions & 0 deletions cypress-smoketests/fixtures/example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "Using fixtures to represent data",
"email": "hello@cypress.io",
"body": "Fixtures are a great way to mock data for responses to routes"
}
Empty file.
Binary file added cypress-smoketests/fixtures/w3-dummy.pdf
Binary file not shown.
121 changes: 121 additions & 0 deletions cypress-smoketests/integration/case-creation.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
const {
closeScannerSetupDialog,
goToCreateCase,
goToReviewCase,
saveCaseForLater,
serveCaseToIrs,
} = require('../support/pages/create-paper-case');
const {
completeWizardStep1,
completeWizardStep2,
completeWizardStep3,
completeWizardStep4,
filingTypes,
goToDashboard,
goToStartCreatePetition,
goToWizardStep1,
goToWizardStep2,
goToWizardStep3,
goToWizardStep4,
goToWizardStep5,
hasIrsNotice,
submitPetition,
} = require('../support/pages/create-electronic-petition');
const {
fillInCreateCaseFromPaperForm,
} = require('../../cypress/support/pages/create-paper-petition');
const { getUserToken, login } = require('../support/pages/login');
const { goToMyDocumentQC } = require('../support/pages/document-qc');

let token = null;

describe('Petitioner', () => {
before(async () => {
const results = await getUserToken(
'petitioner1@example.com',
'Testing1234$',
);
token = results.AuthenticationResult.IdToken;
});

it('should be able to login', () => {
login(token);
});

it('should be able to create a case', () => {
goToStartCreatePetition();
goToWizardStep1();
completeWizardStep1();
goToWizardStep2();
completeWizardStep2(hasIrsNotice.NO, 'Innocent Spouse');
goToWizardStep3();
completeWizardStep3(filingTypes.INDIVIDUAL, 'Petitioner');
goToWizardStep4();
completeWizardStep4();
goToWizardStep5();
submitPetition();
goToDashboard();
});
});

describe('Private practitioner', () => {
before(async () => {
const results = await getUserToken(
'privatePractitioner1@example.com',
'Testing1234$',
);
token = results.AuthenticationResult.IdToken;
});

it('should be able to login', () => {
login(token);
});

it('should be able to create a case', () => {
goToStartCreatePetition();
completeWizardStep1();
goToWizardStep2();
completeWizardStep2(hasIrsNotice.YES, 'Notice of Deficiency');
goToWizardStep3();
completeWizardStep3(
filingTypes.PETITIONER_AND_SPOUSE,
'Private practitioner',
);
goToWizardStep4();
completeWizardStep4();
goToWizardStep5();
submitPetition();
goToDashboard();
});
});

describe('Petitions clerk', () => {
before(async () => {
const results = await getUserToken(
'petitionsclerk1@example.com',
'Testing1234$',
);
token = results.AuthenticationResult.IdToken;
});

it('should be able to login', () => {
login(token);
});

it('should be able to create a case and save for later', () => {
goToMyDocumentQC();
goToCreateCase();
closeScannerSetupDialog();
fillInCreateCaseFromPaperForm();
goToReviewCase();
saveCaseForLater();
});

it('should be able to create a case and serve to IRS', () => {
goToMyDocumentQC();
goToCreateCase();
fillInCreateCaseFromPaperForm();
goToReviewCase();
serveCaseToIrs();
});
});
103 changes: 103 additions & 0 deletions cypress-smoketests/integration/filings-and-qc.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
const {
addStatistic,
confirmServePetition,
goToMyDocumentQC,
goToPetitionNeedingQC,
goToPetitionNeedingQCByCaseTitle,
goToReviewPetition,
goToSectionDocumentQC,
savePetitionForLater,
selectCaseType,
selectTab,
servePetition,
} = require('../support/pages/document-qc');
const {
goToCaseDetail,
goToFileADocument,
goToFileYourDocument,
goToReviewDocument,
goToSelectDocumentType,
selectDocumentType,
submitDocument,
uploadDocumentFile,
} = require('../support/pages/petitioner-dashboard');
const { getUserToken, login } = require('../support/pages/login');

let token = null;

describe.skip('Petitions clerk', () => {
before(async () => {
const results = await getUserToken(
'petitionsclerk1@example.com',
'Testing1234$',
);
token = results.AuthenticationResult.IdToken;
});

it('should be able to login', () => {
login(token);
});

it('should be able to QC a petition and save for later', () => {
goToMyDocumentQC();
goToSectionDocumentQC();
goToPetitionNeedingQC();
goToReviewPetition();
savePetitionForLater();
});

it('should be able to QC a petition, add statistics, and serve to IRS', () => {
goToMyDocumentQC();
goToSectionDocumentQC();
goToPetitionNeedingQCByCaseTitle('Petitioner');
selectTab('irs-notice');
// radio button not selected - bug?
cy.get('#has-irs-verified-notice-yes').click();
selectCaseType('Deficiency');
addStatistic('2020', '1000', '10');
goToReviewPetition();
servePetition();
confirmServePetition();
});
});

describe.skip('Petitioner', () => {
before(async () => {
const results = await getUserToken(
'petitioner1@example.com',
'Testing1234$',
);
token = results.AuthenticationResult.IdToken;
});

it('should be able to login', () => {
login(token);
});

it('should be able to file a document', () => {
goToCaseDetail('Petitioner');
goToFileADocument();
goToSelectDocumentType();
selectDocumentType('Administrative Record');
goToFileYourDocument();
uploadDocumentFile();
goToReviewDocument();
submitDocument();
});
});

describe.skip('Private practitioner', () => {
before(async () => {
const results = await getUserToken(
'petitioner1@example.com',
'Testing1234$',
);
token = results.AuthenticationResult.IdToken;
});

it('should be able to login', () => {
login(token);
});

it('should be able to file a document', () => {});
});
46 changes: 46 additions & 0 deletions cypress-smoketests/support/commands.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable jsdoc/require-returns */
/* eslint-disable promise/no-nesting */
// ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
Expand Down Expand Up @@ -26,3 +28,47 @@

// https://github.com/cypress-io/cypress/issues/170
// Usage: cy.upload_file('building.jpg', '#building [type="file"]');
Cypress.Commands.add('upload_file', (fileName, selector, contentType) => {
cy.get(selector).then(subject => {
cy.fixture(fileName, 'base64').then(content => {
cy.window().then(win => {
const el = subject[0];
const blob = b64toBlob(content, contentType);
const testFile = new win.File([blob], fileName, {
type: contentType,
});
const dataTransfer = new DataTransfer();
dataTransfer.items.add(testFile);
el.files = dataTransfer.files;
if (subject.is(':visible')) {
return cy.wrap(subject).trigger('change', { force: true });
} else {
return cy.wrap(subject);
}
});
});
});
});

/**
* @param b64Data
* @param contentType
* @param sliceSize
*/
function b64toBlob(b64Data, contentType, sliceSize) {
contentType = contentType || '';
sliceSize = sliceSize || 512;
const byteCharacters = atob(b64Data);
const byteArrays = [];
for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {
const slice = byteCharacters.slice(offset, offset + sliceSize);
const byteNumbers = new Array(slice.length);
for (let i = 0; i < slice.length; i++) {
byteNumbers[i] = slice.charCodeAt(i);
}
byteArrays.push(new Uint8Array(byteNumbers));
}
const blob = new Blob(byteArrays, { type: contentType });
blob.lastModifiedDate = new Date();
return blob;
}
Loading