-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Bug 🐛help wantedIssues that are free to take by anyone interestedIssues that are free to take by anyone interested
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
WebdriverIO Version
9.19.2
Node.js Version
22.18.0
Mode
WDIO Testrunner
Which capabilities are you using?
{
browserName: 'chrome'
}What happened?
In a project with Cucumber and a scenario with the tag @skip(browserName=["firefox",/i.*explorer/]), the execution fails, because cucumber returns an error if one of the skipped browser is set on the capabilities.
What is your expected behavior?
The execution should be successful, skipping the scenarios with the skip tag that matched with the current capabilities
How to reproduce the bug.
git clone https://github.com/Nyaran/webdriverio-cucumber-skip
cd webdriverio-cucumber-skip
npm i
npm run wdio
Relevant log output
[0-0] 2025-09-11T17:20:02.949Z ERROR @wdio/local-runner: Failed launching test session: Error: Tag expression "(not @skip\(browserName=["chrome","safari",/i\.\*explorer/]\))" could not be parsed because of syntax error: Illegal escape before ".".
[0-0] at tokenize (/Projects/github/wdio-minefield/webdriverio-cucumber-skip/node_modules/.pnpm/@cucumber+tag-expressions@6.1.0/node_modules/@cucumber/tag-expressions/src/index.ts:104:15)
[0-0] at parse (/Projects/github/wdio-minefield/webdriverio-cucumber-skip/node_modules/.pnpm/@cucumber+tag-expressions@6.1.0/node_modules/@cucumber/tag-expressions/src/index.ts:23:18)
[0-0] at new PickleTagFilter (/Projects/github/wdio-minefield/webdriverio-cucumber-skip/node_modules/.pnpm/@cucumber+cucumber@10.9.0/node_modules/@cucumber/cucumber/src/pickle_filter.ts:136:37)
[0-0] at new PickleFilter (/Projects/github/wdio-minefield/webdriverio-cucumber-skip/node_modules/.pnpm/@cucumber+cucumber@10.9.0/node_modules/@cucumber/cucumber/src/pickle_filter.ts:36:22)
[0-0] at <anonymous> (/Projects/github/wdio-minefield/webdriverio-cucumber-skip/node_modules/.pnpm/@cucumber+cucumber@10.9.0/node_modules/@cucumber/cucumber/src/filter/filter_plugin.ts:15:28)
[0-0] at PluginManager.transform (/Projects/github/wdio-minefield/webdriverio-cucumber-skip/node_modules/.pnpm/@cucumber+cucumber@10.9.0/node_modules/@cucumber/cucumber/src/plugin/plugin_manager.ts:87:30)
[0-0] at loadSources (/Projects/github/wdio-minefield/webdriverio-cucumber-skip/node_modules/.pnpm/@cucumber+cucumber@10.9.0/node_modules/@cucumber/cucumber/src/api/load_sources.ts:50:47)
[0-0] at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
[0-0] at async CucumberAdapter.init (/Projects/github/wdio-minefield/webdriverio-cucumber-skip/node_modules/.pnpm/@wdio+cucumber-framework@9.19.2/node_modules/@wdio/cucumber-framework/build/index.js:219:22)
[0-0] at async Object.adapterFactory.init (/Projects/github/wdio-minefield/webdriverio-cucumber-skip/node_modules/.pnpm/@wdio+cucumber-framework@9.19.2/node_modules/@wdio/cucumber-framework/build/index.js:508:20)
[0-0] SYNCHRONOUS TERMINATION NOTICE: When explicitly exiting the process via process.exit or via a parent process, asynchronous tasks in your exitHooks will not run. Either remove these tasks, use gracefulExit() instead of process.exit(), or ensure your parent process sends a SIGINT to the process running this code.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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bug 🐛help wantedIssues that are free to take by anyone interestedIssues that are free to take by anyone interested