No Code Attached Yet
avatar brianteeman
brianteeman
14 Dec 2023

Steps to reproduce the issue

run the e2e cypress test for frontend->com_users->login

Expected result

no errors

Actual result

can log in a test user without a menu item

CypressError
cy.click() can only be called on a single element. Your subject contained 2 elements. Pass { multiple: true } if you want to serially click each element.[Learn more](https://on.cypress.io/click)
[tests/System/integration/site/components/com_users/Login.cy.js:9:36](https://j5.test/__/#)
   7 |         cy.get('#password').type('test');
   8 |         cy.get('#remember').check();
>  9 |         cy.get('.controls > .btn').click();
     |                                    ^
  10 |         cy.visit('/index.php?option=com_users&view=login');
  11 | 
  12 |         cy.get('.com-users-logout').should('contain.text', 'Log out');

can log in a test user in a menu item


CypressError
cy.click() can only be called on a single element. Your subject contained 2 elements. Pass { multiple: true } if you want to serially click each element.[Learn more](https://on.cypress.io/click)
[tests/System/integration/site/components/com_users/Login.cy.js:25:36](https://j5.test/__/#)
  23 |         cy.get('#password').type('test');
  24 |         cy.get('#remember').check();
> 25 |         cy.get('.controls > .btn').click();
     |                                    ^
  26 |         cy.get('a:contains(Automated test login)').click();
  27 | 
  28 |         cy.get('.com-users-logout').should('contain.text', 'Log out');

System information (as much as possible)

php 8.1.3
joomla 5.1branch

Additional comments

avatar brianteeman brianteeman - open - 14 Dec 2023
avatar joomla-cms-bot joomla-cms-bot - change - 14 Dec 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Dec 2023
avatar brianteeman
brianteeman - comment - 14 Dec 2023

also see the mod_login tests which also fail and probabl;y for the same reason


CypressError
cy.click() can only be called on a single element. Your subject contained 2 elements. Pass { multiple: true } if you want to serially click each element.[Learn more](https://on.cypress.io/click)
[tests/System/integration/site/modules/mod_login/Default.cy.js:18:43](https://j5.test/__/#)
  16 |       cy.get('#modlgn-passwd-16').type('test');
  17 |       cy.get('input[name="remember"]').check();
> 18 |       cy.get('.mod-login__submit > .btn').click();
     |                                           ^
  19 | 
  20 |       cy.get('.mod-login-logout').should('contain.text', 'Hi automated test user');
  21 |     });
avatar alikon
alikon - comment - 14 Dec 2023

the strange thing is that on drone it is working https://ci.joomla.org/joomla/joomla-cms/72278/1/19

avatar brianteeman
brianteeman - comment - 14 Dec 2023

Same problem with the api com_users test can login after update a user


cy.click() can only be called on a single element. Your subject contained 2 elements. Pass { multiple: true } if you want to serially click each element.[Learn more](https://on.cypress.io/click)
[tests/System/integration/api/com_users/Users.cy.js:84:36](https://j5.test/__/#)
  82 |         cy.get('#password').type('test');
  83 |         cy.get('#remember').check();
> 84 |         cy.get('.controls > .btn').click();
     |                                    ^
  85 |         cy.visit('/index.php?option=com_users&view=login');
  86 |         cy.get('.com-users-logout').should('contain.text', 'Log out');
  87 |       });
avatar charvimehradu
charvimehradu - comment - 9 Jan 2024

The tests work fine for me as well.

avatar alikon alikon - change - 3 Mar 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-03-03 07:10:28
Closed_By alikon
avatar alikon alikon - close - 3 Mar 2024
avatar alikon
alikon - comment - 3 Mar 2024

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

Add a Comment

Login with GitHub to post a comment