Commit ecf7640b authored by Phil Hughes's avatar Phil Hughes

Fixed group_links expire date not updating in view

parent 401b7976
:plain :plain
var $listItem = $('#{escape_javascript(render('shared/members/group', group_link: @group_link, group: @group_link.group))}'); var $listItem = $('#{escape_javascript(render('shared/members/group', group_link: @group_link, group: @group_link.group))}');
$("##{dom_id(@group_link.group)} .list-item-name").replaceWith($listItem.find('.list-item-name')); $("#group_member_#{@group_link.id} .list-item-name").replaceWith($listItem.find('.list-item-name'));
...@@ -30,7 +30,7 @@ feature 'Projects > Members > Anonymous user sees members', feature: true, js: t ...@@ -30,7 +30,7 @@ feature 'Projects > Members > Anonymous user sees members', feature: true, js: t
fill_in "member_expires_at_#{group.id}", with: tomorrow.strftime("%F") fill_in "member_expires_at_#{group.id}", with: tomorrow.strftime("%F")
wait_for_ajax wait_for_ajax
page.within(first('li.member')) do page.within(find('li.group_member')) do
expect(page).to have_content('Expires in') expect(page).to have_content('Expires in')
end end
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