First, in the Gherkin specifications and Cucumber code, update anything related to passwords to use digests instead; this includes both the step description, step definitions, and sample data. For example, you may make the following changes in the E2E tests for the Bad Client Requests scenario of the Create User feature:
--- a/spec/cucumber/features/users/create/main.feature
+++ b/spec/cucumber/features/users/create/main.feature
@@ -34,9 +34,9 @@ Feature: Create User
Examples:
- | missingFields | message |
- | email | The '.email' field is missing |
- | password | The '.password' field is missing |
+ | missingFields | message |
+ | email | The '.email' field is missing |
+ | digest | The '.digest' field is missing |
Try doing a global search and in the spec/cucumber directory, replacing the word password with digest.
To generate a dummy bcrypt digest, try Googling online bcrypt generator; there are many free online tools available.
To generate a dummy bcrypt digest, try Googling online bcrypt generator; there are many free online tools available.