Skip to content

Commit

Permalink
Update docs/Technical-Documentation/tech-memos/cypress-auth.md
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-jameson authored Nov 18, 2024
1 parent ec166d1 commit f2a0727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Technical-Documentation/tech-memos/cypress-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ By addressing authentication in a standard way and storing all session cookies a
Presently, many of the defined Javascript functions for a given Gherkin step are bespoke or single-use instead of abstracted and should be adapted. Additionally, it was found that sessions were lingering between Gherkin scenarios as we did not have generic `setup` and `teardown` implementations ahead of these. Sufficient utilization of abstraction within the scenarios which are now doing setup/teardown between scenarios and proper session management should result in a cleaner Cypress execution and make future additions simpler.

### Abstracted utility authentication functions
Our current cypress implementation has writes Gherkin scenarios `accounts.feature` which relies on definitions in `accounts.js`, `common-steps.js`, and finally `commands.js` which handle authentication in different ways for different scenarios (e.g., `login()`, `adminLogin()`, and `adminApiRequest()`)
Our current Cypress implementation has Gherkin scenarios `accounts.feature` which relies on definitions in `accounts.js`, `common-steps.js`, and finally `commands.js` which handle authentication in different ways for different scenarios (e.g., `login()`, `adminLogin()`, and `adminApiRequest()`)

These current functions do not handle the new django `crsf_middleware_token` which may be required for smooth operation. We will move to a standardized authentication function with wrappers which will make the Gherkin scenarios uniform in their approach to authentication and session management.

Expand Down

0 comments on commit f2a0727

Please sign in to comment.