run the e2e cypress tests for administrator->com_privacy->consent
all tests pass
most of the tests for sorting ascending and descending fail
php 8.1.3
joomla51branch
I suspect that the code to work out what value should = what result is wrong and that there is nothign wrong with the component just the test
Labels |
Added:
No Code Attached Yet
|
it seems to be fixed now
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-03-03 07:10:04 |
Closed_By | ⇒ | alikon |
Closing this issue now, has been resolved elsewhere
but feel free to reopen if needed.
no not resolved
Status | Closed | ⇒ | New |
Closed_Date | 2024-03-03 07:10:04 | ⇒ | |
Closed_By | alikon | ⇒ |
i'm unable to reproduce nor drone
Labels |
Added:
bug
|
@alikon from my local 4.4-dev the same five tests failed today as your result above:
yay - woohoo - i am not going mad
@alikon it looks like the tests are not stateless ? I compared can list by user_id in descending order
with can list by user_id in ascending order
and found out, if I test both alternately first run fails always and starting with second run it is green ✅ The reason looks to me like the sort order is selected and the table content is captured before the table has changed. And the selection order is saved.
Both test cases have to be adopted. My solution is a little bit complicated, perhaps you have a simpler one? For example, for ascending replace the one select
-line with:
// first select a completely different option to always make a POST request for the next selection
cy.get('#list_fullordering').select('ID ascending');
// catch the next POST request
cy.intercept('POST', '**').as('anyPost');
// selecting ASC
cy.get('#list_fullordering').select('User ID ascending');
// wait for the POST request and the completion of the table
cy.wait('@anyPost');
// double check ASC is selected
cy.get('#list_fullordering').should('have.value', 'a.user_id ASC');
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-04-29 13:47:08 |
Closed_By | ⇒ | alikon |
something weird it's happening on cypress tests in general
that's from my local 4.4-dev
and still not the same result on drone ??