Skip to content

Reduced test case for suite level configuration error

Notifications You must be signed in to change notification settings

marvelapp/suite-level-tags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

suite-level-tags

Reduced test case for suite level configuration error.

With cypress-cucumber-preprocessor you can set per-test settings via tags.

However some settings, eg testIsolation, are only applicable at the suite level.

Attempting to run the test below in 13.6.4

@testIsolation(false)
Feature: Disable test isolation for this suite

    Scenario: Open a page
        Given I load a page

    Scenario: the page still exists
        Then the page should exist

does not work.

(In a real project with 13.4.0 I get

CypressError: The testIsolation configuration can only be overridden from a suite-level override.

Screenshot 2024-02-19 at 11 01 33 )

I can see from the code that configuraion set via tags is gathered and applied to each it, which is why suite-level options don't work.

Applying tags on Feature to the corresponding describe would possibly allow this to work.

To run this test case, clone this repo then

yarn install
yarn run cypress open

and select the suiteLevelSettings suite to run.

About

Reduced test case for suite level configuration error

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published