diff --git a/app/views/users/_edit.haml b/app/views/users/_edit.haml index 9ffbbfab1..e9d99e3ff 100644 --- a/app/views/users/_edit.haml +++ b/app/views/users/_edit.haml @@ -197,7 +197,7 @@ - if current_user.exporting_photos .export-in-progress= t(".export_photos_in_progress") - elsif current_user.exported_photos_file.present? - = link_to t(".request_export_photos_update"), export_photos_user_path, + = link_to t(".request_export_photos_update"), export_photos_user_path, method: :post, class: "btn btn-default btn-block" .small-horizontal-spacer = link_to t(".download_export_photos"), download_photos_user_path, class: "btn btn-success btn-block" diff --git a/features/desktop/download_photos.feature b/features/desktop/download_photos.feature index 8a9e63a07..25fb3bcc2 100644 --- a/features/desktop/download_photos.feature +++ b/features/desktop/download_photos.feature @@ -10,6 +10,16 @@ Feature: Download Photos Then I should see a flash message indicating success And I should see a flash message containing "We are currently processing your photos" + Scenario: Refresh my photos + Given I am signed in + When I did request my photos + And I click on my name in the header + When I follow "Settings" + Then I should be on my account settings page + When I follow "Refresh my photos" + Then I should see a flash message indicating success + And I should see a flash message containing "We are currently processing your photos" + Scenario: Download my photos Given I am signed in When I did request my photos