Skip to content

Looking for for fixture files within subdirectories inside cypress/fixtures #14866

@mohsenny

Description

@mohsenny

What would you like?

Currently fixture files (yml, json, etc) and fixture images (using cypress-file-upload module to test upload functionalities) should be directly inside the /fixtures directory, and creating directories inside /fixtures and placing the files there, would trigger an error that:

A fixture file could not be found at any of the following paths:

Having the fixture files directly under /fixtures causes no issues:

Screenshot 2021-02-02 at 11 24 37

Screenshot 2021-02-02 at 11 24 12

However having the under a subdirectory ( like: /fixtures/translations) causes the issue:

Screenshot 2021-02-02 at 11 23 50

Screenshot 2021-02-02 at 11 23 27

Why is this needed?

This is needed for better organizing fixtures files. Currently we have many fixtures files, from various translations, database seeding files to image files (for testing upload functionalities using cypress-file-upload module). At this moment all the files are mixed together inside /fixtures directory but ideally we would prefer to have separate sub directories like:

  • fixtures
  • fixtures/seed_files
  • fixtures/images
  • fixtures/translations
  • ...

Development Setup

  • cypress": "^5.6.0
  • cypress-file-upload": "^5.0.2"
  • node version: 15.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions