Skip to content
This repository was archived by the owner on Feb 14, 2026. It is now read-only.

Commit 979b357

Browse files
Fix getPageHeaderAction delete action visibility check
1 parent cd726ea commit 979b357

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/TestRenderers/Resources/Pages/Edit/CanDeleteRecordTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ class CanDeleteRecordTest extends BaseTest
1111

1212
public function getShouldRender(): bool
1313
{
14-
return true;
15-
/* TODO: We can't grab the delete action because it expects a record */
16-
/* $action = $this->getPageHeaderAction(page: 'edit', action: 'delete'); */
17-
/* return $action instanceof Action && $action->isVisible(); */
14+
return $this->getPageHeaderAction(page: 'edit', action: 'delete') instanceof Action;
15+
/* TODO(fixme): We can't grab the delete action visiblity because it expects a record */
16+
/* $action->isVisible(); */
1817
}
1918
}

0 commit comments

Comments
 (0)