CodeceptJS
CodeceptJS copied to clipboard
Allure plugin does not build the 3rd level
What are you trying to achieve?
I call a custom steps function from a page object function. The custom steps functions contains a set of I.do directives itself. I want nesting of steps of the test be correct in the resulted Allure report like presented beneath.
IdoActionFromTestFile
pageObject.method
actionFromPageObjectMethod
steps_file.method_calledFormPageObjectMethod
IdoActionFromStepsFileMethod1
IdoActionFromStepsFileMethod2
What do you get instead?
An incorrect nesting. While the custom steps function is called from the page object function, it gets displayed in the Allure report as if it had been called from the body of the test.
IdoActionFromTestFile
pageObject.method
actionFromPageObjectMethod
steps_file.method_calledFormPageObjectMethod
IdoActionFromStepsFileMethod1
IdoActionFromStepsFileMethod2
Tried to debug a little. It showed that MetaStep of the custom steps function step is blank, whereas it should refer to the page object function.
Details
- CodeceptJS version: 2.6.11 and 3.0.0-beta.4
- NodeJS Version: 13.11.0
- webdriverio
I can see a similar issue was logged https://github.com/codeceptjs/CodeceptJS/issues/3131
allure plugin is now maintained by allure team https://github.com/allure-framework/allure-js/tree/master/packages/allure-codeceptjs