Update spec for adding member.
This commit is contained in:
parent
895c3c55dc
commit
245f237dc8
1 changed files with 2 additions and 2 deletions
|
@ -16,12 +16,12 @@ feature 'Projects > Members > Master adds member with expiration date', feature:
|
|||
scenario 'expiration date is displayed in the members list' do
|
||||
page.within ".users-project-form" do
|
||||
select2(new_member.id, from: "#user_ids", multiple: true)
|
||||
fill_in "Access expiration date", with: "2016-08-02"
|
||||
fill_in "Access expiration date", with: 4.days.from_now
|
||||
click_on "Add users to project"
|
||||
end
|
||||
|
||||
page.within ".project_member:first-child" do
|
||||
expect(page).to have_content("Access expires Aug 2, 2016")
|
||||
expect(page).to have_content("Expires in 4 days")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue