diff --git a/app/pages/project/vpcs/internet-gateway-edit.tsx b/app/pages/project/vpcs/internet-gateway-edit.tsx index 0301fe869..7a72d8240 100644 --- a/app/pages/project/vpcs/internet-gateway-edit.tsx +++ b/app/pages/project/vpcs/internet-gateway-edit.tsx @@ -51,15 +51,15 @@ function RouteRows({ project, vpc, gateway }: PP.VpcInternetGateway) { return matchingRoutes.map(([router, route]) => ( - {router} - + - {route.name} + {router} + {route.name} )) } diff --git a/test/e2e/vpcs.e2e.ts b/test/e2e/vpcs.e2e.ts index f2e9ef10e..fc8aff4c6 100644 --- a/test/e2e/vpcs.e2e.ts +++ b/test/e2e/vpcs.e2e.ts @@ -408,9 +408,9 @@ test('internet gateway shows proper list of routes targeting it', async ({ page await expect(table.locator('tbody >> tr')).toHaveCount(2) // click on the new-route link to go to the detail page - await sidemodal.getByRole('link', { name: 'new-route' }).click() + await sidemodal.getByRole('link', { name: 'mock-custom-router' }).first().click() // expect to be on the view page await expect(page).toHaveURL( - '/projects/mock-project/vpcs/mock-vpc/routers/mock-custom-router/routes/new-route/edit' + '/projects/mock-project/vpcs/mock-vpc/routers/mock-custom-router' ) })