User tests: Successful: Unsuccessful:
Checks the error log file after each test if there is an entry written to it.
Place somewhere in the CMS code the following code snippet ( I added it for testing to administrator/components/com_actionlogs/src/Model/ActionlogsModel.php into the delete function)
error_log('test');
Run the system test ( was running tests/System/integration/administrator/components/com_actionlogs/Actionlogs.cy.js).
The test was running through.
The test failed.
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | JavaScript Unit Tests Repository |
Labels |
Added:
Unit/System Tests
PR-5.3-dev
|
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-04-30 06:27:27 |
Closed_By | ⇒ | laoneo |
✅ Tested successfully on MacBook Air M3 Sequoia 15.4.1, with local PHP 8.4.6, Apache 2.4.62, MariaDB 11.6.2 and with Docker container based PHP 8.4.3, Apache 2.4.62, MySQL 8.3
With fresh cloned software and Joomla installation. As the PR is meanwhile merged, I started without PR
git checkout 78d2b757a2
git checkout 78d2b757a2
)
npm run cypress:run
(cd tests/System && docker compose down && docker compose up system-tests)
git checkout 5.3-dev
)
npm run cypress:run
with logFile: '/opt/homebrew/var/log/httpd/error_log'
configured in cypress.config.mjs
file(cd tests/System && docker compose down && docker compose up system-tests)
with logFile=/var/log/apache2/error.log
set in entrypoint.sh
scriptgit checkout 5.3-dev
), Testing HTTP local with logFile: '/opt/homebrew/var/log/httpd/error_log'
configured in cypress.config.mjs
fileerror_log('test');
into delete()
function into administrator/components/com_actionlogs/src/Model/ActionlogsModel.php
filenpx cypress run --spec tests/System/integration/administrator/components/com_actionlogs/Actionlogs.cy.js
one test failsnpm run cypress:run
one test fails(cd tests/System && docker compose down && docker compose up system-tests)
one test fails
Works in my local test environment. Do some other test cases.