Skip to content

Drop use of jQuery, as it lead to failed test in Joomla 4Β #215

@Fedik

Description

@Fedik

Drop use of jQuery, as it leads to failed test in Joomla 4

Example this section

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions