Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 081b70f

Browse files
committed
Fix JsonWire protocol detection in test skipping
1 parent 648f6ed commit 081b70f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/functional/WebDriverTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public static function skipForW3cProtocol($message = 'Not supported by W3C speci
126126
public static function skipForJsonWireProtocol($message = 'Not supported by JsonWire protocol')
127127
{
128128
if (getenv('GECKODRIVER') !== '1'
129-
&& (getenv('CHROMEDRIVER') !== '1' || getenv('DISABLE_W3C_PROTOCOL') === '1')) {
129+
&& (getenv('BROWSER_NAME') !== 'chrome' || getenv('DISABLE_W3C_PROTOCOL') === '1')) {
130130
static::markTestSkipped($message);
131131
}
132132
}

0 commit comments

Comments
 (0)