Skip to content

Cypress creates an incorrectly named screenshot for skipped tests #2368

@irfancharania

Description

@irfancharania

I'd like to skip certain tests based on environment (e.g. not run a given test in Production environment).

Current behavior:

When I programmatically skip, Cypress creates a screenshot and names it failed.

2018-08-17 21_11_59-c__windows_system32_cmd exe

Desired behavior:

I don't mind the screenshot getting created, but it should be named "pending".

Steps to reproduce:

Example repo: https://github.com/irfancharania/cypress-example/
Specifically: test.spec.ts

Versions

Cypress: 3.1.0
Windows 10
Node v8.11.3

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions