CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

Allure plugin does not build the 3rd level

Open jancorvus opened this issue 5 years ago • 1 comments

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

jancorvus avatar Sep 23 '20 14:09 jancorvus

I can see a similar issue was logged https://github.com/codeceptjs/CodeceptJS/issues/3131

jancorvus avatar Jan 21 '22 09:01 jancorvus

allure plugin is now maintained by allure team https://github.com/allure-framework/allure-js/tree/master/packages/allure-codeceptjs

kobenguyent avatar Oct 23 '23 12:10 kobenguyent