Skip to content
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

panther: display extra installation steps and enable the screenshot on failure feature #887

Merged
4 commits merged into from Feb 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion symfony/panther/1.0/manifest.json
Expand Up @@ -6,7 +6,7 @@
"ENV PANTHER_CHROME_ARGUMENTS='--disable-dev-shm-usage'",
"RUN apk add --no-cache chromium chromium-chromedriver",
"",
"# Firefox and GeckoDriver",
"# Firefox and geckodriver",
"#ARG GECKODRIVER_VERSION=0.29.0",
"#RUN apk add --no-cache firefox",
"#RUN wget -q https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz; \\",
Expand Down
16 changes: 16 additions & 0 deletions symfony/panther/1.0/post-install.txt
@@ -0,0 +1,16 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> Finish Panther Installation </>
<bg=blue;fg=white> </>

* Install <fg=green>ChromeDriver</> or <fg=green>geckodriver</> with
the package manager of your Operating System.

Alternatively, use Browser Driver Installer:

<fg=green>composer require --dev dbrekelmans/bdi</>
<fg=green>vendor/bin/bdi detect drivers</>

This step is not necessary when using Docker.

* To use Panther with PHPUnit,
uncomment the snippet registering the Panther extension in <fg=green>phpunit.xml.dist</>
1 change: 1 addition & 0 deletions symfony/phpunit-bridge/4.1/.env.test
Expand Up @@ -3,3 +3,4 @@ KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
PANTHER_APP_ENV=panther
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots
7 changes: 7 additions & 0 deletions symfony/phpunit-bridge/5.1/phpunit.xml.dist
Expand Up @@ -30,4 +30,11 @@
<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
</listeners>

<!-- Run `composer require symfony/panther` before enabling this extension -->
<!--
<extensions>
<extension class="Symfony\Component\Panther\ServerExtension" />
</extensions>
-->
</phpunit>