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

functional tests fail in headless env. #24

Open
ghost opened this issue Sep 3, 2014 · 1 comment
Open

functional tests fail in headless env. #24

ghost opened this issue Sep 3, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 3, 2014

I cloned the repo and ran grails test-app and everything worked fine. I tried the same in a headless env. and the functional tests failed, so I guess it's the fact that the env. is headless that's the cause of the failure.

I know some people have successfully run Geb tests in a headless env. using either a headless browser (e.g. PhantomJS) or by using XVFB to emulate a display. As a point of reference, it would be really helpful if these Geb tests worked in a headless env. as it's something I've struggled with it in the past (and present).

@ghost ghost changed the title fuctional tests fail in headless env. functional tests fail in headless env. Sep 3, 2014
rdmueller added a commit to rdmueller/grails-petclinic that referenced this issue Nov 27, 2014
make sure that you've installed http://http://phantomjs.org and start tests with 
   grails -Dgeb.env=phantomjs test-app
or - if you are using windows - with
   grails "-Dgeb.env=phantomjs" test-app

Some of the tests will fail. It seems that this is because the test tries to set the object id through changing an <input type=hidden /> field. Phantomjs seems to not like this and throws an exception.
@rdmueller
Copy link
Contributor

added phantomjs as webdriver - I am curious if this will run in your headless environment...

graemerocher added a commit that referenced this issue Jun 16, 2015
issue #24: added phantomjs as possible webdriver
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

No branches or pull requests

1 participant