Skip to content

Instantly share code, notes, and snippets.

@buritica
Created February 16, 2014 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buritica/9040233 to your computer and use it in GitHub Desktop.
Save buritica/9040233 to your computer and use it in GitHub Desktop.
Type error thrown when trying to run cucumber.js with examples
{ payloadType: 'scenario',
setBackground: [Function: setBackground],
buildScenarios: [Function: buildScenarios],
getKeyword: [Function: getKeyword],
getName: [Function: getName],
getDescription: [Function: getDescription],
getUri: [Function: getUri],
getLine: [Function: getLine],
getBackground: [Function: getBackground],
addStep: [Function: addStep],
getLastStep: [Function: getLastStep],
getMaxStepLength: [Function],
setSteps: [Function: setSteps],
getSteps: [Function: getSteps],
addTags: [Function: setTags],
addInheritedtags: [Function: addInheritedtags],
getTags: [Function: getTags],
getOwnTags: [Function: getOwnTags],
acceptVisitor: [Function: acceptVisitor],
instructVisitorToVisitBackgroundSteps: [Function: instructVisitorToVisitBackgroundSteps],
instructVisitorToVisitScenarioSteps: [Function: instructVisitorToVisitScenarioSteps],
instructVisitorToVisitSteps: [Function: instructVisitorToVisitSteps] }
/Users/buritica/htdocs/cucumber-js/lib/cucumber/ast/assembler.js:88
currentScenarioOrBackground.setExamples(examples);
TypeError: Object #<Object> has no method 'setExamples'
at Object.insertExamples (/Users/buritica/htdocs/cucumber-js/lib/cucumber/ast/assembler.js:88:35)
at Object.handleExamples [as examples] (/Users/buritica/htdocs/cucumber-js/lib/cucumber/parser.js:100:20)
at Lexer.store_keyword_content (/Users/buritica/htdocs/cucumber-js/node_modules/gherkin/lib/gherkin/lexer/en.js:1196:23)
at Lexer.scan (/Users/buritica/htdocs/cucumber-js/node_modules/gherkin/lib/gherkin/lexer/en.js:932:14)
at Object.parse (/Users/buritica/htdocs/cucumber-js/lib/cucumber/parser.js:18:15)
at Object.getFeatures (/Users/buritica/htdocs/cucumber-js/lib/cucumber/runtime.js:24:35)
at Object.start (/Users/buritica/htdocs/cucumber-js/lib/cucumber/runtime.js:10:37)
at Object.runSuiteWithConfiguration (/Users/buritica/htdocs/cucumber-js/lib/cucumber/cli.js:19:15)
at Object.run (/Users/buritica/htdocs/cucumber-js/lib/cucumber/cli.js:12:14)
at Object.<anonymous> (/Users/buritica/htdocs/cucumber-js/bin/cucumber.js:4:5)
As new customer
I want subscribe to EC
So that I can get awesome shirts every season
Scenario: Selections are made visible depending on choice
Given I am on the checkout page
And <Section> is not visible
When I click on "Subscription"
And <Section> should be visible
Examples:
| Section |
| #select-a-subscription .inner |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment