I dont know if this is a faulty test or a joomla bug.
npx cypress run --spec '.\tests\System\integration\install\Installation.cy.js'
npx cypress run --spec '.\tests\System\integration\site\components\com_users\Registration.cy.js'
npx cypress run --spec '.\tests\System\integration\site\components\com_users\Login.cy.js'
[24-Feb-2025 17:51:11 UTC] PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in D:\repos\j51\administrator\modules\mod_logged\tmpl\default.php on line 36
[24-Feb-2025 17:51:11 UTC] PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in D:\repos\j51\administrator\modules\mod_logged\tmpl\default.php on line 37
PS D:\repos\j51> php -v
PHP 8.3.3 (cli) (built: Feb 13 2024 23:17:12) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.3.3, Copyright (c) Zend Technologies
PS D:\repos\j51> git status
On branch 5.3-dev-origin
Your branch is up to date with 'origin/5.3-dev'.
Labels |
Added:
No Code Attached Yet
|
iirc the deletion on the session table follow different logic
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-03-02 19:02:55 |
Closed_By | ⇒ | alikon |
If I was to guess then the problem is that after these tests there is a db entry in the jos_session table with username=test but there is no user in the jos_users table
Perhaps the missing step is that when deleting the user in the cypress tests you also have to delete the associated entry in the session table