kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
129 lines
5.4 KiB
129 lines
5.4 KiB
Feature: Show meetings
|
|
|
|
Background:
|
|
Given there is 1 project with the following:
|
|
| identifier | dingens |
|
|
| name | dingens |
|
|
And the project "dingens" uses the following modules:
|
|
| meetings |
|
|
And there is 1 user with:
|
|
| login | alice |
|
|
| language | en |
|
|
And there is 1 user with:
|
|
| login | bob |
|
|
And there is a role "user"
|
|
And the user "alice" is a "user" in the project "dingens"
|
|
And there is 1 meeting in project "dingens" created by "bob" with:
|
|
| title | Bobs Meeting |
|
|
Given I am already logged in as "alice"
|
|
|
|
Scenario: Navigate to a meeting page
|
|
Given the role "user" may have the following rights:
|
|
| view_meetings |
|
|
When I go to the Meetings page for the project called "dingens"
|
|
And I follow "Bobs Meeting"
|
|
Then I should be on the show page for the meeting called "Bobs Meeting"
|
|
|
|
Scenario: Navigate to a meeting page with an open agenda
|
|
Given the role "user" may have the following rights:
|
|
| view_meetings |
|
|
|
|
When I go to the show page for the meeting called "Bobs Meeting"
|
|
|
|
Then I should see "Agenda" within ".meeting_agenda" # I should see the Agenda tab
|
|
And I should see "No data to display" within ".meeting_agenda"
|
|
|
|
@javascript
|
|
Scenario: Navigate to a meeting page with a closed agenda
|
|
Given the role "user" may have the following rights:
|
|
| view_meetings |
|
|
And the meeting "Bobs Meeting" has 1 agenda with:
|
|
| locked | true |
|
|
|
|
When I go to the show page for the meeting called "Bobs Meeting"
|
|
|
|
Then I should see "Minutes" within ".meeting_minutes" # I should see the Minutes tab
|
|
And I should see "No data to display" within ".meeting_minutes"
|
|
|
|
@javascript
|
|
Scenario: Navigate to a meeting page with an open agenda and the permission to edit the agenda
|
|
Given the role "user" may have the following rights:
|
|
| view_meetings |
|
|
| create_meeting_agendas |
|
|
|
|
When I go to the show page for the meeting called "Bobs Meeting"
|
|
|
|
Then I should see "Agenda" within ".meeting_agenda" # I should see the Agenda tab
|
|
And I should not see "No data to display" within "#meeting_agenda_text"
|
|
And I should see "Text formatting" within ".meeting_agenda"
|
|
|
|
@javascript
|
|
Scenario: Navigate to a meeting page with a closed agenda and the permission to edit the minutes
|
|
Given the role "user" may have the following rights:
|
|
| view_meetings |
|
|
| create_meeting_minutes |
|
|
And the meeting "Bobs Meeting" has 1 agenda with:
|
|
| locked | true |
|
|
|
|
When I go to the show page of the meeting called "Bobs Meeting"
|
|
|
|
Then I should see "Minutes" within ".meeting_minutes" # I should see the Minutes tab
|
|
And I should not see "No data to display" within "#meeting_minutes_text"
|
|
And I should see "Text formatting" within ".meeting_minutes"
|
|
|
|
@javascript
|
|
Scenario: Navigate to a meeting page with an open agenda and the permission to edit the minutes
|
|
Given the role "user" may have the following rights:
|
|
| view_meetings |
|
|
| create_meeting_minutes |
|
|
|
|
When I go to the show page for the meeting called "Bobs Meeting"
|
|
# Make sure we're on the right tab
|
|
And I click on "Minutes"
|
|
|
|
Then I should not see "Edit" within ".meeting_minutes"
|
|
|
|
@javascript
|
|
Scenario: Navigate to a meeting page with a closed agenda and the permission to edit the agenda
|
|
Given the role "user" may have the following rights:
|
|
| view_meetings |
|
|
| create_meeting_agendas |
|
|
And the meeting "Bobs Meeting" has 1 agenda with:
|
|
| locked | true |
|
|
|
|
When I go to the show page for the meeting called "Bobs Meeting"
|
|
# Make sure we're on the right tab
|
|
And I click on "Agenda"
|
|
|
|
Then I should not see "Edit" within ".meeting_agenda"
|
|
|
|
Scenario: Navigate to a meeting page with a closed agenda and the permission to edit the minutes and save minutes
|
|
Given the role "user" may have the following rights:
|
|
| view_meetings |
|
|
| create_meeting_minutes |
|
|
And the meeting "Bobs Meeting" has 1 agenda with:
|
|
| locked | true |
|
|
|
|
When I go to the show page for the meeting called "Bobs Meeting"
|
|
And I fill in "meeting_minutes[text]" with "Some minutes!"
|
|
And I click on "Save"
|
|
|
|
Then I should see "Minutes" within ".meeting_minutes" # I should see the Minutes tab
|
|
And I should see "Some minutes!" within "#meeting_minutes_text"
|
|
And I should not see "Text formatting" within "#edit-meeting_minutes"
|
|
|
|
@javascript
|
|
Scenario: Navigate to a meeting page and view an older version of an agenda
|
|
Given the role "user" may have the following rights:
|
|
| view_meetings |
|
|
And the Meeting "Bobs Meeting" has 1 agenda with:
|
|
| text | blah |
|
|
And the Meeting "Bobs Meeting" has 1 agenda with:
|
|
| text | foo |
|
|
|
|
When I go to the show page for the meeting called "Bobs Meeting"
|
|
And I click on "History"
|
|
And I click on "1"
|
|
|
|
Then I should see "Agenda" within ".meeting_agenda" # I should see the Agenda tab
|
|
And I should see "blah" within ".meeting_agenda"
|
|
|