Add cukes for editing relations in modal dialog leads to warning

pull/1439/head
Ion Biziiac 11 years ago
parent d937b05c85
commit 62d255af9f
  1. 19
      features/timelines/timeline_modal_views.feature

@ -105,3 +105,22 @@ Feature: Timeline View Tests
And I click on the div "ui-dialog-closer"
Then I confirm the JS confirm dialog
And I should not see a modal window
@javascript
Scenario: closing the modal window after adding a related work package should not display a warning message
When the role "manager" may have the following rights:
| view_timelines |
| edit_timelines |
| view_work_packages |
| edit_work_packages |
| manage_work_package_relations |
And there is a timeline "Testline" for project "ecookbook"
And I go to the page of the timeline "Testline" of the project called "ecookbook"
And I wait for timeline to load table
And I click on the Planning Element with name "January"
And I click on "Add related work package" in the modal
And I fill in "relation_to_id" with "3" in the modal
And I press "Add" in the modal
And I wait for the AJAX requests to finish
And I click on the div "ui-dialog-closer"
Then I should not see a modal window

Loading…
Cancel
Save