User tests: Successful: Unsuccessful:
This pull adds the base for testing Weblinks component with an Firefox automated browser via Selenium and Codeception Framework.
See it in action in the following video: https://www.youtube.com/watch?v=gpsZVZCsawg
This pull will launch the tests in Travis, however if you want to run the tests in your local machine follow this instructions:
rename the file tests/acceptance.suite.dist.yml
to tests/acceptance.suite.yml
. Afterwards, please edit the file according to your system needs.
To run the tests execute the following commands (for the moment only working in Linux and MacOS, for more information see: https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception):
$ composer update
$ vendor/bin/robo
$ vendor/bin/robo test:prepare-acceptance
$ vendor/bin/robo test:acceptance
If you have a Windows machine you can check the RoboFile.php file and adapt the commands to your Operating System.
The results of the test should be available once Travis-ci run them at:
https://travis-ci.org/joomla-extensions/weblinks/builds/63059014
I'll update this code in a new pull. Closing,
@javigomez can we remove the systemtests
branch or do you need it?
Tests passed:
See complete log at: https://travis-ci.org/joomla-extensions/weblinks/builds/63059014