Skip to content

Commit

Permalink
test: Ensure expected state in createAndVerifyVirtInstallArgsUnattend…
Browse files Browse the repository at this point in the history
…ed()

Similar to what we do in other scenarios, make sure that the VM is in
the expected state after creating the VM.

This does not fix any flake, it's just a good additional check.
  • Loading branch information
martinpitt authored and mvollmer committed Jul 16, 2024
1 parent 7269a96 commit 4220d14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/check-machines-create
Original file line number Diff line number Diff line change
Expand Up @@ -1300,6 +1300,12 @@ vnc_password= "{vnc_passwd}"
else:
self.browser.click(".pf-v5-c-modal-box__footer button:contains(Create and edit)")
self.browser.wait_not_present("#create-vm-dialog")

if self.create_and_run:
self.browser.wait_text(f"#vm-{self.name}-{self.connection}-state", "Running")
else:
self.browser.wait_text(f"#vm-{self.name}-{self.connection}-state", "Shut off")

if self.storage_pool != NO_STORAGE:
self.goToVmPage(self.name)
self.browser.wait_text(f"#vm-{self.name}-disks-vda-bus", "virtio")
Expand Down

0 comments on commit 4220d14

Please sign in to comment.