Docs · Guides

Restoring archived cases

Archiving a test case moves it out of the repository without deleting it. Trash is where every archived case in a project lives until someone restores it (unarchives it) back into its original suite.

Reaching the screen

Open a project’s repository, then open the ⋯ (repository actions) menu in the header and select Trash. The URL is /projects/:projectId/repository/trash.

The paginated listing

Trash lists every archived case in the project — not just a recent slice — most-recently-archived case first. Each row shows the case’s ID and title with its suite underneath, and when it was archived. The pager below the table shows the range you’re viewing and the total count, for example 1–10 of 34. Both the page and the page size persist in the URL, so a shared link or a browser reload lands back on the same page.

If a page number or page size in the URL is invalid or out of range, Trash falls back to the first page at the default size instead of showing an error.

Selecting across pages

Each row has a checkbox, and the header checkbox selects or deselects every row on the current page. The header reflects only what’s visible on that page — it reads empty when nothing on the current page is checked, even if rows are still selected on another page.

As soon as you select a case, a bar appears at the bottom of the screen with the selection count and Unarchive. The count is different from the header: it always reports the whole selection, across every page you’ve touched during this visit. The × at the end of the bar clears the whole selection in one action, regardless of which page you’re on.

Restoring cases

Click Unarchive on a single row, or check one or more rows and click Unarchive in the bar at the bottom to restore several at once. Either way, a confirmation dialog asks you to confirm before anything changes. A restored case returns to its original suite, or to “Cases without suite” if that suite was deleted in the meantime.

Restoring a case that was already restored by someone else (or from another tab) is safe — it simply confirms the case is active, with no error.

If unarchiving the last row on a page succeeds, Trash automatically moves you to the previous page instead of leaving you on an empty one.

Synced cases

A case synced from a .feature file follows its scenario in the file. An archived synced case comes back with the next sync that still includes its scenario. A synced case whose scenario is gone is archived again by the next sync that covers its folder. To keep a synced case archived, remove its scenario from the file. See Syncing feature files from Git.

Automated cases

A case your test automation reports results to comes back on its own: the next report with a result for it restores it. To stop reporting a test, skip or remove it in your test code. Archiving its case does not stop it.

Selection limit

You can select up to 200 cases at once across every page. Above that limit, the bar keeps counting your full selection and says so, but its Unarchive is disabled until you bring the selection back under the limit.