diff --git a/app/views/users/edit.mobile.haml b/app/views/users/edit.mobile.haml index dfec1832ff91da77f62abf25996dafcd1adce88b..900b7b0b51cc28b554ec19dd39dc4670bc9df2a7 100644 --- a/app/views/users/edit.mobile.haml +++ b/app/views/users/edit.mobile.haml @@ -167,9 +167,9 @@ = link_to t('.download_export'), download_profile_user_path, class: "btn btn-success" %h6 = t('.last_exported_at', timestamp: current_user.exported_at) - = link_to t('.request_export_update'), export_profile_user_path, class: "btn" + = link_to t('.request_export_update'), export_profile_user_path, class: "btn", method: :post - else - = link_to t('.request_export'), export_profile_user_path, :class => "btn" + = link_to t('.request_export'), export_profile_user_path, class: "btn", method: :post %br %br - if current_user.exporting_photos @@ -178,9 +178,9 @@ = link_to t('.download_export_photos'), download_photos_user_path, class: "btn btn-success" %h6 = t('.last_exported_at', timestamp: current_user.exported_photos_at) - = link_to t('.request_export_photos_update'), export_photos_user_path, class: "btn" + = link_to t('.request_export_photos_update'), export_photos_user_path, class: "btn", method: :post - else - = link_to t('.request_export_photos'), export_photos_user_path, :class => "btn" + = link_to t('.request_export_photos'), export_photos_user_path, class: "btn", method: :post %hr .span-5.last diff --git a/features/desktop/download_photos.feature b/features/desktop/download_photos.feature index 8a9e63a074b60dd85e0e776ee277c507c1497099..25fb3bcc269a61d1dbd0014b16cf606bb1a0c2a0 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