Skip to content
Snippets Groups Projects

Draft: Proof of concept

Files
2
@@ -52,14 +52,14 @@ abstract class WebDriverTestBase extends BrowserTestBase {
}
catch (DriverException $e) {
if ($this->minkDefaultDriverClass === DrupalSelenium2Driver::class) {
$this->markTestSkipped("The test wasn't able to connect to your webdriver instance. For more information read core/tests/README.md.\n\nThe original message while starting Mink: {$e->getMessage()}");
$this->fail("The test wasn't able to connect to your webdriver instance. For more information read core/tests/README.md.\n\nThe original message while starting Mink: {$e->getMessage()}. Mink driver args are " . getenv('MINK_DRIVER_ARGS_WEBDRIVER'));
}
else {
throw $e;
}
}
catch (\Exception $e) {
$this->markTestSkipped('An unexpected error occurred while starting Mink: ' . $e->getMessage());
$this->fail('An unexpected error occurred while starting Mink: ' . $e->getMessage());
}
}
Loading