* 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>
20 lines
769 B
Bash
Executable file
20 lines
769 B
Bash
Executable file
#!/bin/bash
|
|
printf "Doing a quick bundle check to make sure gems are all up to date.\n\n"
|
|
bundle check
|
|
|
|
if [ $? -eq 1 ]; then
|
|
echo "Unable to launch end to end tests. Ensure that all your gems are installed and up to date."
|
|
exit;
|
|
fi
|
|
|
|
printf "\n"
|
|
|
|
read -p "Do you need to set up your end to end (E2E) testing database? Answer yes if this is your first time running E2E tests on your local machine or you need to recreate your E2E test database. (y/n) " -n 1 -r
|
|
|
|
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
|
printf "\n\nSetting up the E2E database before running E2E tests...\n\n"
|
|
RAILS_ENV=test E2E=true bin/e2e-setup
|
|
fi
|
|
|
|
bundle exec rails assets:precompile;
|
|
CYPRESS_RAILS_CYPRESS_OPTS="--config-file cypress.dev.json" RAILS_ENV=test E2E=true bundle exec rake cypress:open
|