Skip to content

Modern Docker Management, Designed for Everyone

chore(tests): fix tests

Kyle Mendell88797db25b88
diff --git a/frontend/src/lib/components/sheets/create-network-sheet.svelte b/frontend/src/lib/components/sheets/create-network-sheet.svelte
index afd990eca..2e546734b 100644
--- a/frontend/src/lib/components/sheets/create-network-sheet.svelte
+++ b/frontend/src/lib/components/sheets/create-network-sheet.svelte
@@ -150,7 +150,7 @@
<Sheet.Root bind:open onOpenChange={handleOpenChange}>
<Sheet.Content class="p-6">
- <Sheet.Header class="space-y-3 pb-6 border-b">
+ <Sheet.Header data-testid="create-network-dialog-header" class="space-y-3 pb-6 border-b">
<div class="flex items-center gap-3">
<div class="flex size-10 items-center justify-center rounded-lg bg-primary/10 shrink-0">
<Network class="size-5 text-primary" />
diff --git a/tests/spec/images.spec.ts b/tests/spec/images.spec.ts
index a4a169004..7f651bb9a 100644
--- a/tests/spec/images.spec.ts
+++ b/tests/spec/images.spec.ts
@@ -146,7 +146,7 @@ test.describe('Images Page', () => {
});
});
- test('should pull image via dialog', async ({ page }) => {
+ test('should pull image via form', async ({ page }) => {
await page.goto('/images');
await page.waitForLoadState('networkidle');
@@ -156,7 +156,7 @@ test.describe('Images Page', () => {
const imageNameFull = 'ghcr.io/linuxserver/nginx:latest';
const imageName = 'ghcr.io/linuxserver/nginx';
- await page.locator('input[id="image-ref"]').fill(imageName);
+ await page.locator('input[id="image-name-*"]').fill(imageName);
const pullPromise = page.waitForRequest((req) => req.url().includes('/api/images/pull') && req.method() === 'POST');
await page.locator('button[type="submit"]:has-text("Pull Image")').click();
diff --git a/tests/spec/volumes.spec.ts b/tests/spec/volumes.spec.ts
index 8dc9a0449..e357ce2ea 100644
--- a/tests/spec/volumes.spec.ts
+++ b/tests/spec/volumes.spec.ts
@@ -125,7 +125,7 @@ test.describe('Volumes Page', () => {
await expect(page.getByRole('dialog')).toBeVisible();
const volumeName = `test-volume-${Date.now()}`;
- await page.locator('input[id="volume-name"]').fill(volumeName);
+ await page.locator('input[id="volume-name-*"]').fill(volumeName);
const createPromise = page.waitForRequest((req) => req.url().includes('/api/volumes') && req.method() === 'POST');