No Code Attached Yet bug
avatar brianteeman
brianteeman
14 Dec 2023

Steps to reproduce the issue

run the e2e cypress tests for administrator->com_privacy->consent

Expected result

all tests pass

Actual result

most of the tests for sorting ascending and descending fail

System information (as much as possible)

php 8.1.3
joomla51branch

Additional comments

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

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 alikon
alikon - comment - 17 Dec 2023

something weird it's happening on cypress tests in general
that's from my local 4.4-dev

image

and still not the same result on drone ?‍?

avatar alikon
alikon - comment - 24 Feb 2024

it seems to be fixed now

avatar alikon alikon - change - 3 Mar 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-03-03 07:10:04
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.

avatar brianteeman
brianteeman - comment - 3 Mar 2024

no not resolved

avatar alikon alikon - change - 3 Mar 2024
Status Closed New
Closed_Date 2024-03-03 07:10:04
Closed_By alikon
avatar alikon alikon - reopen - 3 Mar 2024
avatar alikon
alikon - comment - 3 Mar 2024

i'm unable to reproduce nor drone

avatar Hackwar Hackwar - change - 26 Mar 2024
Labels Added: bug
avatar Hackwar Hackwar - labeled - 26 Mar 2024
avatar muhme
muhme - comment - 24 Apr 2024

@alikon from my local 4.4-dev the same five tests failed today as your result above:

  • can list by user_id in descending order
  • can list by consented in descending order
  • can list by consented in ascending order
  • can list by id in decending order
  • can list by id in ascending order
avatar brianteeman
brianteeman - comment - 24 Apr 2024

yay - woohoo - i am not going mad

avatar muhme
muhme - comment - 24 Apr 2024

@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');
avatar alikon alikon - change - 29 Apr 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-04-29 13:47:08
Closed_By alikon
avatar alikon alikon - close - 29 Apr 2024
avatar alikon
alikon - comment - 29 Apr 2024

please test #43400

Add a Comment

Login with GitHub to post a comment