Commit 2883f9fb authored by Ryan Herbert's avatar Ryan Herbert

test_pre_process.rb use checkbox method and set?

parent 4c1e2949
Pipeline #41333 failed with stages
in 4 minutes and 22 seconds
......@@ -101,8 +101,8 @@ class TestPreProcess < ServerTest
list = $b.table(:id => "table")
list.wait_until_present
line = table.td(:text => "public").parent
checkbox = line.cells.last.input(:type => "checkbox")
assert(checkbox.checked == False)
checkbox = line.cells.last.checkbox
assert(checkbox.set? == False)
checkbox.click
# reload page to check if permissions are persistant.
......@@ -112,6 +112,6 @@ class TestPreProcess < ServerTest
list.wait_until_present
line = table.td(:text => "public").parent
checkbox = line.cells.last.input(:type => "checkbox")
assert(checkbox.checked == True)
assert(checkbox.set?)
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment