Skip to content
Snippets Groups Projects
Verified Commit c1677724 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3317378 by Spokje, Wim Leers: [random test failure]...

Issue #3317378 by Spokje, Wim Leers: [random test failure] DrupalTestsmedia_libraryFunctionalJavascriptWidgetViewsTest::testWidgetViews random fail
parent 9daaabee
No related branches found
No related tags found
No related merge requests found
...@@ -428,6 +428,7 @@ protected function switchToMediaLibraryTable() { ...@@ -428,6 +428,7 @@ protected function switchToMediaLibraryTable() {
* Asserts that the grid display of the widget view is visible. * Asserts that the grid display of the widget view is visible.
*/ */
protected function assertMediaLibraryGrid() { protected function assertMediaLibraryGrid() {
$this->assertSession()->assertWaitOnAjaxRequest();
$this->assertSession() $this->assertSession()
->elementExists('css', '.js-media-library-view[data-view-display-id="widget"]'); ->elementExists('css', '.js-media-library-view[data-view-display-id="widget"]');
} }
......
...@@ -117,8 +117,9 @@ public function testWidgetViews() { ...@@ -117,8 +117,9 @@ public function testWidgetViews() {
// Assert the exposed filters can be applied. // Assert the exposed filters can be applied.
$page->fillField('Name', 'Dog'); $page->fillField('Name', 'Dog');
$page->pressButton('Apply filters'); $page->pressButton('Apply filters');
$this->waitForText('Dog'); $assert_session->assertWaitOnAjaxRequest();
$this->waitForNoText('Crocodile'); $assert_session->pageTextContains('Dog');
$assert_session->pageTextNotContains('Crocodile');
$assert_session->pageTextNotContains('Turtle'); $assert_session->pageTextNotContains('Turtle');
$page->checkField('Select Dog'); $page->checkField('Select Dog');
$assert_session->linkExists('Table'); $assert_session->linkExists('Table');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment