Issue #3350973 by Spokje, acbramley: [random failure] Curl error thrown for http in JSWebAssertTest

(cherry picked from commit 3eb1472ba0)
merge-requests/4220/head
catch 2023-06-19 21:51:21 +01:00
parent b7af923ed8
commit 341aa5b16e
1 changed files with 3 additions and 3 deletions

View File

@ -116,10 +116,10 @@ class JSWebAssertTest extends WebDriverTestBase {
$this->assertEquals(TRUE, $result->isVisible());
$this->drupalGet('js_webassert_test_page');
$result = $assert_session->waitForElementVisible('named', ['id', 'test_text']);
$this->assertSame('test_text', $result->getAttribute('id'));
// Ensure that the javascript has replaced the element 1100 times.
$assert_session->pageTextContains('New Text!! 1100');
$assert_session->waitForText('New Text!! 1100');
$result = $page->find('named', ['id', 'test_text']);
$this->assertSame('test_text', $result->getAttribute('id'));
}
}