Run the e2e cypress test for frontend->com_users->remind
no errors
can send a reminder email for a test user in a menu item
TypeError
Cannot read properties of undefined (reading 'body')
[tests/System/integration/site/components/com_users/Remind.cy.js:19:28](https://j5.test/__/#)
17 |
18 | cy.wrap(mails).should('have.lengthOf', 1);
> 19 | cy.wrap(mails[0].body).should('have.string', 'A username reminder has been requested');
| ^
20 | cy.wrap(mails[0].body).should('have.string', '/test-reminder');
21 | cy.wrap(mails[0].sender).should('equal', Cypress.env('email'));
22 | cy.wrap(mails[0].receivers).should('have.property', 'test@example.com');
can send a reminder email for a test user without a menu item
TypeError
Cannot read properties of undefined (reading 'body')
[tests/System/integration/site/components/com_users/Remind.cy.js:38:28](https://j5.test/__/#)
36 |
37 | cy.wrap(mails).should('have.lengthOf', 1);
> 38 | cy.wrap(mails[0].body).should('have.string', 'A username reminder has been requested');
| ^
39 | cy.wrap(mails[0].body).should('have.string', '/component/users/login');
40 | cy.wrap(mails[0].sender).should('equal', Cypress.env('email'));
41 | cy.wrap(mails[0].receivers).should('have.property', 'test@example.com');
php 8.1.3
joomla 5.1branch
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-03-03 07:11:15 |
Closed_By | ⇒ | alikon |
No - not resolved
Status | Closed | ⇒ | New |
Closed_Date | 2024-03-03 07:11:15 | ⇒ | |
Closed_By | alikon | ⇒ |
i'm unable to reproduce nor drone
Labels |
Added:
bug
|
Labels |
Added:
Unit/System Tests
|
The problem was that the tests require
public $mailer = 'smtp';
public $smtphost = 'localhost';
public $smtpport = 1025;
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-05-20 11:22:23 |
Closed_By | ⇒ | brianteeman |
Closing this issue now, has been resolved elsewhere
but feel free to reopen if needed.