An open API service indexing awesome lists of open source software.

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

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'`

![Screenshot](docs/screenshot.png)

# 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)