Skip to content

Commit b19596a

Browse files
committed
unify the webdriver path on local and CI run context
1 parent 5fdba74 commit b19596a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Dockerfile.selenium

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ USER root
55
#RUN apt-get update ; apt-get install -yq git curl libpq-dev libffi-dev
66
RUN apt-get update ; apt-get install -yq python3 python3-venv
77
RUN ln -s /usr/bin/python3 /usr/local/bin/python
8+
RUN ln -s /usr/bin/chromedriver /usr/local/bin/chromedriver
89
RUN useradd -m -s /bin/bash DEV
910
USER DEV
1011
ADD . /code
@@ -14,4 +15,3 @@ RUN . /tmp/venv/bin/activate
1415
ENV PATH="/tmp/venv/bin:${PATH}"
1516
RUN pip3 install --upgrade pip
1617
RUN pip3 install selenium pytest debugpy jsonschema python-dateutil
17-

apps/integration_tests/selenium_generic.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,7 @@ def setup_method(self, method):
7070
opt.add_argument("--window-size=1920,1080")
7171
opt.add_argument("--headless")
7272

73-
# Define the chrome driver path
74-
ser = Service('/usr/bin/chromedriver')
75-
76-
# Initiate the Chromedriver by passing options as argument
73+
ser = Service('/usr/local/bin/chromedriver')
7774
self.driver = webdriver.Chrome(service=ser, options=opt)
7875

7976
# self.driver = webdriver.Remote(

0 commit comments

Comments
 (0)