Open odscjames opened 3 years ago
I tried adding the following to the Dockerfile:
# This needed for tests?? But not in Live!
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN apt install ./google-chrome-stable_current_amd64.deb
But it won't install ....
The following packages have unmet dependencies:
google-chrome-stable : ..................
@rhiaro Wrote these section of docs so I'm going to ask her in the first instance, tho I'm aware she may not have written the relevant code
I got it to work!
docker-compose -f docker-compose.yml -f docker-compose.override.dev.yml run standards-lab-worker bash
apt-get update
apt install -y chromium
standards_lab/manage.py test standards_lab
Get error "(unknown error: DevToolsActivePort file doesn't exist)"
Open standards_lab/ui/tests_browser.py, add the line:
chrome_options.add_argument("--no-sandbox")
Tests now run! Verified by changing an assert statement and see it fail.
Also Note: Tests won't run unless Redis running, so to run tests you have to keep a general "docker-compose up" going.
Q to ppl working on project before: Am I missing something, is this meant to work a different way?
The docs say:
I get an error: