-
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Drop use of jQuery, as it leads to failed test in Joomla 4
Example this section
joomla-browser/src/JoomlaBrowser.php
Lines 693 to 702 in f997dce
| public function selectOptionInChosenByIdUsingJs($selectId, $option) | |
| { | |
| $option = trim($option); | |
| $this->executeJS("jQuery('#$selectId option').filter(function(){ return this.text.trim() === \"$option\" }).prop('selected', true);"); | |
| $this->executeJS("jQuery('#$selectId').trigger('liszt:updated').trigger('chosen:updated');"); | |
| $this->executeJS("jQuery('#$selectId').trigger('change');"); | |
| // Give time to Chosen to update | |
| $this->wait(1); | |
| } |
Related discussion joomla/joomla-cms#32766
Example of failed test :
joomla/joomla-cms#32707
https://ci.joomla.org/joomla/joomla-cms/40772/1/22
astridx, dneukirchen and laoneo
Metadata
Metadata
Assignees
Labels
No labels