Skip to content

[🐛 Bug]: Tag above Examples table doesn't work wdio-cucumberjs #10644

@ldelosreyesm

Description

@ldelosreyesm

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

8.6.8

Node.js Version

18.16

Mode

WDIO Testrunner

Which capabilities are you using?

{
        maxInstances: 5,
        browserName: 'chrome',
        'goog:chromeOptions': {
            args: ['head', 'disable-gpu']
        },
        acceptInsecureCerts: true
}

What happened?

We I put a tag above Examples table, show Spec Files: 0 passed, 1 skipped, 0 total (0% completed) in 00:00:0
I am triying run this feature:

Feature: The Internet Guinea Pig Website
 @thisTagWorks
  Scenario Outline: As a user, I can log into the secure area
     Given I am on the "login" page
     When I login with "<username>" and "<password>"
     Then I should see a flash message saying "<message>"
     @thisTagDoesntWork
     Examples:
       | username | password             | message                        |
       | tomsmith | SuperSecretPassword! | You logged into a secure area! |
       | foobar   | barfoo               | Your username is invalid!      |
package.json
{
  "name": "my-new-project",
  "type": "module",
  "devDependencies": {
    "@wdio/cli": "^8.6.8",
    "@wdio/cucumber-framework": "^8.6.8",
    "@wdio/local-runner": "^8.6.8",
    "@wdio/spec-reporter": "^8.6.8",
    "chromedriver": "^113.0.0",
    "wdio-chromedriver-service": "^8.1.1"
  },
  "scripts": {
    "wdio": "wdio run ./wdio.conf.js"
  },
  "dependencies": {
    "pixelmatch": "^5.3.0"
  }
}

I am using webdriverio and cucumber. Additionally I have tried in protractor and cucumber and it works.

What is your expected behavior?

The scenario in feature file should be ran.

How to reproduce the bug.

I could replicate on this repository
https://github.com/ldelosreyesm/wdio_poc

and run
Mac or Linux
make wrer-module arg=TAG2RUN
Windows
npm run wdio -- --cucumberOpts.tagExpression=TAG2RUN

Relevant log output

Spec Files:  0 passed, 1 skipped, 0 total (0% completed) in 00:00:00

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🐛good first picka reasonable task to start getting familiar with the code basehelp wantedIssues that are free to take by anyone interested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions