Skip to content

Commit b8274a1

Browse files
committed
feat: Add accessibility labels to endpoint action buttons and improve e2e delete test robustness.
1 parent 598bb75 commit b8274a1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

apps/console-e2e/src/endpoints.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ test.describe('Endpoints Management', () => {
136136
await card.hover();
137137

138138
const deleteButton = card.locator('button').nth(1); // Assuming second button is delete (Trash2)
139-
await deleteButton.click();
139+
await deleteButton.click({ force: true });
140140

141141
// Verify endpoint gone
142142
await expect(page.locator(`text=${endpointName}`)).not.toBeVisible();

apps/console/src/routes/endpoints.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ function EndpointCard({ endpoint }: { endpoint: any }) {
141141
size="icon-sm"
142142
variant="ghost"
143143
className="h-8 w-8 text-muted-foreground hover:text-primary"
144+
aria-label="Rename endpoint"
144145
onClick={(e) => {
145146
e.stopPropagation();
146147
setIsEditing(true);
@@ -153,6 +154,7 @@ function EndpointCard({ endpoint }: { endpoint: any }) {
153154
size="icon-sm"
154155
variant="ghost"
155156
className="h-8 w-8 text-muted-foreground hover:text-destructive"
157+
aria-label="Delete endpoint"
156158
onClick={handleDelete}
157159
>
158160
<Trash2 className="w-3.5 h-3.5" />

0 commit comments

Comments
 (0)