/** * {@inheritdoc} */ public function skipMessage($testCase, $test) { if ('phantomjs' === getenv('WEBDRIVER') && null !== ($message = $this->skipPhantomJs($testCase, $test))) { return $message; } if ('Behat\\Mink\\Tests\\Driver\\Js\\WindowTest' === $testCase && 'testWindowMaximize' === $test && 'true' === getenv('TRAVIS')) { return 'Maximizing the window does not work when running the browser in Xvfb.'; } return parent::skipMessage($testCase, $test); }
/** * {@inheritdoc} */ public function skipMessage($testCase, $test) { if ('Behat\\Mink\\Tests\\Driver\\Form\\Html5Test' === $testCase && in_array($test, array('testHtml5FormInputAttribute', 'testHtml5FormButtonAttribute', 'testHtml5FormOutside', 'testHtml5FormRadioAttribute'))) { return 'Zombie.js doesn\'t HTML5 form attributes. See https://github.com/assaf/zombie/issues/635'; } if ('Behat\\Mink\\Tests\\Driver\\Js\\JavascriptEvaluationTest' === $testCase && 'testWait' === $test) { return 'Zombie automatically waits for events to fire, so the wait test is irrelevant'; } if ('Behat\\Mink\\Tests\\Driver\\Js\\ChangeEventTest' === $testCase && 'testIssue178' === $test) { return 'Zombie does not trigger the keyup event when writing a value in a text input to simulate keyboard'; } return parent::skipMessage($testCase, $test); }
/** * {@inheritdoc} */ public function skipMessage($testCase, $test) { if ('phantomjs' === getenv('WEBDRIVER') && null !== ($message = $this->skipPhantomJs($testCase, $test))) { return $message; } if ('phantomjs' !== getenv('WEBDRIVER') && 'Behat\\Mink\\Tests\\Driver\\Form\\Html5Test' === $testCase && 'testHtml5Types' === $test) { return 'WebDriver does not support setting value in color inputs. See https://code.google.com/p/selenium/issues/detail?id=7650'; } if ('Behat\\Mink\\Tests\\Driver\\Js\\WindowTest' === $testCase && 'testWindowMaximize' === $test && 'true' === getenv('TRAVIS')) { return 'Maximizing the window does not work when running the browser in Xvfb.'; } return parent::skipMessage($testCase, $test); }
/** * @param string $testCase * @param string $test * @return string */ public function skipMessage($testCase, $test) { echo "Running {$testCase} {$test}\n"; if ($testCase == "Behat\\Mink\\Tests\\Driver\\Basic\\BasicAuthTest" && $test == "testSetBasicAuth") { //TODO: Fix this error return "TODO: figure out why when sending a bad user is still giving the good login"; } if ($testCase == "Behat\\Mink\\Tests\\Driver\\Form\\Html5Test" && $test == "testHtml5FormRadioAttribute") { //TODO: Fix this. return "TODO: phantomjs is not giving the element in normal conditions, probably a bug in implementation of getValue"; } if ($testCase == "Behat\\Mink\\Tests\\Driver\\Js\\JavascriptEvaluationTest" && in_array($test, array("testExecuteScript", "testEvaluateJavascript"))) { return "Due to the nature of the phantomjs javascript implementation we can not use this standard tests"; } if ($testCase == "Behat\\Mink\\Tests\\Driver\\Js\\WindowTest") { //TODO: This suite is giving random phantomjs crashes, not good for the moment return "This suite is giving random phantomjs crashes, not good for the moment"; } return parent::skipMessage($testCase, $test); }