From 1137eb5374077128e00cefbd884f2d0806b2c8e7 Mon Sep 17 00:00:00 2001 From: Charlie Park Date: Mon, 19 Aug 2024 11:07:55 -0700 Subject: [PATCH] update tests --- test/e2e/firewall-rules.e2e.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/e2e/firewall-rules.e2e.ts b/test/e2e/firewall-rules.e2e.ts index fcf0b6c2f..498896d84 100644 --- a/test/e2e/firewall-rules.e2e.ts +++ b/test/e2e/firewall-rules.e2e.ts @@ -157,11 +157,17 @@ test('firewall rule form targets table', async ({ page }) => { await addButton.click() await expectRowVisible(targets, { Type: 'vpc', Value: 'def' }) + // select the target type as VPC Subnet await page.getByRole('button', { name: 'Target type' }).click() await page.getByRole('option', { name: 'VPC Subnet' }).click() - await page.getByRole('textbox', { name: 'Subnet name' }).fill('abc') + // select the VPC + await page.getByLabel('VPC', { exact: true }).nth(0).click() + await page.getByRole('option', { name: 'mock-vpc' }).click() + // select the subnet + await page.getByRole('combobox', { name: 'Subnet name' }).nth(0).click() + await page.getByRole('option', { name: 'mock-subnet' }).click() await addButton.click() - await expectRowVisible(targets, { Type: 'subnet', Value: 'abc' }) + await expectRowVisible(targets, { Type: 'subnet', Value: 'mock-subnet' }) await page.getByRole('button', { name: 'Target type' }).click() await page.getByRole('option', { name: 'IP', exact: true }).click()