Skip to content

Commit

Permalink
Merge pull request #150 from albeorte96/feature/Update-upload-media-step
Browse files Browse the repository at this point in the history
Upload media independent of language
  • Loading branch information
omarlopesino authored Nov 7, 2023
2 parents 78fe8d2 + acc1b79 commit cb2c6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Behat/Context/MediaContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function iUploadMediaWithNameToField($media_title, $field, $widget = 'med
if ($widget == 'media_library') {
$this->uiContext->iClickOnTheElementWithXpath("//input[contains(@id, 'edit-" . $field . "-open-button')]");
$this->waitingContext->iWaitForAjaxToFinish(30);
$xpath = "//*[@id='drupal-modal']//label[text()='Select " . $media_title . "']/following-sibling::input";
$xpath = "//div[contains(@class, 'views-field-media-library-select-form')]//div[contains(@class, 'form-type--checkbox')]/label[contains(text(),'". $media_title ."')]/following-sibling::input";
$this->iSelectMedia($widget, $xpath);
}
}
Expand Down

0 comments on commit cb2c6d9

Please sign in to comment.