diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-25 16:38:14 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-25 16:38:14 +0200 |
commit | 304386aa02647a8079c6df5706786fbf89c4ad72 (patch) | |
tree | 5916e2986d65a8adc495a58994fb7568d9c4b083 /features/steps | |
parent | cbb64a4f6344cd0719d048ba41147a58c0cc2065 (diff) | |
download | gitlab-ce-304386aa02647a8079c6df5706786fbf89c4ad72.tar.gz |
Write test for submitting issue as guest
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'features/steps')
-rw-r--r-- | features/steps/project/issues/issues.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/features/steps/project/issues/issues.rb b/features/steps/project/issues/issues.rb index 6873c043e19..c3b34ab3f19 100644 --- a/features/steps/project/issues/issues.rb +++ b/features/steps/project/issues/issues.rb @@ -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 |