Joomla Browser with Codeception Module Functionality
Update Composer.json file in your project, adding
"require" : "joomla-projects/joomla-browser": "dev-develop"
then do a
composer update
Finally Make changes in Acceptance.suite.yml add JoomlaBrowser as a Module
Your original acceptance.suite.yml
probably looks like:
modules:
enabled:
- WebDriver
- AcceptanceHelper
config:
WebDriver:
url: 'http://localhost/joomla-cms3/' # the url that points to the joomla cms
browser: 'firefox'
window_size: 1024x768
capabilities:
unexpectedAlertBehaviour: 'accept'
AcceptanceHelper:
...
You are asked to remove WebDriver module and change it by the JoomlaBrowser module:
config:
JoomlaBrowser:
url: 'http://localhost/joomla-cms/' # the url that points to the joomla installation at /tests/system/joomla-cms
browser: 'firefox'
window_size: 1024x768
capabilities:
unexpectedAlertBehaviour: 'accept'
username: 'admin'
password: 'admin'
database host: 'localhost' # place where the Application is Hosted #server Address
database user: 'root' # MySQL Server user ID, usually root
database password: '1234' # MySQL Server password, usually empty or root
database name: 'dbname' # DB Name, at the Server
database type: 'mysqli' # type in lowercase one of the options: MySQL\MySQLi\PDO
database prefix: 'jos_' # DB Prefix for tables
install sample data: 'Yes' # Do you want to Download the Sample Data Along with Joomla Installation, then keep it Yes
sample data: 'Default English (GB) Sample Data' # Default Sample Data
admin email: 'admin@mydomain.com' # email Id of the Admin
language: 'English (United Kingdom)' # Language in which you want the Application to be Installed
joomla folder: '/home/.../path to Joomla Folder' # Path to Joomla installation where we execute the tests
AcceptanceHelper:
...