Skip to content

Commit d395ca5

Browse files
committed
test: wait till nic edit button is loaded
To avoid accidentally misclicking the edit button which rendering is depended on some I/O to succeed.
1 parent a98e2c6 commit d395ca5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/check-machines-nics

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ class TestMachinesNICs(machineslib.VirtualMachinesCase):
228228
def plugAndUnplugNICs():
229229
mac_address = b.text("#vm-subVmTest1-network-1-mac")
230230

231+
# Edit dialog loads asynchronous, wait on it to load first so we don't misclick.
232+
b.wait_visible("#vm-subVmTest1-network-1-edit-dialog:not(:disabled)")
231233
b.wait_in_text("#vm-subVmTest1-network-1-state", "up")
232234
b.wait_in_text("#vm-subVmTest1-iface-1-unplug", "Unplug")
233235

0 commit comments

Comments
 (0)