We have two test cases:

The login test will log in using the default demo credentials and verify that the demo project is being displayed.

/login-test.js

The demo test will just access the demo endpoint which displays a simple AngularJS dummy webapp which displays the demo contents.

/demo-test.js

Both tests use browser.params in order to access params we specify during protractor startup.

The main protractor configuration file is currently set up to run both tests using firefox.

/protractor.conf.js

Finally it is time to execute the protractor tests.

You can run the tests locally using a local selenium node which can be started using the webdriver-manager start command. Once the selenium node and your Gentics Mesh application is ready you can invoke the protractor tests:

Combine all the things

Of course you could now glue ALL the pieces together using <$INSERT_YOUR_TOOL_HERE> here. In our case we use docker-compose and a little bit of bash for this.

I create a GitHub gist which contains all sources.