Commit 245f237d authored by Adam Niedzielski's avatar Adam Niedzielski

Update spec for adding member.

parent 895c3c55
...@@ -16,12 +16,12 @@ feature 'Projects > Members > Master adds member with expiration date', feature: ...@@ -16,12 +16,12 @@ feature 'Projects > Members > Master adds member with expiration date', feature:
scenario 'expiration date is displayed in the members list' do scenario 'expiration date is displayed in the members list' do
page.within ".users-project-form" do page.within ".users-project-form" do
select2(new_member.id, from: "#user_ids", multiple: true) 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" click_on "Add users to project"
end end
page.within ".project_member:first-child" do 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 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