Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BB2-2665 Updated local selenium tests for new permissions screen #1139

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docker-compose/run_selenium_tests_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ display_usage() {
echo
echo "-h Print this Help."
echo "-d Run tests in selenium debug mode (vnc view web UI interaction at http://localhost:5900)."
echo "-p Use new permissions screen (defaults to old style screen)."
echo
}

Expand Down Expand Up @@ -73,6 +74,7 @@ set -e -u -o pipefail

export USE_MSLSX=true
export USE_DEBUG=false
export USE_NEW_PERM_SCREEN=false
export SERVICE_NAME="selenium-tests"
export TESTS_LIST="./apps/integration_tests/selenium_tests.py"
export DJANGO_SETTINGS_MODULE="hhs_oauth_server.settings.dev"
Expand All @@ -81,7 +83,7 @@ export BB2_SERVER_STD2FILE=""
set_slsx

# Parse command line option
while getopts "hd" option; do
while getopts "hdp" option; do
case $option in
h)
display_usage
Expand All @@ -90,6 +92,8 @@ while getopts "hd" option; do
export USE_DEBUG=true
export SERVICE_NAME="selenium-tests-debug"
shift;break;;
p)
export USE_NEW_PERM_SCREEN=true;;
\?)
display_usage
exit;;
Expand Down Expand Up @@ -213,6 +217,7 @@ echo "Selenium tests ..."
echo "MSLSX=" ${USE_MSLSX}
echo "DEBUG=" ${USE_DEBUG}
echo "SERVICE NAME=" ${SERVICE_NAME}
echo "USE_NEW_PERM_SCREEN=" ${USE_NEW_PERM_SCREEN}

docker-compose -f docker-compose.selenium.yml run ${SERVICE_NAME} bash -c "pytest ${TESTS_LIST}"

Expand Down
Loading