User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Category | ⇒ | JavaScript Administration com_media NPM Change |
Status | New | ⇒ | Pending |
Labels |
Added:
NPM Resource Changed
?
|
Category | JavaScript Administration com_media NPM Change | ⇒ | JavaScript Administration com_media NPM Change Unit Tests |
Labels |
Added:
?
|
@dgrammatiko Now the system tests fail at a later step:
There was 1 error:
---------
1) MediaListCest: Test that it is possible to delete multiple files.
Test tests/Codeception/acceptance/administrator/components/com_media/MediaListCest.php:deleteMultipleFiles
[Facebook\WebDriver\Exception\TimeoutException]
Scenario Steps:
38. $I->executeJS("window.sessionStorage.removeItem("j...") at tests/Codeception/acceptance/administrator/components/com_media/MediaListCest.php:95
37. // Deleted /tests/www/mysql/images/test-dir
36. $I->getConfig("cmsPath") at tests/Codeception/_support/Step/Acceptance/Administrator/Media.php:377
35. $I->waitForElementNotVisible("//div[contains(@clas...") at tests/Codeception/acceptance/administrator/components/com_media/MediaListCest.php:537
34. $I->see("Item deleted.",{"id":"system-message-cont...}) at tests/Codeception/_support/Step/Acceptance/Administrator/Admin.php:47
33. $I->waitForText("Item deleted.",90,{"id":"system-m...}) at tests/Codeception/_support/Step/Acceptance/Administrator/Admin.php:46
#1 /tests/www/mysql/libraries/vendor/php-webdriver/webdriver/lib/WebDriverWait.php:71
#2 Codeception\Module\WebDriver->waitForElementNotVisible
#3 /tests/www/mysql/tests/Codeception/_support/_generated/AcceptanceTesterActions.php:5157
#4 /tests/www/mysql/tests/Codeception/acceptance/administrator/components/com_media/MediaListCest.php:537
#5 MediaListCest->deleteMultipleFiles
#6 /tests/www/mysql/libraries/vendor/bin/codecept:115
@richard67 I think shift is the preferred key here, leaving the ctrl for the copy operation. Also what Brian mentioned about the expected range selection makes more sense than this change
@richard67 I think shift is the preferred key here, leaving the ctrl for the copy operation. Also what Brian mentioned about the expected range selection makes more sense than this change
@dgrammatiko I don't understand. You mean there is something which makes more sense than the change in this PR here? System tests are passing now by the way.
@richard67 quoting Brian:
it should be select files individually with ctrl click then select beginning and end of selection with shift click
Basically selecting the further left item in a row and then shift click on the further right item on the row (or a following row) should select all the items in the range. Same behaviour for the reverse (left to right). Should be easy to achieve as the items are in an array so, finding the index of the selected and comparing it to the current should give a negative (the current clicked item is before the already selected), zero (it's the same item) or positive (the current clicked item is after the already selected), so a simple check of all the item in the between is what need...
About the ctrl and the copy: on Macs the copy operation is with the option key but I think on windows it's with the control, so it might be confusing that control is used for selecting but also for copying (or not, I haven't touched windows for years)
@dgrammatiko Does that mean this PR here is ok and ready for testing? Or shall we wait for something?
Rebase to 4.3?
Or even 5.0
Will redo this for 5.0
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-01-30 20:45:44 |
Closed_By | ⇒ | dgrammatiko |
@dgrammatiko It seems it needs to adapt the system tests to the change of this PR because they fail at a step described with "MediaListCest: Test that it is possible to select multiple":