Skip to content

Commit

Permalink
test: add a test for the tooltip in advanced search
Browse files Browse the repository at this point in the history
Add pixel tests for the advanced search panel and test that the tooltip
is clickable.
  • Loading branch information
jelly committed Jul 31, 2024
1 parent 845fab4 commit 5e1784e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/verify/check-system-journal
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,17 @@ ExecStart=/bin/sh -c 'sleep 5; for s in $(seq 10); do echo SLOW; sleep 0.1; done
b.click("#journal-grep button[aria-label='Open advanced search']")
b.wait_not_present("#journal-cmd-copy")

# Test popover in advanced search
b.click("#journal-grep button[aria-label='Open advanced search']")
b.assert_pixels(".pf-v5-c-panel", "logs-filter-panel", skip_layouts=["mobile"])

b.click(".pf-v5-c-form__group:contains('Since') button")
b.wait_text(".pf-v5-c-popover__title-text", "Start showing entries on or newer than the specified date.")
b.click(".pf-v5-c-popover__close button")
b.wait_not_present(".pf-v5-c-popover")
b.click("#journal-grep button[aria-label='Open advanced search']")
b.wait_not_present("#journal-cmd-copy")

# Test following
m.execute("logger --tag test-stream Message 1")
m.execute("logger --tag test-stream Message 2")
Expand All @@ -251,6 +262,7 @@ ExecStart=/bin/sh -c 'sleep 5; for s in $(seq 10); do echo SLOW; sleep 0.1; done
# Test message filtering

b.focus("#journal-grep input")

b.input_text("1")
b.click("#journal-grep button[aria-label=Search]")

Expand Down

0 comments on commit 5e1784e

Please sign in to comment.