Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/e2e/firewall-rules.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
expect,
expectRowVisible,
fillAndSelectComboboxOption,
fillNumberInput,
selectOption,
test,
type Locator,
Expand Down Expand Up @@ -41,7 +42,7 @@ test('can create firewall rule', async ({ page }) => {
await page.fill('input[name=name]', 'my-new-rule')
await page.getByRole('radio', { name: 'Outbound' }).click()

await page.fill('role=textbox[name="Priority"]', '5')
await fillNumberInput(page.getByRole('textbox', { name: 'Priority' }), '5')

// add targets with overlapping names and types to test delete
const targets = page.getByRole('table', { name: 'Targets' })
Expand Down Expand Up @@ -583,7 +584,7 @@ test('name conflict error on edit', async ({ page }) => {
await nameField.fill('allow-icmp')

// changing a value _without_ changing the name is allowed
await page.getByRole('textbox', { name: 'Priority' }).fill('37')
await fillNumberInput(page.getByRole('textbox', { name: 'Priority' }), '37')
await page.getByRole('button', { name: 'Update rule' }).click()
await expect(error).toBeHidden()
await expectRowVisible(page.getByRole('table'), { Name: 'allow-icmp', Priority: '37' })
Expand Down
Loading