Skip to content

Commit 979b3d5

Browse files
committed
one more check
1 parent f3d75d9 commit 979b3d5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/e2e/instance-networking.e2e.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,10 @@ test('Instance networking tab — NIC table', async ({ page }) => {
8585
await expect(page.getByText('This network interface is primary and cannot')).toBeVisible()
8686

8787
// Delete the non-primary NIC
88-
// although we could use clickRowAction here, it can sometimes be flaky if we don't slow it down a bit
89-
await openRowActions(page, 'my-nic')
90-
await expect(page.getByRole('menuitem', { name: 'Delete' })).toBeEnabled()
91-
await page.getByRole('menuitem', { name: 'Delete' }).click()
88+
await clickRowAction(page, 'my-nic', 'Delete')
9289
await expect(page.getByText('Are you sure you want to delete my-nic?')).toBeVisible()
9390
await page.getByRole('button', { name: 'Confirm' }).click()
91+
await expect(page.getByRole('cell', { name: 'my-nic' })).toBeHidden()
9492

9593
// Now the primary NIC is deletable
9694
await openRowActions(page, 'nic-3')

0 commit comments

Comments
 (0)