Cypress-cucumber-preprocessor: Having Multiple Backgrounds in a single Feature File is throwing error

Created on 27 Aug 2018  路  1Comment  路  Source: TheBrainFamily/cypress-cucumber-preprocessor

I have a feature File and I have places multiple back grounds for different scenario in a single feature file like this

as there is no support for hooks in Cypress cucumber pre processsor

Feature: To test Login

Background:
Setting up app for the below scenario 1

Scenario: To Check if SVG Icon is present in offer status for an Active offer
GWT statements

Background:
Setting up app for the below scenario 2
Scenario: To check if the plans and services page shows Pending status for the offer in pending state
GWT statements

but Cypress is throwing a error

image

Where am i going wrong ?
how to deal with scenario level dependencies ?

Most helpful comment

Any solution to this?

>All comments

Any solution to this?

Was this page helpful?
0 / 5 - 0 ratings