Skip to content
Snippets Groups Projects

Issue #3238915: Refactor (if feasible) uses of the jQuery ready function to use VanillaJS

Closed Issue #3238915: Refactor (if feasible) uses of the jQuery ready function to use VanillaJS
Closed Harumi Jang requested to merge issue/drupal-3238915:3238915-refactor-if-feasible into 9.3.x
1 file
+ 6
2
Compare changes
  • Side-by-side
  • Inline
  • dcc44243
    Issue #3315753 by alexpott: Random fail in... · dcc44243
    Alex Pott authored
    Issue #3315753 by alexpott: Random fail in Drupal\Tests\media_library\FunctionalJavascript\WidgetUploadTest
@@ -141,8 +141,10 @@ public function testWidgetUpload() {
@@ -141,8 +141,10 @@ public function testWidgetUpload() {
$this->waitForText($png_image->filename);
$this->waitForText($png_image->filename);
// Remove the item.
// Remove the item.
 
$assert_session->elementTextContains('css', '.field--name-field-twin-media', $png_image->filename);
$assert_session->elementExists('css', '.field--name-field-twin-media')->pressButton('Remove');
$assert_session->elementExists('css', '.field--name-field-twin-media')->pressButton('Remove');
$this->waitForNoText($png_image->filename);
$this->waitForElementTextContains('#drupal-live-announce', $png_image->filename . ' has been removed');
 
$assert_session->elementTextNotContains('css', '.field--name-field-twin-media', $png_image->filename);
$this->openMediaLibraryForField('field_twin_media');
$this->openMediaLibraryForField('field_twin_media');
$this->switchToMediaType('Three');
$this->switchToMediaType('Three');
@@ -478,8 +480,10 @@ public function testWidgetUploadAdvancedUi() {
@@ -478,8 +480,10 @@ public function testWidgetUploadAdvancedUi() {
$this->waitForText($png_image->filename);
$this->waitForText($png_image->filename);
// Remove the item.
// Remove the item.
 
$assert_session->elementTextContains('css', '.field--name-field-twin-media', $png_image->filename);
$assert_session->elementExists('css', '.field--name-field-twin-media')->pressButton('Remove');
$assert_session->elementExists('css', '.field--name-field-twin-media')->pressButton('Remove');
$this->waitForNoText($png_image->filename);
$this->waitForElementTextContains('#drupal-live-announce', $png_image->filename . ' has been removed');
 
$assert_session->elementTextNotContains('css', '.field--name-field-twin-media', $png_image->filename);
$this->openMediaLibraryForField('field_twin_media');
$this->openMediaLibraryForField('field_twin_media');
$this->switchToMediaType('Three');
$this->switchToMediaType('Three');
Loading