Commit 89732c94 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

test_browser.rb: renaming clone can work if we wait a little.

Because of 25a65b77, when focussing out of the input #new_name,
the whole model is updated within 500ms. But the previous test
(which renames using click) did focus out the input, therefore
the model is reupdated while we are performing the current test.

So do we really need to reupdate the whole model after 500ms when
focussing out the input? If yes, do we have a way to test if the
model has been updated (so that we can wait 'till it is updated).
That would be cleaner than waiting 1s at the beginning of the test.
parent 58fffc99
......@@ -148,8 +148,7 @@ class Browser < MiniTest::Test
end
def test_04_rename_clone_by_enter
return ### TODO
sleep 1
clone_name = $b.clone_info('24')[:name]
clone_name.double_click
......
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