diff --git a/composer.lock b/composer.lock index 97c6e64..c66ec41 100644 --- a/composer.lock +++ b/composer.lock @@ -3144,30 +3144,27 @@ }, { "name": "jcalderonzumba/mink-phantomjs-driver", - "version": "v0.3.1", + "version": "v0.3.3", "source": { "type": "git", "url": "https://github.com/jcalderonzumba/MinkPhantomJSDriver.git", - "reference": "782892dbea4af7d04024374672b3790b6c008def" + "reference": "008f43670e94acd39273d15add1e7348eb23848d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/jcalderonzumba/MinkPhantomJSDriver/zipball/782892dbea4af7d04024374672b3790b6c008def", - "reference": "782892dbea4af7d04024374672b3790b6c008def", + "url": "https://api.github.com/repos/jcalderonzumba/MinkPhantomJSDriver/zipball/008f43670e94acd39273d15add1e7348eb23848d", + "reference": "008f43670e94acd39273d15add1e7348eb23848d", "shasum": "" }, "require": { - "behat/mink": "~1.6", + "behat/mink": "~1.7", "jcalderonzumba/gastonjs": "~1.0", "php": ">=5.4", "twig/twig": "~1.20|~2.0" }, "require-dev": { - "phpunit/phpunit": "~4.6", - "silex/silex": "~1.2", - "symfony/css-selector": "~2.1", - "symfony/phpunit-bridge": "~2.7", - "symfony/process": "~2.3" + "mink/driver-testsuite": "dev-master", + "phpunit/phpunit": "~4.6" }, "type": "mink-driver", "extra": { @@ -3201,7 +3198,7 @@ "phantomjs", "testing" ], - "time": "2015-12-04 13:55:02" + "time": "2016-12-01 10:57:30" }, { "name": "mikey179/vfsStream", diff --git a/core/composer.json b/core/composer.json index 99b5cd0..2f651fd 100644 --- a/core/composer.json +++ b/core/composer.json @@ -39,7 +39,7 @@ "behat/mink": "1.7.x-dev", "behat/mink-goutte-driver": "~1.2", "jcalderonzumba/gastonjs": "~1.0.2", - "jcalderonzumba/mink-phantomjs-driver": "~0.3.1", + "jcalderonzumba/mink-phantomjs-driver": "~0.3.3", "mikey179/vfsStream": "~1.2", "phpunit/phpunit": "~4.8", "symfony/css-selector": "~2.8" diff --git a/core/modules/views_ui/tests/src/FunctionalJavascript/FilterCriteriaTest.php b/core/modules/views_ui/tests/src/FunctionalJavascript/FilterCriteriaTest.php index d67870d..2958633 100644 --- a/core/modules/views_ui/tests/src/FunctionalJavascript/FilterCriteriaTest.php +++ b/core/modules/views_ui/tests/src/FunctionalJavascript/FilterCriteriaTest.php @@ -53,6 +53,9 @@ public function testFilterCriteriaDialog() { // Add a new filter group. $create_new_filter_group = $page->findById('views-add-group-link'); $this->assertTrue($create_new_filter_group->isVisible(), 'Add group link found.'); + // Wait 500ms just for kicks - maybe the link is visible but the JS behavior + // for it has not been attached yet? + $this->getSession()->wait(500); $create_new_filter_group->click(); $assert_session->assertWaitOnAjaxRequest(); diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh index 2936723..53cac52 100755 --- a/core/scripts/run-tests.sh +++ b/core/scripts/run-tests.sh @@ -112,6 +112,14 @@ $test_list = simpletest_script_get_test_list(); +if (in_array('Drupal\Tests\views_ui\FunctionalJavascript\FilterCriteriaTest', $test_list)) { + // Do the test 50 times. + $test_list = array_fill(0, 50, 'Drupal\Tests\views_ui\FunctionalJavascript\FilterCriteriaTest'); +} +else { + $test_list = []; +} + // Try to allocate unlimited time to run the tests. drupal_set_time_limit(0); simpletest_script_reporter_init();