Date: Thu, 28 Mar 2024 11:19:06 +0000 (UTC) Message-ID: <1032160128.6221.1711624746335@ip-10-10-7-29.ec2.internal> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_6220_903179194.1711624746333" ------=_Part_6220_903179194.1711624746333 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
This could be used in Grouper at some point
David S= hafer 12:37 PM @mchyzer, you=E2=80=99d asked about our Selenium configuration-- We=E2=80= =99re using Selenium for acceptance testing with a Ruby on Rails project. T= o drive Selenium, we use Capybara (which works well for Rails, but you migh= t need an alternative). Here=E2=80=99s the docker-compose configuration we = use, which brings up a PostgreSQL database, the Selenium server (using the = Selenium standalone Firefox configuration), and the application container (= configured to run the test suite): (edited)=20 :+1::skin-tone-3: 1 12:40 docker-compose.yml=20 version: "3" =E2=80=8B networks: client: db: =E2=80=8B services: db: image: postgres:9.6 environment: POSTGRES_PASSWORD: "dockerci" networks: - db ports: - "5432:5432" =E2=80=8B firefox: image: selenium/standalone-firefox:3.141.59-20200409 environment: MOZ_HEADLESS: 1 START_XVFB: "false" networks: - client ports: - "4444:4444" - "5900:5900" volumes: - "/dev/shm:/dev/shm" =E2=80=8B test: image: siteadmin command: >- bash -c "rails db:setup && bundle exec rspec \ --format d \ --force-color \ --profile" depends_on: - db - firefox environment: DB_CONNINFO: >- { "dbname": "fmdev", "engine": "postgres", "host": "db", "password": "dockerci", "port": 5432, "username": "postgres" } RAILS_LOG_TO_STDOUT: "true" SELENIUM_REMOTE_URL: "http://firefox:4444/wd/hub" # Note: If below is set to "app" (or any other entry in the HSTS prel= oad # list), then Firefox will force HTTPS # (https://stackoverflow.com/questions/53961887/selenium-firefox-driv= er-forces-https) CAPYBARA_APP_HOST: "test" CAPYBARA_SERVER_HOST: "0.0.0.0" networks: - client - db ports: - "3000:3000"