Use page.within in tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-06-26 16:01:02 +02:00
parent d5947ada44
commit c9f21c9691
No known key found for this signature in database
GPG key ID: 161B5D6A44D3D88A

View file

@ -263,19 +263,19 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
end
step 'I should not see labels field' do
within '.issue-form' do
page.within '.issue-form' do
expect(page).not_to have_content("Labels")
end
end
step 'I should not see milestone field' do
within '.issue-form' do
page.within '.issue-form' do
expect(page).not_to have_content("Milestone")
end
end
step 'I should not see assignee field' do
within '.issue-form' do
page.within '.issue-form' do
expect(page).not_to have_content("Assign to")
end
end