-
-
Notifications
You must be signed in to change notification settings - Fork 14
Fixed FieldTrait incorrectly sitting in the Drupal namespace. #401
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
Conversation
WalkthroughThe changes shift the Changes
Sequence Diagram(s)sequenceDiagram
participant TestRunner
participant FeatureContext
participant FieldTrait
TestRunner->>FeatureContext: Run scenario with @trait:FieldTrait
FeatureContext->>FieldTrait: Use step definitions for form fields
FieldTrait-->>FeatureContext: Provide field manipulation/assertion steps
FeatureContext-->>TestRunner: Scenario executed using generic FieldTrait
Poem
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
🔇 Additional comments (9)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (6)
MIGRATION.md
(1 hunks)README.md
(1 hunks)STEPS.md
(2 hunks)src/FieldTrait.php
(1 hunks)tests/behat/bootstrap/FeatureContext.php
(1 hunks)tests/behat/features/field.feature
(15 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
STEPS.md
480-480: Multiple spaces after blockquote symbol
null
(MD027, no-multiple-space-blockquote)
481-481: Unordered list indentation
Expected: 0; Actual: 1
(MD007, ul-indent)
481-481: Multiple spaces after blockquote symbol
null
(MD027, no-multiple-space-blockquote)
481-481: Lists should be surrounded by blank lines
null
(MD032, blanks-around-lists)
482-482: Unordered list indentation
Expected: 0; Actual: 1
(MD007, ul-indent)
482-482: Multiple spaces after blockquote symbol
null
(MD027, no-multiple-space-blockquote)
483-483: Unordered list indentation
Expected: 0; Actual: 1
(MD007, ul-indent)
483-483: Multiple spaces after blockquote symbol
null
(MD027, no-multiple-space-blockquote)
485-485: Multiple consecutive blank lines
Expected: 1; Actual: 2
(MD012, no-multiple-blanks)
486-486: Inline HTML
Element: details
(MD033, no-inline-html)
487-487: Inline HTML
Element: summary
(MD033, no-inline-html)
487-487: Inline HTML
Element: code
(MD033, no-inline-html)
489-489: Inline HTML
Element: br
(MD033, no-inline-html)
491-491: Inline HTML
Element: br
(MD033, no-inline-html)
491-491: Inline HTML
Element: br
(MD033, no-inline-html)
500-500: Inline HTML
Element: details
(MD033, no-inline-html)
501-501: Inline HTML
Element: summary
(MD033, no-inline-html)
501-501: Inline HTML
Element: code
(MD033, no-inline-html)
503-503: Inline HTML
Element: br
(MD033, no-inline-html)
505-505: Inline HTML
Element: br
(MD033, no-inline-html)
505-505: Inline HTML
Element: br
(MD033, no-inline-html)
514-514: Inline HTML
Element: details
(MD033, no-inline-html)
515-515: Inline HTML
Element: summary
(MD033, no-inline-html)
515-515: Inline HTML
Element: code
(MD033, no-inline-html)
517-517: Inline HTML
Element: br
(MD033, no-inline-html)
519-519: Inline HTML
Element: br
(MD033, no-inline-html)
519-519: Inline HTML
Element: br
(MD033, no-inline-html)
529-529: Inline HTML
Element: details
(MD033, no-inline-html)
530-530: Inline HTML
Element: summary
(MD033, no-inline-html)
530-530: Inline HTML
Element: code
(MD033, no-inline-html)
532-532: Inline HTML
Element: br
(MD033, no-inline-html)
534-534: Inline HTML
Element: br
(MD033, no-inline-html)
534-534: Inline HTML
Element: br
(MD033, no-inline-html)
544-544: Inline HTML
Element: details
(MD033, no-inline-html)
545-545: Inline HTML
Element: summary
(MD033, no-inline-html)
545-545: Inline HTML
Element: code
(MD033, no-inline-html)
547-547: Inline HTML
Element: br
(MD033, no-inline-html)
549-549: Inline HTML
Element: br
(MD033, no-inline-html)
549-549: Inline HTML
Element: br
(MD033, no-inline-html)
561-561: Inline HTML
Element: details
(MD033, no-inline-html)
562-562: Inline HTML
Element: summary
(MD033, no-inline-html)
562-562: Inline HTML
Element: code
(MD033, no-inline-html)
564-564: Inline HTML
Element: br
(MD033, no-inline-html)
566-566: Inline HTML
Element: br
(MD033, no-inline-html)
566-566: Inline HTML
Element: br
(MD033, no-inline-html)
575-575: Inline HTML
Element: details
(MD033, no-inline-html)
576-576: Inline HTML
Element: summary
(MD033, no-inline-html)
576-576: Inline HTML
Element: code
(MD033, no-inline-html)
578-578: Inline HTML
Element: br
(MD033, no-inline-html)
580-580: Inline HTML
Element: br
(MD033, no-inline-html)
580-580: Inline HTML
Element: br
(MD033, no-inline-html)
589-589: Inline HTML
Element: details
(MD033, no-inline-html)
590-590: Inline HTML
Element: summary
(MD033, no-inline-html)
590-590: Inline HTML
Element: code
(MD033, no-inline-html)
592-592: Inline HTML
Element: br
(MD033, no-inline-html)
594-594: Inline HTML
Element: br
(MD033, no-inline-html)
594-594: Inline HTML
Element: br
(MD033, no-inline-html)
603-603: Inline HTML
Element: details
(MD033, no-inline-html)
604-604: Inline HTML
Element: summary
(MD033, no-inline-html)
604-604: Inline HTML
Element: code
(MD033, no-inline-html)
606-606: Inline HTML
Element: br
(MD033, no-inline-html)
608-608: Inline HTML
Element: br
(MD033, no-inline-html)
608-608: Inline HTML
Element: br
(MD033, no-inline-html)
617-617: Inline HTML
Element: details
(MD033, no-inline-html)
618-618: Inline HTML
Element: summary
(MD033, no-inline-html)
618-618: Inline HTML
Element: code
(MD033, no-inline-html)
620-620: Inline HTML
Element: br
(MD033, no-inline-html)
622-622: Inline HTML
Element: br
(MD033, no-inline-html)
622-622: Inline HTML
Element: br
(MD033, no-inline-html)
🔇 Additional comments (8)
tests/behat/bootstrap/FeatureContext.php (1)
20-20
: Namespace import updated for FieldTrait
The import ofFieldTrait
has been correctly updated to the generic namespaceDrevOps\BehatSteps\FieldTrait
. This aligns with the refactoring plan and ensures the trait is loaded from its new location.tests/behat/features/field.feature (1)
56-56
: Trait annotations updated to generic namespace
All occurrences of the trait tag have been updated from@trait:Drupal\FieldTrait
to@trait:FieldTrait
. This change is consistent across scenarios and ensures the correct trait reference in feature files.Also applies to: 70-70, 84-84, 98-98, 112-112, 173-173, 188-188, 203-203, 218-218, 233-233, 248-248, 263-263, 278-278, 293-293, 308-308
README.md (1)
49-49
: Documentation updated to include generic FieldTrait
TheFieldTrait
entry has been added to the "Index of Generic steps", and its Drupal-specific entry removed. This accurately reflects the trait’s new generic placement.MIGRATION.md (1)
86-86
: Migration map corrected for FieldTrait
The migration documentation now maps toFieldTrait
without theDrupal\
prefix, aligning with the namespace change in the code.src/FieldTrait.php (2)
5-5
: Namespace declaration updated
The namespace has been updated fromDrevOps\BehatSteps\Drupal
toDrevOps\BehatSteps
, makingFieldTrait
a generic trait.
13-13
: Docblock updated to remove Drupal-specific wording
The class-level docblock no longer references "Drupal", reflecting the trait’s broader applicability.STEPS.md (2)
10-10
: Verify the generic FieldTrait entry in the Generic steps index
The new| [FieldTrait](#fieldtrait) | Manipulate form fields and verify widget functionality. |
entry correctly reflects the namespace change. Please confirm that the#fieldtrait
anchor matches the newly added section below and that the description aligns with the trait’s functionality.
476-484
: Confirm the new FieldTrait documentation section
The freshly inserted## FieldTrait
section mirrors the removed Drupal-specific block. Ensure that:
- The title and link anchor (
fieldtrait
) match the index entry.- The step definitions and Gherkin examples accurately represent the moved trait.
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
480-480: Multiple spaces after blockquote symbol
null(MD027, no-multiple-space-blockquote)
481-481: Unordered list indentation
Expected: 0; Actual: 1(MD007, ul-indent)
481-481: Multiple spaces after blockquote symbol
null(MD027, no-multiple-space-blockquote)
481-481: Lists should be surrounded by blank lines
null(MD032, blanks-around-lists)
482-482: Unordered list indentation
Expected: 0; Actual: 1(MD007, ul-indent)
482-482: Multiple spaces after blockquote symbol
null(MD027, no-multiple-space-blockquote)
483-483: Unordered list indentation
Expected: 0; Actual: 1(MD007, ul-indent)
483-483: Multiple spaces after blockquote symbol
null(MD027, no-multiple-space-blockquote)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #401 +/- ##
=======================================
Coverage 80.29% 80.29%
=======================================
Files 29 29
Lines 1959 1959
=======================================
Hits 1573 1573
Misses 386 386 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
f7596ae
to
cd199f9
Compare
FieldTrait
was incorrectly placed underDrupal
namespace.This PR fixes the location and updates docs.
A patch release will be done once this is merged.
Summary by CodeRabbit