Skip to content

[Feature]: Option to see if Multiple scenarios in a single feature can be grouped into one Test.describe() and fixtures to be shared across #310

Description

@harishh3492

The Problem

Scenario:
I have a Test scenario that has around 10+ test cases within it. At present, we have all 10+ test cases ( Around 40 Steps) written within the single scenario. Reason behind this is the page flow/fixture usage is the same and cannot be segregated.

Current World:
Currently each scenario is represented as test.describe() in the bddgen and each test block within the describe has a new fixture.

Challenge:
Having 40+ steps makes it very lengthy and unreadable. Would be logical to have them segregated as 10 different scenario within the feature with each scenario referring to a Test case.

Proposed Solution

Feature Request:

  1. Is there a way by which we can have one test.describe for a Feature with each scenario represented as test?
  2. is there a way by which the fixture (ex: page)/hooks can be shared across the test and set at the describe level?

Additional Context

I have seen a similar structure being used in protractor-based frameworks. Would be great if we can replicate it here as well.

Priority Level

High

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions