Skip to content

Commit 8099d8d

Browse files
authored
fix: feature tags (#124)
1 parent 081f95b commit 8099d8d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/createTestsFromFeature.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const { shouldProceedCurrentStep, getEnvTags } = require("./tagsHelper");
44
const createTestsFromFeature = parsedFeature => {
55
const featureTags = parsedFeature.feature.tags;
66
const hasEnvTags = !!getEnvTags();
7-
const hasFeatureTags = featureTags && featureTags.length > 0;
87
const sectionsWithTags = parsedFeature.feature.children.filter(
98
section => section.tags && section.tags.length
109
);
@@ -23,9 +22,9 @@ const createTestsFromFeature = parsedFeature => {
2322
section.tags.length &&
2423
shouldProceedCurrentStep(section.tags)
2524
);
26-
} else if (!hasFeatureTags && !sectionsWithTagsExist) {
25+
} else if (!sectionsWithTagsExist) {
2726
everythingShouldRun = true;
28-
} else if (sectionsWithTagsExist) {
27+
} else {
2928
anyFocused = sectionsWithTags.some(section =>
3029
section.tags.find(t => t.name === "@focus")
3130
);

0 commit comments

Comments
 (0)