Skip to content

Commit

Permalink
fix: allow duplicated epic, feature and story labels, address #121
Browse files Browse the repository at this point in the history
  • Loading branch information
Shelex committed Feb 2, 2022
1 parent 5a9e440 commit 8521ef0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion reporter/allure-cypress/AllureInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ Allure.prototype.label = function (name, value) {

// by default allure not overwrite label value
// so there is separate handling for existing labels
if (labelIndex(name) === -1) {
if (
labelIndex(name) === -1 ||
['epic', 'feature', 'story'].includes(name)
) {
this.reporter.currentTest.addLabel(name, value);
} else {
this.reporter.currentTest.info.labels[labelIndex(name)] = {
Expand Down

0 comments on commit 8521ef0

Please sign in to comment.