-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
2 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,13 +82,10 @@ $ bin/yarn install | |
``` | ||
|
||
#### Seeds | ||
Seeds can be loaded into the database using the command. Some environment variables need to be set for this to work. | ||
Seeds can be loaded into the database via a rake task. The user accounts password is set with the `DEV_PASSWORD` env var. | ||
|
||
``` | ||
$ export [email protected] | ||
$ export SETTINGS__SMOKE_TESTS__PASSWORD=correspondence | ||
$ export DEV_PASSWORD=correspondence | ||
$ bin/rake db:seed:dev | ||
$ DEV_PASSWORD=correspondence bin/rake db:seed:dev | ||
``` | ||
|
||
#### Running locally: | ||
|
@@ -278,24 +275,6 @@ Whenever any changes to the letter templates are required DO NOT EDIT THE DATABA | |
|
||
This is required whenever any new template is added; should someone have edited the versions in the database directly, those changes will be overwritten the next time the seeder is run. | ||
|
||
### Smoke Tests | ||
|
||
The smoke test runs through the process of signing into the service using a dedicated user account setup as Disclosure BMT team member. | ||
It checks that sign in was successful and then randomly views one case in the case list view. | ||
|
||
To run the smoke test, set the following environment variables: | ||
|
||
``` | ||
SETTINGS__SMOKE_TESTS__USERNAME # the email address to use for smoke tests | ||
SETTINGS__SMOKE_TESTS__PASSWORD # The password for the smoketest email account | ||
``` | ||
|
||
and then run | ||
|
||
``` | ||
bundle exec rails smoke | ||
``` | ||
|
||
### Site prism page manifest file | ||
|
||
The tests use the Site Prism gem to manage page objects which behave as an abstract description of the pages in the application; they're used in feature tests for finding elements, describing the URL path for a given page and for defining useful methods e.g. for completing particular form fields on the page in question. | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.