Fixed group_links expire date not updating in view
This commit is contained in:
parent
401b797671
commit
ecf7640b28
2 changed files with 2 additions and 2 deletions
|
@ -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'));
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue