Skip to content

Commit

Permalink
test: validate the actual helpertext text
Browse files Browse the repository at this point in the history
Instead of asserting it exists, validate that the correct text is shown.
  • Loading branch information
jelly committed Nov 7, 2024
1 parent 124f66b commit 7a9e642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/check-machines-filesystems
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ class TestMachinesFilesystems(machineslib.VirtualMachinesCase):

b.set_input_text("#vm-subVmTest1-filesystems-modal-mountTag", "test")
b.click("#vm-subVmTest1-filesystems-modal-add")
b.wait_visible("#vm-subVmTest1-filesystems-modal-source-helper")
b.wait_text("#vm-subVmTest1-filesystems-modal-source-helper", "Source must not be empty")
b.wait_not_present("#vm-subVmTest1-filesystems-modal-mountTag-helper")

b.set_input_text("#vm-subVmTest1-filesystems-modal-mountTag", "")
b.set_file_autocomplete_val("#vm-subVmTest1-filesystems-modal-source-group", "/tmp/")
b.click("#vm-subVmTest1-filesystems-modal-add")
b.wait_not_present("#vm-subVmTest1-filesystems-modal-source-helper")
b.wait_visible("#vm-subVmTest1-filesystems-modal-mountTag-helper")
b.wait_text("#vm-subVmTest1-filesystems-modal-mountTag-helper", "Mount tag must not be empty")

b.click("#vm-subVmTest1-filesystems-modal-cancel")

Expand Down

0 comments on commit 7a9e642

Please sign in to comment.