From 87c1e4edf5b4af6d8f3996ac16445732c5eafb46 Mon Sep 17 00:00:00 2001 From: DAQEM Date: Wed, 10 Jan 2024 22:27:25 +0100 Subject: [PATCH] fixed id --- Services/AdminWebApp/src/lib/components/DevicesTable.svelte | 6 +++++- Services/AdminWebApp/tests/device/add/add_device_e2e.ts | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Services/AdminWebApp/src/lib/components/DevicesTable.svelte b/Services/AdminWebApp/src/lib/components/DevicesTable.svelte index 19d5520..33f7a65 100644 --- a/Services/AdminWebApp/src/lib/components/DevicesTable.svelte +++ b/Services/AdminWebApp/src/lib/components/DevicesTable.svelte @@ -44,7 +44,11 @@ {/if} {#each devices as device, i} - toggleRow(i)} class="cursor-pointer" id="{device.ipAddress?.replace(/\./g, '-')}"> + toggleRow(i)} + class="cursor-pointer" + id={device.ipAddress?.replace(/\./g, '')} + > { test('Device should be added to table', async ({ page }) => { await page.goto('/device'); - const device = await page.innerText(`#${ipAddress.replace(/\./g, '-')} > td:nth-child(3)`); + const device = await page.innerText(`#${ipAddress.replace(/\./g, '')} > td:nth-child(3)`); expect(device).toBe(ipAddress); }); }); \ No newline at end of file