fix(tours): restrict permanent deletion to tours workspace

This commit is contained in:
elmocito
2026-10-06 12:52:25 +02:00
parent 04c7491e2a
commit 8739b4c74d
17 changed files with 456 additions and 39 deletions
@@ -61,6 +61,8 @@ describe('MBrowseActionsSheet Tour assignment picker', () => {
const planner = mobilePlanner({ handleAssignToDay });
const { rerender, shell } = renderDayPicker(planner);
expect(screen.queryByRole('button', { name: 'Delete' })).not.toBeInTheDocument();
const dayOne = screen.getByRole('button', { name: /Day one/ });
const dayTwo = screen.getByRole('button', { name: /Day two/ });
expect(dayOne).toBeDisabled();