Commit fa97a5a5 authored by Sayed Abdelhaleem's avatar Sayed Abdelhaleem Committed by Jonne Haß

Issue #6662: fix refresh my photos routing error

closes #6667
parent 2f66c7c8
......@@ -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
......
......@@ -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
......
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