✨
Public Notes
  • Personal running notes using Forem
  • Setting up a local test env without docker
  • Setting gitbook to use "main" branch by default
  • User Moderation
    • User Moderation is really just scoring
  • Flaky Specs
    • GithubReadmeTag
    • JS Testing
    • Setup not completed
    • userData is sometimes not loaded
    • Tracking down spec failures
    • Flaky Specs #1
  • Travis CI Segfaults
  • Bookmarks
  • User Setup in development
  • Testing in Docker locally
    • Reapproach quay containers
    • Webdriver and chrome headless
      • Using Selenium standalone
      • Chrome in docker
    • Setting up a local test env with docker
    • Traditional CI container setup
  • Peer Review
  • Rails runaway process in initialize!
    • Don't fix it
    • fix it?
  • Zeitwerk
  • Parallelize Cypress
  • Reading List
  • Sidekiq Memory Use
  • Buildkite configuration
  • Dumping heap
  • Tricking KnapsackPro
  • Debugging Ruby
  • Docker development revisited
  • gitpod development test
  • Embedding HTML in Markdown
Powered by GitBook
On this page

Was this helpful?

  1. Testing in Docker locally
  2. Webdriver and chrome headless

Using Selenium standalone

Trying to replicate the code from the spike branch into the current branch

The first pass (using one of molly's old branches) had docker-compose setting up the selenium standalone container and serving on port 4444

This seemed to encounter a few (small) hiccups with webmock blocking the DELETE /session call (which was allowed for vcr, but cleanup maybe happening after the vcr block closes and only webmock is live).

My first attempt with the forem quay.io containers was to install chromium directly in the container and attempt to run that (webdriver gem probably contains all the code I need for this - and this mirrors how we run the tests locally/native/outside container). I hit snag one when I found the sandboxing was requiring a kernel capacity (user namespaces) that appears to be disabled (not sure if that's a debian issue, a chromium default, or a fedora container on debian host issue - this didn't happen in the spike where I built on a debian/ruby container).

PreviousWebdriver and chrome headlessNextChrome in docker

Last updated 4 years ago

Was this helpful?