Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added config to run selenium and capybara e2e tests in gitpod. #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kohheepeace
Copy link
Contributor

@kohheepeace kohheepeace commented Aug 27, 2021

Hi, @ghuntley

Issue

Currently, system tests by selenium cannot be run on gitpod.

This is also reported in forum https://community.gitpod.io/t/how-to-run-a-selenium-test-on-gitpod/638/6

PR

This PR added a config to run selenium and capybara system tests with :headless_chrome.

How to check this PR

Start this branch with gitpod and run the following command.

rails g scaffold Post title content
rails db:migrate
rails test:system

If you can run the system test, it is working correctly.

Refs

This code is from @thibaudgg's this repository and this PR .

I have removed some code from the above code, leaving only the minimum required settings for running system test, but I may have removed some necessary code. I am a linux newbie so I would appreciate if you could review it.

Also, the docker config file for this repository may refer to this gist.

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant