Loading core/tests/Drupal/FunctionalJavascriptTests/Tests/JSWebAssertTest.php +3 −3 Original line number Diff line number Diff line Loading @@ -116,10 +116,10 @@ public function testJsWebAssert() { $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')); } } Loading
core/tests/Drupal/FunctionalJavascriptTests/Tests/JSWebAssertTest.php +3 −3 Original line number Diff line number Diff line Loading @@ -116,10 +116,10 @@ public function testJsWebAssert() { $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')); } }