Skip to content

Commit

Permalink
test: Fix check-machines and check-ovirt for React
Browse files Browse the repository at this point in the history
Use Browser.set_input_text as appropriate.
  • Loading branch information
mvollmer authored and martinpitt committed Sep 19, 2018
1 parent 9e535ac commit d5101f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/verify/check-ovirt
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,9 @@ class TestOVirtMachines(MachineCase):
b.is_present(".machines-vcpu-caution")

# Set new socket value
b.set_val("#socketsInput", "2")
b.set_val("#coresInput", "1")
b.set_val("#threadsInput", "2")
b.set_input_text("#socketsInput", "2")
b.set_input_text("#coresInput", "1")
b.set_input_text("#threadsInput", "2")

b.wait_val("#machines-vcpu-count-field", "4")

Expand Down
6 changes: 3 additions & 3 deletions test/verify/machineslib.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,8 @@ def testVCPU(self):
b.wait_val("#machines-vcpu-max-field", "1")

# Set new values
b.set_val("#machines-vcpu-max-field", "4")
b.set_val("#machines-vcpu-count-field", "3")
b.set_input_text("#machines-vcpu-max-field", "4")
b.set_input_text("#machines-vcpu-count-field", "3")

# Set new socket value
b.wait_present("#socketsSelect li[data-value=2] a")
Expand Down Expand Up @@ -774,7 +774,7 @@ def testVCPU(self):

b.wait_present(".vcpu-detail-modal-table")

b.set_val("#machines-vcpu-count-field", "2")
b.set_input_text("#machines-vcpu-count-field", "2")

# Set new socket value
b.wait_present("#coresSelect li[data-value=2] a")
Expand Down

0 comments on commit d5101f3

Please sign in to comment.