Project

General

Profile

Actions

Bug #21776

open

Cypress tests not cleaning up leftover resources

Added by Lisa Knox about 2 months ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
-
Story points:
-

Description

When running integration tests, there are several items that get created in the course of tests running, but that do not get cleaned up at the end of their respective tests. This has gone unnoticed until working on #21535, trying to trigger the multiselect toolbar by clicking "select all" and the wrong toolbar showed up because resources of multiple incompatible types were selected.


Files

cypressLeftovers.png (164 KB) cypressLeftovers.png the results of the final cypress integration test, showing multiple leftover resources Lisa Knox, 05/15/2024 06:06 PM
Actions #1

Updated by Lisa Knox about 2 months ago

From Lucas:

The cy.createResource() function is supposed to keep a list of objects created that get deleted before running each test, maybe there's a bug in that code?

I think the issue is actually that there are several places where resources are created without using `cy.createresource()` (such as clicking the "+NEW" button and manually typing into the form and clicking "create") written to test those components.

Actions

Also available in: Atom PDF