Skip to content

Commit fe4d1fd

Browse files
committed
Added consistent Chromium flags to Behat and PHPUnit configs.
1 parent e6c8cce commit fe4d1fd

8 files changed

Lines changed: 11 additions & 4 deletions

File tree

.vortex/docs/content/tools/behat.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ to ensure stable and deterministic test execution in the container environment:
8686
| Flag | Purpose |
8787
|----------------------------------|------------------------------------------------------------------|
8888
| `--disable-extensions` | Prevents interference from browser extensions |
89+
| `--disable-popup-blocking` | Allows tests to open popups without being blocked |
8990
| `--disable-translate` | Prevents the translation bar from appearing on non-English pages |
9091
| `--force-prefers-reduced-motion` | Disables CSS animations and transitions for test stability |
9192
| `--test-type` | Suppresses error dialogs and crash recovery prompts |
93+
| `--window-size=1920,1080` | Sets a deterministic viewport size for consistent screenshots |
9294

9395
### Contexts and extensions
9496

.vortex/docs/content/tools/phpunit.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ in `phpunit.xml` to ensure stable and deterministic test execution:
114114
| Flag | Purpose |
115115
|----------------------------------|------------------------------------------------------------------|
116116
| `--disable-extensions` | Prevents interference from browser extensions |
117+
| `--disable-popup-blocking` | Allows tests to open popups without being blocked |
117118
| `--disable-translate` | Prevents the translation bar from appearing on non-English pages |
118119
| `--force-prefers-reduced-motion` | Disables CSS animations and transitions for test stability |
119120
| `--test-type` | Suppresses error dialogs and crash recovery prompts |

.vortex/installer/tests/Fixtures/handler_process/_baseline/behat.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ default:
4040
'goog:chromeOptions':
4141
args:
4242
- '--disable-extensions' # Prevents interference from browser extensions.
43+
- '--disable-popup-blocking' # Allows tests to open popups without being blocked.
4344
- '--disable-translate' # Prevents the translation bar from appearing on non-English pages.
4445
- '--force-prefers-reduced-motion' # Disables CSS animations and transitions for test stability.
4546
- '--test-type' # Suppresses error dialogs and crash recovery prompts.
47+
- '--window-size=1920,1080' # Sets the browser window size for consistent test screenshots.
4648

4749
# Provides integration with Drupal APIs.
4850
Drupal\DrupalExtension:

.vortex/installer/tests/Fixtures/handler_process/_baseline/phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<!-- Example for changing the driver args to mink tests MINK_DRIVER_ARGS value: '["http://127.0.0.1:8510"]' -->
6262
<env name="MINK_DRIVER_ARGS" value=""/>
6363
<!-- Driver args for webdriver tests. -->
64-
<env name="MINK_DRIVER_ARGS_WEBDRIVER" value='["chrome", {"goog:chromeOptions": {"w3c": true, "args": ["--disable-extensions", "--disable-translate", "--force-prefers-reduced-motion", "--test-type", "--window-size=1920,1080"]}}, "http://chrome:4444/wd/hub"]'/>
64+
<env name="MINK_DRIVER_ARGS_WEBDRIVER" value='["chrome", {"goog:chromeOptions": {"w3c": true, "args": ["--disable-extensions", "--disable-popup-blocking", "--disable-translate", "--force-prefers-reduced-motion", "--test-type", "--window-size=1920,1080"]}}, "http://chrome:4444/wd/hub"]'/>
6565
</php>
6666
<testsuites>
6767
<testsuite name="unit">

.vortex/installer/tests/Fixtures/handler_process/hosting_acquia/behat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@@ -50,9 +50,9 @@
1+
@@ -52,9 +52,9 @@
22
api_driver: drupal
33
drush_driver: drush
44
drupal:

.vortex/installer/tests/Fixtures/handler_process/hosting_project_name___acquia/behat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@@ -50,9 +50,9 @@
1+
@@ -52,9 +52,9 @@
22
api_driver: drupal
33
drush_driver: drush
44
drupal:

behat.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ default:
4040
'goog:chromeOptions':
4141
args:
4242
- '--disable-extensions' # Prevents interference from browser extensions.
43+
- '--disable-popup-blocking' # Allows tests to open popups without being blocked.
4344
- '--disable-translate' # Prevents the translation bar from appearing on non-English pages.
4445
- '--force-prefers-reduced-motion' # Disables CSS animations and transitions for test stability.
4546
- '--test-type' # Suppresses error dialogs and crash recovery prompts.
47+
- '--window-size=1920,1080' # Sets the browser window size for consistent test screenshots.
4648

4749
# Provides integration with Drupal APIs.
4850
Drupal\DrupalExtension:

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<!-- Example for changing the driver args to mink tests MINK_DRIVER_ARGS value: '["http://127.0.0.1:8510"]' -->
6262
<env name="MINK_DRIVER_ARGS" value=""/>
6363
<!-- Driver args for webdriver tests. -->
64-
<env name="MINK_DRIVER_ARGS_WEBDRIVER" value='["chrome", {"goog:chromeOptions": {"w3c": true, "args": ["--disable-extensions", "--disable-translate", "--force-prefers-reduced-motion", "--test-type", "--window-size=1920,1080"]}}, "http://chrome:4444/wd/hub"]'/>
64+
<env name="MINK_DRIVER_ARGS_WEBDRIVER" value='["chrome", {"goog:chromeOptions": {"w3c": true, "args": ["--disable-extensions", "--disable-popup-blocking", "--disable-translate", "--force-prefers-reduced-motion", "--test-type", "--window-size=1920,1080"]}}, "http://chrome:4444/wd/hub"]'/>
6565
</php>
6666
<testsuites>
6767
<testsuite name="unit">

0 commit comments

Comments
 (0)