diff --git a/CHANGELOG.md b/CHANGELOG.md index 28097193e9..8e9f6a0851 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ # Changelog +* `#1875` Added document block to my project page + ## 1.0.0.pre3 -* renamed the projectscoped-documents back to just "documents" + * Removed hard wiring to specific core version ## 1.0.0.pre2 diff --git a/config/locales/de.yml b/config/locales/de.yml index 82a24510a5..869500681b 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -11,6 +11,7 @@ de: label_document_added: "Dokument hinzugefĆ¼gt" label_document_new: "Neues Dokument" label_document_plural: "Dokumente" + label_documents: "Dokumente" permission_manage_documents: "Dokumente verwalten" permission_view_documents: "Dokumente ansehen" diff --git a/config/locales/en.yml b/config/locales/en.yml index 37bc34fe9c..a9c2d58d9f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -11,6 +11,7 @@ en: label_document_added: "Document added" label_document_new: "New document" label_document_plural: "Documents" + label_documents: "Documents" permission_manage_documents: "Manage documents" permission_view_documents: "View documents" diff --git a/features/documents_widget.feature b/features/documents_widget.feature new file mode 100644 index 0000000000..74febd361b --- /dev/null +++ b/features/documents_widget.feature @@ -0,0 +1,25 @@ +Feature: Adding the document widget to personalisable pages + + Background: + Given there is 1 project with the following: + | name | project1 | + And I am already Admin + + @javascript + Scenario: Adding a "Documents" widget to the my project page + Given the plugin "openproject_my_project_page" is loaded + And I am on the project "project1" overview personalization page + When I select "Documents" from the available widgets drop down + And I wait for the AJAX requests to finish + Then the "Documents" widget should be in the hidden block + And "Documents" should be disabled in the my project page available widgets drop down + + @javascript + @firebug + Scenario: Adding a "Documents" widget to the my page + And I am on the My page personalization page + When I select "Documents" from the available widgets drop down + And I click on "Add" + And I wait for the AJAX requests to finish + Then the "Documents" widget should be in the top block + And "Documents" should be disabled in the my page available widgets drop down