diff --git a/app/pages/system/networking/IpPoolPage.tsx b/app/pages/system/networking/IpPoolPage.tsx
index a0b0350a4..bbd03b3fe 100644
--- a/app/pages/system/networking/IpPoolPage.tsx
+++ b/app/pages/system/networking/IpPoolPage.tsx
@@ -208,7 +208,7 @@ function IpRangesTable() {
const makeRangeActions = useCallback(
({ range }: IpPoolRange): MenuAction[] => [
{
- label: 'Remove',
+ label: 'Delete',
className: 'destructive',
onActivate: () =>
confirmAction({
@@ -217,11 +217,11 @@ function IpRangesTable() {
path: { pool },
body: range,
}),
- errorTitle: 'Could not remove range',
- modalTitle: 'Confirm remove range',
+ errorTitle: 'Could not delete range',
+ modalTitle: 'Confirm delete range',
modalContent: (
- Are you sure you want to remove range{' '}
+ Are you sure you want to delete range{' '}
{range.first}–{range.last}
{' '}
diff --git a/test/e2e/ip-pools.e2e.ts b/test/e2e/ip-pools.e2e.ts
index df0de16b0..1002186f6 100644
--- a/test/e2e/ip-pools.e2e.ts
+++ b/test/e2e/ip-pools.e2e.ts
@@ -258,22 +258,22 @@ test('IP range validation and add', async ({ page }) => {
})
})
-test('remove range', async ({ page }) => {
+test('delete range', async ({ page }) => {
await page.goto('/system/networking/ip-pools/ip-pool-1')
const table = page.getByRole('table')
await expectRowVisible(table, { First: '10.0.0.20', Last: '10.0.0.22' })
await expect(table.getByRole('row')).toHaveCount(3) // header + 2 rows
- await clickRowAction(page, '10.0.0.20', 'Remove')
+ await clickRowAction(page, '10.0.0.20', 'Delete')
- const confirmModal = page.getByRole('dialog', { name: 'Confirm remove range' })
+ const confirmModal = page.getByRole('dialog', { name: 'Confirm delete range' })
await expect(confirmModal.getByText('range 10.0.0.20–10.0.0.22')).toBeVisible()
await page.getByRole('button', { name: 'Cancel' }).click()
await expect(confirmModal).toBeHidden()
- await clickRowAction(page, '10.0.0.20', 'Remove')
+ await clickRowAction(page, '10.0.0.20', 'Delete')
await confirmModal.getByRole('button', { name: 'Confirm' }).click()
await expect(table.getByRole('cell', { name: '10.0.0.20' })).toBeHidden()
@@ -329,8 +329,8 @@ test('no ranges means no utilization bar', async ({ page }) => {
await expect(page.getByText('IPv4(IPs)')).toBeVisible()
await expect(page.getByText('IPv6(IPs)')).toBeVisible()
- await clickRowAction(page, '10.0.0.50', 'Remove')
- const confirmModal = page.getByRole('dialog', { name: 'Confirm remove range' })
+ await clickRowAction(page, '10.0.0.50', 'Delete')
+ const confirmModal = page.getByRole('dialog', { name: 'Confirm delete range' })
await confirmModal.getByRole('button', { name: 'Confirm' }).click()
await expect(page.getByText('IPv4(IPs)')).toBeHidden()