status-desktop/test/ui-test/testSuites
Jonathan Rainville 2aa759adcf refactor(section-model): change model to be sorted to fix reorder
Part of #3364

To make the drag and drop reorder work correctly on channels, we needed to change the model again so that it was sorted in the model itself.
That is because the drag and drop gives us the value of the position it is dropped to as a single list, so dragging the second item of the second category would mean from position 5 to position to position 4, but what the backend wants is moving the item 2 to position 1.
Sorting the model enables us to get the category that is the parent of that position and call the service with the right positions and id.
It also enables us to reorder the channel in and out of the category.
See the module code to see how the calculation is done with an explanatory comment.
The model needed some changes to support that. Some of the function where changed from dataChange calls to resetModel calls, since we need to re-sort the model.
I tried using beginMove, but it would crash. Maybe there is a bug in NimQML or I used it badly, I'm not sure.
2023-04-19 12:26:15 -04:00
..
global_shared feature(@desktop/ui-tests): managing wallet accounts tests added 2023-04-13 19:51:10 +02:00
suite_communities refactor(section-model): change model to be sorted to fix reorder 2023-04-19 12:26:15 -04:00
suite_messaging test(suite_messaging): Disabled some code that is causing CI failures 2023-02-28 09:04:56 +01:00
suite_onboarding fix(wallet) fix Add Account Modal and wallet tests 2023-03-01 15:36:06 +04:00
suite_settings test(suite_settings/tst_mainSettingsSection): Fix test on backup seed phrase (#10204) (#10295) 2023-04-13 22:02:19 +02:00
suite_wallet tests: managing wallet accounts tests marked as `@mayfail` 2023-04-13 19:51:10 +02:00