A ready-to-go headless Ubuntu box for running Polymer web-component-tester in Chrome and Firefox headlessly via Xvfb.
This also provides Flash support via Google Chrome, which ships with the Flash Pepper plugin.
- Node.js, bower, web-component-tester
- Firefox, Google Chrome
- Xvfb
vagrant up
to provision the box with the ansible playbookvagrant ssh
to shell into the boxcd /vagrant
to enter the directory syncd to your host machinegit clone https://github.com/PolymerElements/iron-ajax.git
to clone a Polymer web componentcd iron-ajax
git checkout 1.3.0
to check out an official release with passing testsbower install
xvfb-run wct
to run web-component-tester in Firefox & Chrome.
The Vagrant box has no GUI, but your Mac does! Connect to the Vagrant box from your Mac via VNC to observe and debug.
Install & run x11vnc on the vagrant box
vagrant ssh
sudo apt-get install x11vnc
x11vnc -display :0 &
Install and run Tiger VNC Viewer on your Mac
brew install Caskroom/cask/tigervnc-viewer
- start Tiger VNC viewer on
localhost:5901
Run the tests on the Vagrant box and watch from Tiger VNC Viewer:
DISPLAY=:0 xvfb-run wct
Deploy to AWS? Digital Ocean? OpenStack?