Skip to content

Commit 36eb8ee

Browse files
authored
Add amoifr/pickle-panther-bundle recipe (#2003)
* Add amoifr/pickle-panther-bundle/0.3/manifest.json * Add amoifr/pickle-panther-bundle/0.3/config/packages/test/pickle_panther.yaml * Fix recipe: complete config reference, trailing newline
1 parent 9f0f8e0 commit 36eb8ee

2 files changed

Lines changed: 60 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Pickle Panther — YAML-driven E2E testing on top of Symfony Panther.
2+
#
3+
# Loaded in the "test" environment only: the bundle is registered for "test" in
4+
# config/bundles.php, so a root-level config/packages/ file would also load in
5+
# prod (where the bundle is absent) and Symfony would fail to boot.
6+
#
7+
# Every key below is OPTIONAL and shown with its default value — edit in place,
8+
# or delete what you keep at the default. Full reference & docs:
9+
# https://github.com/Amoifr/PicklePantherBundle
10+
pickle_panther:
11+
locale: fr # default DSL language (fr|en) — matching is bilingual anyway
12+
debug: false # true => a screenshot after every step (= E2E_DEBUG=1)
13+
scenarios_dir: '%kernel.project_dir%/tests/E2E/Scenario'
14+
report:
15+
enabled: true
16+
output_dir: '%kernel.project_dir%/var/pickle-panther'
17+
browser:
18+
headless: true
19+
chrome_args: [] # extra Chrome args appended to the defaults
20+
desktop:
21+
width: 1920
22+
height: 1080
23+
user_agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36'
24+
mobile:
25+
width: 375
26+
height: 812
27+
pixel_ratio: 3.0
28+
user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1'
29+
30+
# Optional built-in form-login authenticator. Uncomment to enable it; leave
31+
# commented if your app has a custom login flow (define your own service
32+
# aliased to Amoifr\PicklePantherBundle\Auth\AuthenticatorInterface instead).
33+
# Keep credentials out of the repository — read them from environment variables.
34+
#auth:
35+
# login_path: /login
36+
# logout_path: /logout
37+
# form_selector: 'form'
38+
# email_field: '_username'
39+
# password_field: '_password'
40+
# roles: # map a scenario role name to its credentials
41+
# admin: { email: '%env(E2E_ADMIN_EMAIL)%', password: '%env(E2E_ADMIN_PASSWORD)%' }
42+
# user: { email: '%env(E2E_USER_EMAIL)%', password: '%env(E2E_USER_PASSWORD)%' }
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"bundles": {
3+
"Amoifr\\PicklePantherBundle\\PicklePantherBundle": ["test"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/"
7+
},
8+
"post-install-output": [
9+
" * The bundle is enabled in the <comment>test</> environment only.",
10+
" Tune <comment>config/packages/test/pickle_panther.yaml</> as needed (every key is optional).",
11+
"",
12+
" * <comment>To actually run E2E scenarios you need a chromedriver</>",
13+
" (<comment>composer require --dev dbrekelmans/bdi && vendor/bin/bdi detect drivers</>)",
14+
" <comment>or a browser provided via Docker.</>",
15+
"",
16+
" * Docs: <href=https://github.com/Amoifr/PicklePantherBundle>https://github.com/Amoifr/PicklePantherBundle</>"
17+
]
18+
}

0 commit comments

Comments
 (0)