-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - fixing ci for 1.3 - update php-cs-fixer - moved from custom script to bdi to download chrome and firefox - updated ci, lower static to lowest php and removed 8.3 from experimental - updated mink/driver-testsuite to v2 - create baseline for phpstan - "reset" now will try to close all the windows, except main - switchToIFrame now handles ID and Name - setValue value validation, as it triggers php error * trigger
- Loading branch information
1 parent
1e7d39c
commit 115a363
Showing
15 changed files
with
186 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Method OAndreyev\\\\Mink\\\\Driver\\\\WebDriver\\:\\:setValue\\(\\) has parameter \\$value with no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/WebDriver.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$timeout_in_second of method Facebook\\\\WebDriver\\\\Remote\\\\RemoteWebDriver\\:\\:wait\\(\\) expects int, float given\\.$#" | ||
count: 1 | ||
path: src/WebDriver.php | ||
|
||
- | ||
message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\Test\\:\\:getName\\(\\)\\.$#" | ||
count: 1 | ||
path: tests/ScreenshotListener.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
|
||
parameters: | ||
level: 6 | ||
paths: | ||
- src | ||
- tests | ||
ignoreErrors: | ||
- '#Call to an undefined method PHPUnit\\Framework\\Test::getName\(\)#' | ||
bootstrapFiles: | ||
- vendor/autoload.php | ||
- vendor-bin/phpunit/vendor/autoload.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<phpunit | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="vendor-bin/phpunit/vendor/phpunit/phpunit/phpunit.xsd" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" | ||
colors="true" | ||
bootstrap="vendor/autoload.php" | ||
> | ||
<coverage> | ||
<include> | ||
<directory>./src</directory> | ||
</include> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="Driver test suite"> | ||
<directory>tests</directory> | ||
<directory>vendor/mink/driver-testsuite/tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<listeners> | ||
<listener class="OAndreyev\Mink\Tests\Driver\ScreenshotListener"/> | ||
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/> | ||
</listeners> | ||
|
||
<php> | ||
<var name="driver_config_factory" value="OAndreyev\Mink\Tests\Driver\WebDriverConfig::getInstance" /> | ||
|
||
<!-- Docker for Mac, see https://docs.docker.com/docker-for-mac/networking/#there-is-no-docker0-bridge-on-macos#i-want-to-connect-from-a-container-to-a-service-on-the-host --> | ||
<!-- <server name="WEB_FIXTURES_HOST" value="http://host.docker.internal:8002"/>--> | ||
<!-- See default value in \Behat\Mink\Tests\Driver\AbstractConfig::getWebFixturesUrl --> | ||
<!-- <server name="WEB_FIXTURES_HOST" value="http://localhost:8002"/>--> | ||
|
||
<!-- <env name="BROWSER_NAME" value="chrome"/>--> | ||
<!-- https://peter.sh/experiments/chromium-command-line-switches/ --> | ||
<!-- <env name="DRIVER_OPTIONS" value='{"args":["headless"]}'/>--> | ||
|
||
<!-- <env name="BROWSER_NAME" value="firefox"/>--> | ||
<!-- https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities/firefoxOptions#binary--> | ||
<!-- <env name="DRIVER_OPTIONS" value='{"log": {"level":"trace"}, "args": ["-headless"], "binary": "/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin"}'/>--> | ||
<!-- <env name="DRIVER_OPTIONS" value='{"log": {"level":"trace"}, "binary": "/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin"}'/>--> | ||
<var name="driver_config_factory" value="OAndreyev\Mink\Tests\Driver\WebDriverConfig::getInstance"/> | ||
<!--Docker for Mac, see https://docs.docker.com/docker-for-mac/networking/#there-is-no-docker0-bridge-on-macos#i-want-to-connect-from-a-container-to-a-service-on-the-host --> | ||
<!--<server name="WEB_FIXTURES_HOST" value="http://host.docker.internal:8002"/>--> | ||
<!--See default value in \Behat\Mink\Tests\Driver\AbstractConfig::getWebFixturesUrl --> | ||
<!--<server name="WEB_FIXTURES_HOST" value="http://localhost:8002"/>--> | ||
|
||
<!-- where driver will connect to --> | ||
<server name="DRIVER_URL" value="http://localhost:4444" /> | ||
<!--<server name="DRIVER_URL" value="http://localhost:4444"/>--> | ||
<!-- Docker for Mac, see https://docs.docker.com/docker-for-mac/networking/#there-is-no-docker0-bridge-on-macos#i-want-to-connect-from-a-container-to-a-service-on-the-host --> | ||
<!-- <server name="DRIVER_URL" value="http://host.docker.internal:4444/wd/hub" />--> | ||
<!--<server name="DRIVER_URL" value="http://host.docker.internal:4444/wd/hub" />--> | ||
|
||
<!-- CHROME --> | ||
<!--<env name="BROWSER_NAME" value="chrome"/>--> | ||
<!--https://peter.sh/experiments/chromium-command-line-switches/ --> | ||
<!--<env name="DRIVER_OPTIONS" value='{"args":["headless"]}'/>--> | ||
|
||
<!-- FIREFOX --> | ||
<!--<env name="BROWSER_NAME" value="firefox"/>--> | ||
<!--https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities/firefoxOptions#binary--> | ||
<!-- <env name="DRIVER_OPTIONS" value='{"log": {"level":"trace"}, "args": ["-headless"]}'/>--> | ||
<!--<env name="DRIVER_OPTIONS" value='{"log": {"level":"trace"}, "binary": "/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin"}'/>--> | ||
</php> | ||
|
||
<filter> | ||
<whitelist> | ||
<directory>./src</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
Oops, something went wrong.