Skip to content

Commit d780e5d

Browse files
committed
fix casing on floating IP attach/detach toasts
1 parent 784e8aa commit d780e5d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

app/pages/project/floating-ips/FloatingIpsPage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ import { pb } from '~/util/path-builder'
3939
const EmptyState = () => (
4040
<EmptyMessage
4141
icon={<Networking24Icon />}
42-
title="No Floating IPs"
43-
body="You need to create a Floating IP to be able to see it here"
42+
title="No floating IPs"
43+
body="You need to create a floating IP to be able to see it here"
4444
buttonText="New Floating IP"
4545
buttonTo={pb.floatingIpsNew(useProjectSelector())}
4646
/>
@@ -73,7 +73,7 @@ export function FloatingIpsPage() {
7373
const floatingIpDetach = useApiMutation('floatingIpDetach', {
7474
onSuccess() {
7575
queryClient.invalidateQueries('floatingIpList')
76-
addToast({ content: 'Your Floating IP has been detached' })
76+
addToast({ content: 'Your floating IP has been detached' })
7777
},
7878
onError: (err) => {
7979
addToast({ title: 'Error', content: err.message, variant: 'error' })
@@ -82,7 +82,7 @@ export function FloatingIpsPage() {
8282
const deleteFloatingIp = useApiMutation('floatingIpDelete', {
8383
onSuccess() {
8484
queryClient.invalidateQueries('floatingIpList')
85-
addToast({ content: 'Your Floating IP has been deleted' })
85+
addToast({ content: 'Your floating IP has been deleted' })
8686
},
8787
})
8888

test/e2e/floating-ip-create.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717

1818
const floatingIpsPage = '/projects/mock-project/floating-ips'
1919

20-
test('can create a Floating IP', async ({ page }) => {
20+
test('can create a floating IP', async ({ page }) => {
2121
await page.goto(floatingIpsPage)
2222
await page.locator('text="New Floating IP"').click()
2323

@@ -68,7 +68,7 @@ test('can create a Floating IP', async ({ page }) => {
6868
})
6969
})
7070

71-
test('can detach and attach a Floating IP', async ({ page }) => {
71+
test('can detach and attach a floating IP', async ({ page }) => {
7272
// check floating IP is visible on instance detail
7373
await page.goto('/projects/mock-project/instances/db1')
7474
await expect(page.getByText('192.168.64.64')).toBeVisible()

0 commit comments

Comments
 (0)