-
Notifications
You must be signed in to change notification settings - Fork 5
Implement the driver #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4c0681c
ad14001
6ede658
c48e7fc
d4ca830
40f600c
0130058
b9f6b6f
e2c230d
c5496ca
cc7683f
6196f75
83f0029
d30dac8
c62968e
75afba4
7574b2b
f153048
d6f8755
70826c5
d82433c
36ba41a
9d39c98
90a18c7
0fb929d
3044bf0
326aecb
580090e
92d5787
386c9ae
d1d21ce
01a8a75
18ef913
2130f2f
7a7e5c2
f2357b2
c36a0dd
302fe66
be08632
b53f9a7
d385eed
c5edb42
6619d75
9730f54
8855250
9a81918
5f52680
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,10 @@ | ||
| .editorconfig export-ignore | ||
| .gitattributes export-ignore | ||
| .github/ export-ignore | ||
| .gitignore export-ignore | ||
| phpstan*.neon export-ignore | ||
| phpunit.xml.dist export-ignore | ||
| tests/ export-ignore | ||
| /.editorconfig export-ignore | ||
| /.gitattributes export-ignore | ||
| /.github export-ignore | ||
| /.gitignore export-ignore | ||
| /phpstan*.neon export-ignore | ||
| /phpunit.xml.dist export-ignore | ||
| /tests export-ignore | ||
| /README.md export-ignore | ||
| /resources/get-syn.php export-ignore | ||
| /docker-compose.yaml export-ignore |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| version: "3" | ||
|
|
||
| services: | ||
| selenium: | ||
| image: ${SELENIUM_IMAGE:-selenium/standalone-chrome:4} | ||
| hostname: selenium | ||
| shm_size: 4g | ||
| environment: | ||
| VNC_NO_PASSWORD: 1 | ||
| SCREEN_WIDTH: 1024 | ||
| SCREEN_HEIGHT: 768 | ||
| volumes: | ||
| - /dev/shm:/dev/shm | ||
| - ./vendor/mink/driver-testsuite/web-fixtures:/fixtures | ||
| ports: | ||
| - "4444:4444" | ||
| # VNC Web Viewer port (new images) | ||
| - "7900:7900" | ||
| # VNC Server port (old "-debug" images) | ||
| - "5900:5900" | ||
| extra_hosts: | ||
| - host.docker.internal:host-gateway |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,9 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| colors="true" | ||
| bootstrap="vendor/autoload.php" | ||
| xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"> | ||
| xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" | ||
| bootstrap="tests/bootstrap.php" | ||
| beStrictAboutOutputDuringTests="true" | ||
| colors="true"> | ||
| <coverage> | ||
| <include> | ||
| <directory>./src</directory> | ||
|
|
@@ -18,15 +19,18 @@ | |
|
|
||
| <php> | ||
| <var name="driver_config_factory" value="Mink\WebdriverClassDriver\Tests\WebdriverClassicConfig::getInstance"/> | ||
| <!--server name="WEB_FIXTURES_HOST" value="http://test.mink.dev" /--> | ||
|
|
||
| <server name="WEB_FIXTURES_HOST" value="http://host.docker.internal:8002"/> | ||
| <!-- MacOS --> | ||
| <!--<server name="WEB_FIXTURES_HOST" value="http://docker.for.mac.localhost:8002"/>--> | ||
| <!--<server name="WEB_FIXTURES_BROWSER" value="firefox"/>--> | ||
|
|
||
| <!-- where driver will connect to --> | ||
| <server name="DRIVER_URL" value="http://localhost:4444/wd/hub"/> | ||
|
|
||
| <!-- where DocumentRoot of 'Test Machine' is mounted to on 'Driver Machine' (only if these are 2 different machines) --> | ||
| <!--server name="DRIVER_MACHINE_BASE_PATH" value="" /--> | ||
| <!--server name="TEST_MACHINE_BASE_PATH" value="" /--> | ||
| <server name="DRIVER_MACHINE_BASE_PATH" value="/fixtures/"/> | ||
|
|
||
| <env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/> | ||
|
Comment on lines
21
to
+33
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changing the defaults of this section would result in the developer's inability to run the test suite with a locally started Selenium server.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I replied to this point already, but I guess it got somehow lost: #1 (comment) That still stands, the recommended test setup is with docker, therefore the defaults are tailored for docker. In case developers want to customize this, they can easily create their own |
||
| </php> | ||
|
|
||
| <listeners> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * Simple script that updates syn.js by downloading it from NPM through Unpkg and attaches a file | ||
| * header comment. To switch to a different Syn version, just update $version variable appropriately. | ||
| * | ||
| * @codeCoverageIgnore | ||
| */ | ||
|
|
||
| $version = '0.15.0'; | ||
|
|
||
| if ('cli' !== PHP_SAPI && 'phpdbg' !== PHP_SAPI) { | ||
uuf6429 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| throw new RuntimeException('This script must be run from the command line.'); | ||
| } | ||
|
|
||
| file_put_contents( | ||
| __DIR__ . '/syn.js', | ||
| sprintf( | ||
| <<<'JS' | ||
| /** | ||
| * Syn - Standalone Synthetic Event Library | ||
| * | ||
| * @generated by get-syn.php on %s | ||
| * | ||
| * @version %s | ||
| * @copyright 2014 Bitovi | ||
| * @license https://github.com/bitovi/syn/blob/master/LICENSE.md | ||
| */ | ||
| %s | ||
| JS, | ||
| date('r'), | ||
| $version, | ||
| file_get_contents("https://www.unpkg.com/syn@$version/dist/global/syn.js") | ||
| ) | ||
| ); | ||
|
|
||
| echo "Done.\n"; | ||
Uh oh!
There was an error while loading. Please reload this page.