Commit 53e64926 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Test if we're showing the modal and has the right email

parent 69b5c92e
...@@ -524,6 +524,25 @@ describe 'Issues', feature: true do ...@@ -524,6 +524,25 @@ describe 'Issues', feature: true do
end end
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 describe 'due date' do
context 'update due on issue#show', js: true do context 'update due on issue#show', js: true do
let(:issue) { create(:issue, project: project, author: @user, assignee: @user) } let(:issue) { create(:issue, project: project, author: @user, assignee: @user) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment