Skip to content
Snippets Groups Projects
Verified Commit ea70f7c6 authored by Varac's avatar Varac
Browse files

Fix chromedriver usgae in alpine docker image

See #52
parent c6291acb
No related branches found
No related tags found
No related merge requests found
# Run behave tests in bootstrap-ci docker image
docker run --rm -it docker.greenhost.net/openappstack/bootstrap/bootstrap-ci sh
apk --no-cache add git
git clone https://code.greenhost.net/openappstack/bootstrap.git
cd bootstrap/test/behave
behave -D keycloak.admin.url=https://auth.ci-20410.ci.openappstack.net/auth/admin/master/console/ \
-D keycloak.admin.password=…
......@@ -3,6 +3,7 @@ import behave_webdriver
import os
import re
import time
from behave_webdriver.driver import ChromeOptions
def save_screenshot(context, step):
......@@ -27,7 +28,12 @@ def before_all(context):
context.keycloak['admin']['username'] = userdata.get('keycloak.admin.username')
context.keycloak['admin']['password'] = userdata.get('keycloak.admin.password')
context.behave_driver = behave_webdriver.Chrome.headless()
chrome_options = ChromeOptions()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')
context.behave_driver = behave_webdriver.Chrome(
chrome_options=chrome_options)
def after_all(context):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment