Skip to content

Commit

Permalink
networkmanager: fix 'Services' radio button handler in 'Add ports to …
Browse files Browse the repository at this point in the history
…zone' dialog
  • Loading branch information
KKoukiou authored and martinpitt committed Jun 22, 2023
1 parent 393f988 commit d7f9545
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/networkmanager/firewall.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ class AddEditServicesModal extends React.Component {
id="add-services-dialog--services"
value="services"
isChecked={!this.state.custom}
onChange={(_event, value) => this.onToggleType(value)}
onChange={this.onToggleType}
label={_("Services")} />
<Radio name="type"
id="add-services-dialog--ports"
Expand Down
6 changes: 6 additions & 0 deletions test/verify/check-networkmanager-firewall
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@ class TestFirewall(netlib.NetworkCase):
b.click(".zone-section[data-id='public'] .add-services-button")
b.wait_visible(".pf-v5-c-modal-box .service-list #firewall-service-pop3")

# check functionality of radio buttons
b.click("#add-services-dialog input[value='ports']")
b.wait_not_present("#filter-services-input")
b.click("#add-services-dialog input[value='services']")
b.wait_visible("#filter-services-input")

# filter for pop3
b.wait_visible(".pf-v5-c-modal-box .service-list #firewall-service-imap")
b.set_input_text("#filter-services-input", "pop")
Expand Down

0 comments on commit d7f9545

Please sign in to comment.