Skip to content

Commit caab498

Browse files
committed
clean up and test /tmp
1 parent 65ad2c1 commit caab498

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

docker-compose.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ services:
4646
selenium:
4747
image: selenium/standalone-chrome
4848
# image: selenium/standalone-chrome:4.10.0
49-
environment:
50-
# - SE_OTEL_SERVICE_NAME="selenium-standalone"
51-
# - SE_ENABLE_TRACING=false
49+
# environment:
50+
# - SE_OTEL_SERVICE_NAME="selenium-standalone"
51+
# - SE_ENABLE_TRACING=false
5252
ports:
5353
- 4444:4444
5454
- 7900:7900
@@ -59,11 +59,13 @@ services:
5959
- selenium.test
6060
shm_size: 2g
6161
volumes:
62-
- downloads:/home/seluser/Downloads
62+
# - downloads:/home/seluser/Downloads
63+
- downloads:/tmp
6364

6465
volumes:
6566
downloads:
6667

6768
#https://github.com/SeleniumHQ/docker-selenium/issues/2423
6869
#https://github.com/SeleniumHQ/docker-selenium?tab=readme-ov-file#standalone
6970
#https://www.selenium.dev/blog/2023/headless-is-going-away/
71+
#https://stackoverflow.com/questions/60687310/test-in-docker-selenium-can-download-file-when-running-locally-but-not-on-jenkin

spec/features/export_geofile_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
# find('#downloads-button').click
1313
# end
1414

15-
it_behaves_like 'export geofile', 'berkeley-s7038h-shapefile.zip', 'Export Shapefile'
16-
it_behaves_like 'export geofile', 'berkeley-s7038h-kmz.kmz', 'Export KMZ'
17-
it_behaves_like 'export geofile', 'berkeley-s7038h-geojson.json', 'Export GeoJSON'
15+
it_behaves_like 'export geofile to local', 'berkeley-s7038h-shapefile.zip', 'Export Shapefile'
16+
it_behaves_like 'export geofile to local', 'berkeley-s7038h-kmz.kmz', 'Export KMZ'
17+
it_behaves_like 'export geofile to local', 'berkeley-s7038h-geojson.json', 'Export GeoJSON'
1818
# after do
1919
# # FileUtils.rm_f(zip_file_path)
2020
# FileUtils.rm_f(shapefile_zip_file_path)

spec/rails_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
# ]
3030
chrome_prefs = {
3131
'download.prompt_for_download' => false,
32-
'download.default_directory' => '/home/seluser/Downloads',
32+
# 'download.default_directory' => '/home/seluser/Downloads',
33+
'download.default_directory' => '/tmp',
3334
'download.directory_upgrade' => true
3435
}
3536

0 commit comments

Comments
 (0)