Upstream sync
This commit is contained in:
@@ -197,13 +197,13 @@ feature "User managing medical releases" do
|
||||
expect(page).to have_css('i.fa.fa-check-circle.fa-2x', count: 1)
|
||||
end
|
||||
|
||||
scenario "Download All is visible" do
|
||||
scenario "Download button is visible" do
|
||||
create(:medical_release_with_contract_template, :native, project: project)
|
||||
create(:medical_release_with_contract_template, :non_native, project: project)
|
||||
|
||||
visit project_medical_releases_path(project)
|
||||
|
||||
expect(page).to have_content download_all_button
|
||||
expect(page).to have_content download_button
|
||||
end
|
||||
|
||||
scenario "Download action in Manage menu is visible" do
|
||||
@@ -285,7 +285,7 @@ feature "User managing medical releases" do
|
||||
|
||||
visit project_medical_releases_path(project)
|
||||
|
||||
expect(page).not_to have_content download_all_button
|
||||
expect(page).not_to have_content download_button
|
||||
end
|
||||
|
||||
scenario "Download action in Manage menu is not visible" do
|
||||
@@ -329,7 +329,7 @@ feature "User managing medical releases" do
|
||||
|
||||
visit project_medical_releases_path(project)
|
||||
|
||||
expect(page).not_to have_content download_all_button
|
||||
expect(page).not_to have_content download_button
|
||||
end
|
||||
|
||||
scenario "Download action in Manage menu is not visible" do
|
||||
@@ -362,8 +362,8 @@ feature "User managing medical releases" do
|
||||
|
||||
private
|
||||
|
||||
def download_all_button
|
||||
'Download All'
|
||||
def download_button
|
||||
'Download'
|
||||
end
|
||||
|
||||
def download_action
|
||||
|
||||
Reference in New Issue
Block a user