Skip to content

Commit

Permalink
refactored voter registration code and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dvorakjt committed Sep 17, 2024
1 parent 02ef799 commit c11c098
Show file tree
Hide file tree
Showing 36 changed files with 989 additions and 775 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ NEXT_PUBLIC_TURNSTILE_SITE_KEY=cloudflare_turnstile_site_key_goes_here
TURNSTILE_SECRET_KEY=cloudflare_turnstile_secret_key_goes_here
NEXT_PUBLIC_SUPABASE_URL=supabase_api_url_goes_here
NEXT_PUBLIC_SUPABASE_ANON_KEY=supabase_anon_key_goes_here
SUPABASE_SERVICE_ROLE_KEY=supabase_service_role_key_goes_here
SUPABASE_SERVICE_ROLE_KEY=supabase_service_role_key_goes_here
VOTER_REGISTRATION_REPO_ENCRYPTION_KEY="result of npm run create-cryptokey"
2 changes: 1 addition & 1 deletion .github/workflows/run-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
NEXT_PUBLIC_SUPABASE_URL: http://127.0.0.1:54321
NEXT_PUBLIC_SUPABASE_ANON_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
SUPABASE_SERVICE_ROLE_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU
CRYPTO_KEY: DvViBWSQfwFGSetPOVbIWZrMXYJh4wTVSE/+1QI/VTI=
CRYPTO_KEY: 'DvViBWSQfwFGSetPOVbIWZrMXYJh4wTVSE/+1QI/VTI='
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/.pnp
.pnp.js
.yarn/install-state.gz
src/__tests__/supabase/migrations/


# testing
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ Replace the values of the variables inside .env with appropriate entries. Values
Values for Supabase variables will be displayed in the terminal after running either `npm run supabase-dev:start` or `npm run supabase-test:start`. These values will be
the same for both commands, and will be the same each time you run these commands.

=======
## Selenium Tests
=======
To create a CryptoKey to add as the value for the VOTER_REGISTRATION_REPO_ENCRYPTION_KEY, run `npm run create-cryptokey`.

## Selenium Tests

### Prerequisites
Expand Down
170 changes: 77 additions & 93 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c11c098

Please sign in to comment.