Comments (1)
Injecting fresh steps dynamically at runtime isn't something we'll be doing, it would be a big departure from the current model of Cucumber.
The other way to resolve this is just to do the assertion in the step. However, we've decided that having the step do the request and the assertion is mixing concerns, only "Outcome" steps should be making assertions.
I see where you're coming from here, and it's good to avoid mixing concerns, but it's generally an accepted practise to do assertions like this on context steps. They're in a different category to assertions that validate functional outcomes, because they're just about ensuring the state is as expected.
from cucumber-js.
Related Issues (20)
- world parameters are mutable from scenarios, and changes leak to other scenarios HOT 5
- Support soft assertions HOT 4
- Documented way to include ts-node with esm prints warning, alternative swallows errors HOT 2
- First-class support for module loaders HOT 4
- Line number of scenario is not considered when wild card used in feature file path HOT 4
- Adding timestamps to html or json report HOT 1
- Update Test Step Status programmatically
- Recent tmp update breaks cucumber-js on Node14 HOT 4
- getting the report after running cucumber programmatically HOT 1
- Question - How to provide multiple feature file path in cucumber.js file HOT 1
- can we use this with cypress and typescript HOT 1
- Background steps are reported without keyword Background in json report HOT 9
- Step with result status = pending does not contain an error_message HOT 1
- worldParameters not modifiable using Before and After hooks after updating to the latest versions after v10.0.1 HOT 4
- ESM with TS not working HOT 1
- ESM mode with ts-node breaks TypeScript path alias resolution in cucumber-js HOT 5
- JSON format issue, especially with larger reports, such as 500MB in size HOT 4
- CustomWorld Context Retention between Steps of the same Scenario: (JS Only) Backwards Compatibility (Known to be affected 8.11.1-9.6.0) && 10.8.0 with TS 5.4.5 HOT 7
- Facing Issue with Parallelism in Jenkins while running Playwright Cucumber tests HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cucumber-js.