-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cypress] + com_actionlogs #43531
[cypress] + com_actionlogs #43531
Conversation
tests/System/integration/administrator/components/com_actionlogs/Actionlogs.cy.js
Outdated
Show resolved
Hide resolved
tests/System/integration/administrator/components/com_actionlogs/Actionlogs.cy.js
Outdated
Show resolved
Hide resolved
…gs/Actionlogs.cy.js Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>
…gs/Actionlogs.cy.js Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>
I was surprised that this test spec fails on my Docker-based test for all four branches with the following:
After some investigation:
It should be reproducible by
I would recommend to add enable 'Action Log - Joomla' in the beginning of the test spec, after check if the plugin is disabled. This would also cover the first case with the interrupted test. And of course extend the api test by enabling the first plugin in the list as last step. |
i'll check in the week-end hopefully |
should be more safe than before now |
✅ yes, it is 👍 successfully tested this additional test spec
|
Sorry, those were not the appropriate test specifications, one more test: ✅ this additional test specification
|
Should the plugin state not be restored after the tests were running through? After a test, the system should be left in the same stage as before the test. This is because we do not restore an initial database dump before every test runs. |
if you refer to this line https://github.com/joomla/joomla-cms/pull/43531/files#diff-8265cec42f94079a40c9f1675f71d2290441d6e25a8225c1b12ae1de7383d07eR3 this was added to cover the scenario: administrator/components/com_plugins/Plugins.cy.js disables and enables plugin 'Action Log - Joomla', if by fault this test is interrupted, the plugin may stay disabled and then there is no action log |
Fine by me then. Thanks! |
Summary of Changes
add a simple test for the view /administrator/index.php?option=com_actionlogs&view=actionlogs
Testing Instructions
npm run cypress:run -- --spec tests/System/integration/administrator/components/com_actionlogs/Actionlogs.cy.js
Actual result BEFORE applying this Pull Request
N/A
Expected result AFTER applying this Pull Request
a test for the view
Link to documentations
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