Commit bcfc3766 authored by Robert Lyon's avatar Robert Lyon

Bug 1595364: removing the correct row in js

Rather than relying on loop

Change-Id: I4ff09cdd056cedb927a26fa6c0ba33ccb83d5ebc
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 37c061d1
......@@ -99,8 +99,7 @@
if(instanceArray[i] == id) {
instanceArray.splice(i, 1);
var instances = jQuery('#instanceList').find('div');
jQuery('#instanceDiv' + id).remove();
......@@ -180,7 +179,7 @@
IMPORTANT: do not introduce any new whitespace into the instanceList div.
<div id="instanceList">
<div id="instanceList" class="listrow">
{{foreach $instancelist instance}}
<div class="authInstance" id="instanceDiv{{$instance->id}}">
<label class="authLabel">
......@@ -24,3 +24,13 @@ Scenario: Creating an institution (selenium test)
And I scroll to the base of id "dummySelect"
And I press "Add"
And I press "Submit"
# Moving authentication option
And I press "Edit" in the "table#adminstitutionslist" "css_element"
And I wait "1" seconds
And I scroll to the base of id "dummySelect"
And I follow "Move up"
# Removing the first authentication option
And I click on "Delete" in "Web services" row
And I press "Submit"
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment