docbrown/bin/e2e-setup
Arit Amana f7bd75cf32
Cypress tests for /admin/config Authentication Section (#12539)
* write tests for invite-only mode and auth-providers

* text edits

* modify specs in light of new e2e database setup

* Still working things out

* Added the admin user name to the e2e fixture data.

* Added testid for config sections.

* Fixed up test to use cypress-testing-library APIs.

* Fixed unsetting invite only mode, still need to reset it at end of test.

* Small fix for local e2e development.

* Complete all tests; generalize updateAdminConfig cypress command

* correct spec

* Complete implementation

* Address code review comments

* address code review comments #2

Co-authored-by: Nick Taylor <nick@dev.to>
2021-02-03 15:31:55 -05:00

8 lines
236 B
Text
Executable file

if [ -z "$E2E" ]; then
echo "Setting up the end to end (E2E) test database did not run. You are not in an E2E test environment.";
exit 1;
fi
bundle exec rails db:drop;
bundle exec rails db:create;
bundle exec rails db:schema:load;