[Behat] Convert main config from YAML to PHP#18866
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
💤 Files with no reviewable changes (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThis pull request replaces YAML-based Behat configuration with PHP-based configuration: adds Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
❌ Preview Environment deleted from BunnyshellAvailable commands:
|
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
behat.dist.php (1)
27-31: Several configuration arrays have non-alphabetical key ordering.The coding guidelines require alphabetical ordering of PHP array keys where applicable. The following arrays are out of order:
Array Current order Alphabetical order MinkDebugExtensionconfigdirectory,clean_start,screenshotclean_start,directory,screenshotMinkExtensionconfigfiles_path,base_url,default_session,javascript_session,sessions,show_autobase_url,default_session,files_path,javascript_session,sessions,show_autosessionssymfony,chromedriver,chrome_headless_second_session,pantherchrome_headless_second_session,chromedriver,panther,symfonycapabilitiesacceptSslCerts,acceptInsecureCerts,unexpectedAlertBehaviour,goog:chromeOptionsacceptInsecureCerts,acceptSslCerts,goog:chromeOptions,unexpectedAlertBehaviourAs per coding guidelines: "Order PHP array keys alphabetically where applicable."
Also applies to: 32-90
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@behat.dist.php` around lines 27 - 31, The array keys in the Behat config blocks are not alphabetically ordered; update the arrays used with Extension(MinkDebugExtension::class, ...) and Extension(MinkExtension::class, ...) so their keys are alphabetized (e.g., for MinkDebugExtension change 'directory','clean_start','screenshot' to 'clean_start','directory','screenshot'); also reorder the nested 'sessions' array keys to alphabetic order (e.g., 'chrome_headless_second_session','chromedriver','panther','symfony') and reorder the 'capabilities' keys to alphabetical order (e.g., 'acceptInsecureCerts','acceptSslCerts','goog:chromeOptions','unexpectedAlertBehaviour') so all PHP array keys follow the project's alphabetical-key guideline.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@behat.dist.php`:
- Around line 1-2: Add the strict types declaration to this PHP file by
inserting declare(strict_types=1); immediately after the opening <?php tag so
the file follows the project's coding guideline requiring strict_types for all
PHP files (same change applied in suites.php).
In `@src/Sylius/Behat/Resources/config/suites.php`:
- Around line 1-2: Add a strict types declaration by inserting
declare(strict_types=1); immediately after the opening <?php tag at the top of
the file (i.e., ensure the file begins with "<?php declare(strict_types=1);"),
so the file respects the project's coding guideline requiring strict types.
---
Nitpick comments:
In `@behat.dist.php`:
- Around line 27-31: The array keys in the Behat config blocks are not
alphabetically ordered; update the arrays used with
Extension(MinkDebugExtension::class, ...) and Extension(MinkExtension::class,
...) so their keys are alphabetized (e.g., for MinkDebugExtension change
'directory','clean_start','screenshot' to
'clean_start','directory','screenshot'); also reorder the nested 'sessions'
array keys to alphabetic order (e.g.,
'chrome_headless_second_session','chromedriver','panther','symfony') and reorder
the 'capabilities' keys to alphabetical order (e.g.,
'acceptInsecureCerts','acceptSslCerts','goog:chromeOptions','unexpectedAlertBehaviour')
so all PHP array keys follow the project's alphabetical-key guideline.
ℹ️ Review info
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
.gitignorebehat.dist.phpbehat.yml.distsrc/Sylius/Behat/Resources/config/suites.phpsrc/Sylius/Behat/Resources/config/suites.yml
💤 Files with no reviewable changes (2)
- src/Sylius/Behat/Resources/config/suites.yml
- behat.yml.dist
Co-Authored-By: Loïc Frémont <lc.fremont@gmail.com>
751f084 to
0207fcc
Compare
Summary by CodeRabbit