Skip to content

Commit 0d28797

Browse files
committed
fix e2e test for change to mock API error messages
1 parent f5e5209 commit 0d28797

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/e2e/network-interface-create.e2e.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ test('can create a NIC with a blank IP address', async ({ page }) => {
6060
await sidebar.getByRole('button', { name: 'Add network interface' }).click()
6161

6262
// it should error out
63-
// todo: improve error message from API
64-
await expect(sidebar.getByText('Unknown server error')).toBeVisible()
63+
await expect(sidebar.getByText('Zod error for body')).toBeVisible()
6564

6665
// make sure the IP address field has spaces in it
6766
await page.getByLabel('IP Address').fill(' ')

0 commit comments

Comments
 (0)