So I'm trying to run Codeception acceptance tests on a Linux server (with Selenium). I enter the command:
./codecept run acceptance
(with flags such as --env firefox-linux)
Codeception starts, pauses for a bit and then Firefox throws this error:
Invalid MIT-MAGIC-COOKIE-1 keyError: cannot open display: :2.0
I read that this was something to do with xauth stuff, so I have tried deleting and re-creating my Xauthority, EXPORT DISPLAY etc., but I still get the error.
A few things to note: RHEL 6.6, Firefox 27 (using an older version to work with Selenium)
Also I have a hunch that this might not actually be an 'X' problem, but something in the general config? Will have a look, but any suggestions are much appreciated.