Skip to content

Commit

Permalink
ci: Fixed selenium volume permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
CSantosM committed Feb 17, 2025
1 parent bb492e5 commit c1ae7e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,12 @@ jobs:
run: |
mkdir -p /tmp/downloads
docker run --network=host \
-v /tmp/downloads:/Downloads \
-d -p 4444:4444 selenium/standalone-chrome:${{ env.CHROME_VERSION }}
-v /tmp/downloads:/tmp/downloads \
-d selenium/standalone-chrome:${{ env.CHROME_VERSION }}
# grant permissions to the /tmp/downloads folder
docker exec -u root \
$(docker ps -q --filter ancestor=selenium/standalone-chrome:${{ env.CHROME_VERSION }}) \
chmod 777 /tmp/downloads
- name: Prepare openvidu-call
run: |
Expand Down
2 changes: 1 addition & 1 deletion frontend/test/e2e/selenium.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ chromeOptions.addArguments(...(LAUNCH_MODE === 'CI' ? chromeArgumentsCI : chrome

if (LAUNCH_MODE === 'CI') {
chromeOptions.setUserPreferences({
'download.default_directory': '/Downloads',
'download.default_directory': '/tmp/downloads',
'download.prompt_for_download': false,
'download.directory_upgrade': true,
'safebrowsing.enabled': true
Expand Down

0 comments on commit c1ae7e3

Please sign in to comment.