Skip to content

Commit

Permalink
src: update input filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jkozol committed Feb 9, 2024
1 parent d6aeac8 commit c3ca4a0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/Toolbar/BlueprintToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const BlueprintToolbar = (props) => {
aria-label={intl.formatMessage({
defaultMessage: "Blueprints search input",
})}
onChange={onInputChange}
onChange={(e, val) => onInputChange(val)}
value={props.filterValue}
onClear={() => onInputChange("")}
/>
Expand Down
4 changes: 2 additions & 2 deletions test/verify/check-blueprintList
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TestBlueprintList(composerlib.ComposerCase):
b.wait_visible("tr[data-testid='openssh-server']")
b.wait_not_present("tr[data-testid='httpd-server']")
# clear filter
b.click(".pf-c-text-input-group__utilities button")
b.click(".pf-v5-c-text-input-group__utilities button")
b.wait_visible("tr[data-testid='httpd-server']")

# filter "httpd" will show three matched blueprints
Expand All @@ -36,7 +36,7 @@ class TestBlueprintList(composerlib.ComposerCase):
b.is_present("tr[data-testid='openssh-server-with-hostname']")
b.is_present("tr[data-testid='openssh-server-with-user']")
# clear filter
b.click(".pf-c-text-input-group__utilities button")
b.click(".pf-v5-c-text-input-group__utilities button")
b.is_present("tr[data-testid='openssh-server']")

def testSort(self):
Expand Down
7 changes: 4 additions & 3 deletions test/verify/check-blueprintWizard
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ class TestBlueprintWizard(composerlib.ComposerCase):
b.wait_visible("#main")

b.click("button:contains('Create blueprint')")
b.wait_in_text(".pf-c-wizard__header", "Create blueprint")
b.wait_in_text(".pf-v5-c-wizard__header", "Create blueprint")

b.set_input_text("input[id='blueprint.name']", "testName")
b.set_input_text("input[id='blueprint.description']", "testDescription")
b.click("input[name='blueprint.name']")
b.set_input_text("input[name='blueprint.name']", "testName")
b.set_input_text("input[name='blueprint.description']", "testDescription")
b.click("button:contains('Next')")

# select openssh-server
Expand Down
4 changes: 2 additions & 2 deletions test/verify/check-imageWizard
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ class TestImageWizard(composerlib.ComposerCase):

# Create blueprint
b.click("tr[data-testid=httpd-server] button[aria-label='Create image']")
b.wait_in_text(".pf-c-wizard__main", "httpd-server")
b.wait_in_text(".pf-v5-c-wizard__main", "httpd-server")
time.sleep(1)
# select qcow2 image type and keep default size
b.select_PF4("#image-output-select-toggle", "QEMU Image (.qcow2)")
b.click("button:contains('QEMU Image (.qcow2)'")
b.click("button:contains('Next')")

# Create image
Expand Down

0 comments on commit c3ca4a0

Please sign in to comment.