diff --git a/packages/core/lib/runner.js b/packages/core/lib/runner.js index a12a95bd77..b4eddf1c72 100644 --- a/packages/core/lib/runner.js +++ b/packages/core/lib/runner.js @@ -341,7 +341,7 @@ function runScenario(script, metrics, runState, contextVars, options) { scenario.name ); const hasScenarioByName = scenario.name === options.scenarioName; - const hasScenario = hasScenarioByRegex || hasScenarioByName; + const hasScenario = hasScenarioByName || hasScenarioByRegex; if (hasScenario) { foundIndex = index;