Skip to content

Commit 8d6b7e1

Browse files
committed
Re-word configuration error messages
This now corresponds more closely to the original error.
1 parent d1130c5 commit 8d6b7e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

features/suite_only_options.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Feature: suite only options
7979
Then it fails
8080
And the output should contain
8181
"""
82-
Tag testIsolation can only be used on a Feature or a Rule
82+
The `testIsolation` configuration can only be overridden from a suite-level override (in Cucumber-terms this means on a Feature or Rule).
8383
"""
8484

8585
Scenario: Configuring testIsolation on a Scenario Outline
@@ -105,7 +105,7 @@ Feature: suite only options
105105
Then it fails
106106
And the output should contain
107107
"""
108-
Tag testIsolation can only be used on a Feature or a Rule
108+
The `testIsolation` configuration can only be overridden from a suite-level override (in Cucumber-terms this means on a Feature or Rule).
109109
"""
110110

111111
Scenario: Configuring testIsolation on Examples
@@ -131,5 +131,5 @@ Feature: suite only options
131131
Then it fails
132132
And the output should contain
133133
"""
134-
Tag testIsolation can only be used on a Feature or a Rule
134+
The `testIsolation` configuration can only be overridden from a suite-level override (in Cucumber-terms this means on a Feature or Rule).
135135
"""

lib/browser-runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ function createPickle(context: CompositionContext, pickle: messages.Pickle) {
459459
for (const entry of testSpecificOptions) {
460460
if (isExclusivelySuiteConfiguration(entry)) {
461461
throw new Error(
462-
`Tag ${entry[0]} can only be used on a Feature or a Rule`
462+
`The \`${entry[0]}\` configuration can only be overridden from a suite-level override (in Cucumber-terms this means on a Feature or Rule).`
463463
);
464464
}
465465
}

0 commit comments

Comments
 (0)