Delete app E2E (#313)

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Will Chen
2025-06-02 22:06:21 -07:00
committed by GitHub
parent 667fc42af4
commit 1dde72e776
4 changed files with 47 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ export function AppList({ show }: { show?: boolean }) {
) : apps.length === 0 ? (
<div className="py-2 px-4 text-sm text-gray-500">No apps found</div>
) : (
<SidebarMenu className="space-y-1">
<SidebarMenu className="space-y-1" data-testid="app-list">
{apps.map((app) => (
<SidebarMenuItem key={app.id} className="mb-1">
<Button
@@ -74,6 +74,7 @@ export function AppList({ show }: { show?: boolean }) {
? "bg-sidebar-accent text-sidebar-accent-foreground"
: ""
}`}
data-testid={`app-list-item-${app.name}`}
>
<div className="flex flex-col w-full">
<span className="truncate">{app.name}</span>

View File

@@ -192,7 +192,12 @@ export default function AppDetailsPage() {
<div className="absolute top-2 right-2">
<Popover>
<PopoverTrigger asChild>
<Button variant="ghost" size="sm" className="h-7 w-7 p-0">
<Button
variant="ghost"
size="sm"
className="h-7 w-7 p-0"
data-testid="app-details-more-options-button"
>
<MoreVertical className="h-4 w-4" />
</Button>
</PopoverTrigger>