Skip to content

Fix flakiness of end-to-end features tests #1077

@Strift

Description

@Strift

Description
The features.cy.js are flaky due to the asynchronous nature of Meilisearch.

When enabling Meilisearch indexing for a Strapi resource type, we might need to wait for Meilisearch to complete it before asserting results on the UI.

The UI has different ways to handle that ("hooked", or "Reload needed"), which makes tests hard to write.

Expected behavior
Write tests that pass 100% of the time.

Current behavior
Some tests are often failing, in particular in the CI environment (see CI logs), which makes it harder to debug + iterate.

Proof of successfully passing tests
Image

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