diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-07-26 19:00:36 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-07-26 19:00:36 +0800 |
commit | 53e64926b45aca0d66e19815398434d40ed13b1c (patch) | |
tree | 8e1f7c9600ffe55dee6fc3b65a3dd1edf78b606c /spec/features/issues_spec.rb | |
parent | 69b5c92e608924684cb2bad07cd56bd33f100bf2 (diff) | |
download | gitlab-ce-53e64926b45aca0d66e19815398434d40ed13b1c.tar.gz |
Test if we're showing the modal and has the right email
Diffstat (limited to 'spec/features/issues_spec.rb')
-rw-r--r-- | spec/features/issues_spec.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index d51c9abea19..af5e90dc803 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -524,6 +524,25 @@ describe 'Issues', feature: true do end end + describe 'new issue by email' do + context 'find the modal for new issue by email', js: true do + before do + stub_incoming_email_setting(enabled: true, address: "p+%{key}@gl.ab") + + visit namespace_project_issues_path(project.namespace, project) + click_button('Email a new issue') + end + + it 'has a button to show the email address' do + page.within '#issue-email-modal' do + email = project.new_issue_address(@user) + + expect(page).to have_selector("input[value='#{email}']") + end + end + end + end + describe 'due date' do context 'update due on issue#show', js: true do let(:issue) { create(:issue, project: project, author: @user, assignee: @user) } |