Open
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