Use page.within in tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
d5947ada44
commit
c9f21c9691
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue