Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
charliepark committed Aug 19, 2024
1 parent 7e0174e commit 1137eb5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/e2e/firewall-rules.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1137eb5

Please sign in to comment.