https://github.com/yszk0123/selenium-docker-rails-example
https://github.com/yszk0123/selenium-docker-rails-example
docker example rails selenium
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yszk0123/selenium-docker-rails-example
- Owner: yszk0123
- License: mit
- Created: 2018-02-27T16:29:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-23T22:54:03.000Z (almost 7 years ago)
- Last Synced: 2025-02-28T20:17:09.366Z (12 months ago)
- Topics: docker, example, rails, selenium
- Language: Ruby
- Size: 775 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Development
1. `$ docker-compose up -d`
1. `$ open vnc://localhost:5900`
- cf. https://github.com/SeleniumHQ/docker-selenium#debugging
1. Enter password (default: `secret`)
1. Run RSpec `$ docker exec -it app sh -c 'LAUNCH_BROWSER=true bundle exec rspec'`

# Files
## Docker settings
- [Dockerfile](Dockerfile)
- [docker-compose.yml](docker-compose.yml)
## Sample pages and tests
- [app/views/sample/index.html.erb](app/views/sample/index.html.erb)
- [spec/features/sample_spec.rb](spec/features/sample_spec.rb)
## Capybara and Selenium settings
- [spec/rails_helper.rb](spec/rails_helper.rb)