Skip to content
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

[5.1] com_users remind cypress tests #42515

Closed
brianteeman opened this issue Dec 14, 2023 · 4 comments
Closed

[5.1] com_users remind cypress tests #42515

brianteeman opened this issue Dec 14, 2023 · 4 comments

Comments

@brianteeman
Copy link
Contributor

Steps to reproduce the issue

Run the e2e cypress test for frontend->com_users->remind

Expected result

no errors

Actual result

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');

System information (as much as possible)

php 8.1.3
joomla 5.1branch

Additional comments

@alikon
Copy link
Contributor

alikon commented Mar 3, 2024

Closing this issue now, has been resolved elsewhere
but feel free to reopen if needed.

@alikon alikon closed this as completed Mar 3, 2024
@brianteeman
Copy link
Contributor Author

No - not resolved

@alikon
Copy link
Contributor

alikon commented Mar 3, 2024

i'm unable to reproduce nor drone

@brianteeman
Copy link
Contributor Author

The problem was that the tests require
public $mailer = 'smtp';
public $smtphost = 'localhost';
public $smtpport = 1025;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants