Fixed group_links expire date not updating in view

This commit is contained in:
Phil Hughes 2016-09-07 10:58:52 +01:00
parent 401b797671
commit ecf7640b28
2 changed files with 2 additions and 2 deletions

View file

@ -1,3 +1,3 @@
: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'));

View file

@ -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