Skip to content

Entities created during E2E tests persist in the database #13323

@DhiraPT

Description

@DhiraPT

Currently, doRemoveAndRestoreDataBundle does not fully clean up entities created dynamically during a test, such as when FeedbackQuestion is copied.

This happens because removeSqlDataBundle only deletes entities that are listed in the given SqlDataBundle. Entities created during the test are not included in the original SqlDataBundle and therefore persist in the database after the test finishes.

Example
When I repeatedly run the test and execute some scripts in the browser console, I observe that more and more question forms accumulate in that same feedback session.
Image

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    c.BugBug/defect reportp.HighSignificant impact; would like to do in the next few releases

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions