allure-js
allure-js copied to clipboard
Step with expected result
Is your feature request related to a problem? Please describe.
AllureTestops has feature that allow to create manually step with expected result, but i need feature to create via code.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
I'd love to see function in allure-playwright something like that syntax:
allure.stepWithExpect(name: string, body: () => Promise<T>, assertFunc: makeMatchers): Promise<T>
Describe alternatives you've considered
Generate new property in allure-results.json, that allureTestops can recognize as step with expected result