Skip to content

Refactor tests to seed data using the API #1033

Open
@Strift

Description

@Strift

motivation

The current test suite is seeding users and roles with Cypress by clicking on the CMS.

This is effectively testing the Strapi-specific user journey of e.g. how to create user.

When the UI changes, the test breaks.

proposal

Use Cypress cy.request() command to create users and roles by communicating with the Strapi API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenanceAnything related to maintenance (CI, tests, refactoring...)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions