Merge pull request #9 from finnlabs/feature/rails3_add_my_project_page_blocks

Feature/rails3 add my project page blocks
tests run through, both with and without the openproject-my_project_page, good to go.
pull/6827/head
Stefan Frank 11 years ago
commit 9b8eef88f8
  1. 4
      CHANGELOG.md
  2. 1
      config/locales/de.yml
  3. 1
      config/locales/en.yml
  4. 25
      features/documents_widget.feature

@ -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

@ -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"

@ -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"

@ -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
Loading…
Cancel
Save