Commit 4587e8aa authored by Mikaël Salson's avatar Mikaël Salson
Browse files

Merge branch 'feature-sc/4206-clics-repetes' into 'dev'

Resolve "Des clics répétés permettent de charger de multiple fois les mêmes données"

Closes #4206

See merge request !641
parents 053b52b5 197c9a63
Pipeline #139092 failed with stages
in 8 minutes and 41 seconds
...@@ -89,7 +89,14 @@ class TestSample < ServerTest ...@@ -89,7 +89,14 @@ class TestSample < ServerTest
form.text_field(:id => "file_info_%d" % i).set("#my_file_%d" % i) form.text_field(:id => "file_info_%d" % i).set("#my_file_%d" % i)
# TODO test other sets # TODO test other sets
end end
form_class = form.input(:type => "submit").class_name
assert( !(form_class.include? "disabledClass") ) # Submit button is not disabled before click
form.input(:type => "submit").click form.input(:type => "submit").click
form_class = form.input(:type => "submit").class_name
assert( (form_class.include? "disabledClass") ) # Submit button should be disabled after click
table = $b.table(:id => "table") table = $b.table(:id => "table")
table.wait_until(&:present?) table.wait_until(&:present?)
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
<div class="clear"></div> <div class="clear"></div>
&nbsp; &nbsp;
<div class="clear"></div> <div class="clear"></div>
<input type="submit" value="Submit samples" class="button2"> <input type="submit" value="Submit samples" class="button2" id="submit_samples_btn" onclick="db.temporarilyDisableClickedLink()">
</form> </form>
<div id="jstree_container" class="modal jstree-container"> <div id="jstree_container" class="modal jstree-container">
......
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