Skip to content

Spec order from specPattern is ignored when --record is used #29067

Open
@dennisoelkers

Description

Current behavior

When --record is used, specs are executed in lexicographic order.

Desired behavior

Just like without --record, specs should be executed in the order they are defined in specPattern in cypress config.

Test code to reproduce

Cypress config:

import { defineConfig } from 'cypress';
export default defineConfig({
  specPattern: ['foo.spec.ts', 'bar.spec.ts']
});

Now, when run with yarn cy:run, it should execute foo.spec.ts before bar.spec.ts. When yarn cy:run --record is used, bar.spec.ts will be executed before foo.spec.ts.

Cypress Version

13.6.6

Node version

18.18.0

Operating System

Linux x64

Debug Logs

No response

Other

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions