The allure report mixes steps, it no longer attaches the steps to GIVEN, WHEN, THAN #4932
Replies: 3 comments
-
I modify my step like this, but same problem: const allure = require("allure-js-commons"); Given('I am logged in as a customer', async function() { |
Beta Was this translation helpful? Give feedback.
-
When I put an assert in end of the GIVEN it resolve the problem ! like: Given('I am logged in as a customer', async function() { |
Beta Was this translation helpful? Give feedback.
-
do not use I.say with this workaround. |
Beta Was this translation helpful? Give feedback.
-
I use codeceptjs 3.7.2 with playwright 1.28.1 (bdd) with allure-codeceptjs: 3.2.0, this is part of my codecept.conf.js :
....
plugins: {
screenshotOnFail: {
enabled: true
},
allure: {
enabled: true,
require: 'allure-codeceptjs',
resultsDir: env.reportOutput
},
....
The final allure report mixes steps :
example here the scenario:
@FEAT-01-002
Scenario: Authenticated user sets the quantity and add a product to the cart
Given I am logged in as a customer
And My cart is empty
When I add 3 instances of a product1 to my cart
Then My cart contains 3 instances of product1
And I should be able to empty my cart
the phrase "And My cart is empty" contains many steps, but on the report, no step is attached.
please rename this file with extention html before open it:
index.txt
please take a look the the generated report here (see attached file)
Beta Was this translation helpful? Give feedback.
All reactions