From 1c0857c96c8a46eba5d99b66438c69eecf7beb21 Mon Sep 17 00:00:00 2001 From: catch <6915-catch@users.noreply.drupalcode.org> Date: Tue, 23 Jul 2024 08:25:22 +0900 Subject: [PATCH] Issue #3191559 by longwave, Spokje, smustgrave, jhodgdon: [random test failure] Random test fail in EntityReferenceWidgetTest --- .../src/FunctionalJavascript/EntityReferenceWidgetTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php b/core/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php index d432e0313797..7dbc6f886d89 100644 --- a/core/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php +++ b/core/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php @@ -236,7 +236,6 @@ public function testWidget(): void { $session->getPage()->fillField('Name', 'Dog'); $session->getPage()->pressButton('Apply filters'); $this->waitForText('Dog'); - $this->markTestSkipped("Skipped temporarily for random fails."); $this->waitForNoText('Bear'); $session->getPage()->fillField('Name', ''); $session->getPage()->pressButton('Apply filters'); @@ -283,8 +282,8 @@ public function testWidget(): void { // Assert the same has been added twice and remove the items again. $this->waitForElementsCount('css', '.field--name-field-twin-media [data-media-library-item-delta]', 2); - $assert_session->hiddenFieldValueEquals('field_twin_media[selection][0][target_id]', 4); - $assert_session->hiddenFieldValueEquals('field_twin_media[selection][1][target_id]', 4); + $assert_session->hiddenFieldValueEquals('field_twin_media[selection][0][target_id]', '4'); + $assert_session->hiddenFieldValueEquals('field_twin_media[selection][1][target_id]', '4'); $wrapper->pressButton('Remove'); $this->waitForText('Dog has been removed.'); $wrapper->pressButton('Remove'); -- GitLab