Write test for submitting issue as guest
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
cbb64a4f63
commit
304386aa02
|
@ -184,3 +184,15 @@ Feature: Project Issues
|
|||
Then I should see that I am subscribed
|
||||
When I click button "Unsubscribe"
|
||||
Then I should see that I am unsubscribed
|
||||
|
||||
Scenario: I submit new unassigned issue as guest
|
||||
Given I logout
|
||||
Given public project "Community"
|
||||
When I visit project "Community" page
|
||||
And I click link "New Issue"
|
||||
And I should not see assignee field
|
||||
And I should not see milestone field
|
||||
And I should not see labels field
|
||||
And I submit new issue "500 error on profile"
|
||||
Then I should see issue "500 error on profile"
|
||||
|
||||
|
|
|
@ -262,6 +262,24 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
|
|||
end
|
||||
end
|
||||
|
||||
step 'I should not see labels field' do
|
||||
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
|
||||
expect(page).not_to have_content("Milestone")
|
||||
end
|
||||
end
|
||||
|
||||
step 'I should not see assignee field' do
|
||||
within '.issue-form' do
|
||||
expect(page).not_to have_content("Assign to")
|
||||
end
|
||||
end
|
||||
|
||||
def filter_issue(text)
|
||||
fill_in 'issue_search', with: text
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue