You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Behat, each scenario should have a unique name to ensure clarity and avoid confusion during test execution and later debugging. This rule identifies scenarios that share the same name within your feature files:
114
+
115
+
```yaml
116
+
Feature: User Authentication
117
+
118
+
Scenario: User logs in successfully
119
+
When the user enters valid credentials
120
+
Then login should be successful
121
+
122
+
Scenario: User logs in successfully
123
+
When the user enters invalid credentials
124
+
Then an error message should be displayed
125
+
```
126
+
127
+
<br>
128
+
111
129
*Protip*: Add this command to your CI, to get instant feedback of any changes in every pull-request.
0 commit comments