CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

featrure request for reporter: Way to check that `MetaStep` is finished.

Open vovsemenv opened this issue 2 years ago • 1 comments

I'm trying to create custom reporter with steps reporting and i find out that is not possible to know that metastep is actually ended. i need some flag to know that metastep is finished so i can start new step in the report instead of writing in the finished step

Even the default console reporter is not logging that metastep is finished current output with verbose mode

featureName --
 › [Session] Starting singleton browser session
  scenarioName
    I: goGoogle 
      I am on page "https://google.com"
      I am on page "https://ya.ru/"
      I am on page "https://google.com"
      I am on page "https://ya.ru/"
  ✔ OK in 1930ms

and it look like this be because new call of the same step is started

featureName --
 › [Session] Starting singleton browser session
  scenarioName
    I: goGoogle 
      I am on page "https://google.com"
      I am on page "https://ya.ru/"
+   I: goGoogle
      I am on page "https://google.com"
      I am on page "https://ya.ru/"
  ✔ OK in 1930ms

login_test.ts

Feature("featureName");

Scenario("scenarioName", async ({ I }) => {
  I.goGoogle();
  I.goGoogle();
});

steps_file.ts

module.exports = function () {
  return actor({
    goGoogle: function (email, password) {
      this.amOnPage("https://google.com");
      this.amOnPage("https://ya.ru/");
    },
  });
};

vovsemenv avatar Feb 28 '23 11:02 vovsemenv

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Aug 21 '23 08:08 github-actions[bot]