* Append a tag name to scenario title * @param {string} tagName * @returns {this}
(tagName)
| 78 | * @returns {this} |
| 79 | */ |
| 80 | tag(tagName) { |
| 81 | if (tagName[0] !== '@') tagName = `@${tagName}` |
| 82 | if (!this.suite.tags) this.suite.tags = [] |
| 83 | this.suite.tags.push(tagName) |
| 84 | this.suite.title = `${this.suite.title.trim()} ${tagName}` |
| 85 | return this |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | export default FeatureConfig |
no test coverage detected