OpenProject is the leading open source project management software.
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.
openproject/features/meetings_new.feature

161 lines
7.4 KiB

14 years ago
Feature: Create new meetings
12 years ago
14 years ago
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 a role "user"
And the user "alice" is a "user" in the project "dingens"
12 years ago
14 years ago
Scenario: Navigate to the meeting index page with no permission to create new meetings
Given the role "user" may have the following rights:
| view_meetings |
When I am already logged in as "alice"
14 years ago
And I go to the Meetings page for the project called "dingens"
Then I should not see "New Meeting"
12 years ago
14 years ago
Scenario: Navigate to the meeting index page with permission to create new meetings
# TODO Rechte werden nicht hinzugefügt sondern ersetzt?
Given the role "user" may have the following rights:
| view_meetings |
| create_meetings |
When I am already logged in as "alice"
14 years ago
And I go to the Meetings page for the project called "dingens"
Then I should see "New Meeting"
12 years ago
14 years ago
Scenario: Create a new meeting with no title
Given the role "user" may have the following rights:
| view_meetings |
| create_meetings |
When I am already logged in as "alice"
14 years ago
And I go to the Meetings page for the project called "dingens"
And I click on "New Meeting"
And I click on "Create"
# TODO Gibt's eine bessere Möglichkeit validation errors abzufragen?
Then I should see "Title can't be blank"
12 years ago
Scenario: Create a new meeting with a title and a date, time, and duration with no user time zone set
14 years ago
Given the role "user" may have the following rights:
| view_meetings |
| create_meetings |
When I am already logged in as "alice"
And the user "alice" has the following preferences
| time_zone | nil |
And I go to the Meetings page for the project called "dingens"
And I click on "New Meeting"
And I fill in the following:
| meeting_title | FSR Sitzung 123 |
| meeting_start_date | 2013-03-28 |
| meeting_duration | 1.5 |
And I select "13" from "meeting_start_time_4i"
And I select "30" from "meeting_start_time_5i"
And I click on "Create"
Then I should see "Successful creation."
And I should see "FSR Sitzung 123"
And I should see "03/28/2013 01:30 pm - 03:00 pm"
Scenario: Create a new meeting with a title and a date, time, and duration with UTC time zone set
Given the role "user" may have the following rights:
| view_meetings |
| create_meetings |
When I am already logged in as "alice"
And the user "alice" has the following preferences
| time_zone | UTC |
And I go to the Meetings page for the project called "dingens"
And I click on "New Meeting"
And I fill in the following:
| meeting_title | FSR Sitzung 123 |
| meeting_start_date | 2013-03-28 |
| meeting_duration | 1.5 |
And I select "13" from "meeting_start_time_4i"
And I select "30" from "meeting_start_time_5i"
And I click on "Create"
Then I should see "Successful creation."
And I should see "FSR Sitzung 123"
And I should see "03/28/2013 01:30 pm - 03:00 pm"
Scenario: Create a new meeting with a title and a date, time, and duration with CET time zone set
Given the role "user" may have the following rights:
| view_meetings |
| create_meetings |
When I am already logged in as "alice"
And the user "alice" has the following preferences
| time_zone | CET |
And I go to the Meetings page for the project called "dingens"
And I click on "New Meeting"
And I fill in the following:
| meeting_title | FSR Sitzung 123 |
| meeting_start_date | 2013-03-28 |
| meeting_duration | 1.5 |
And I select "13" from "meeting_start_time_4i"
And I select "30" from "meeting_start_time_5i"
And I click on "Create"
Then I should see "Successful creation."
And I should see "FSR Sitzung 123"
And I should see "03/28/2013 01:30 pm - 03:00 pm"
Scenario: Create a new meeting with a title and a date, time, and duration with CEST time zone set
Given the role "user" may have the following rights:
| view_meetings |
| create_meetings |
When I am already logged in as "alice"
And the user "alice" has the following preferences
| time_zone | CEST |
14 years ago
And I go to the Meetings page for the project called "dingens"
And I click on "New Meeting"
And I fill in the following:
| meeting_title | FSR Sitzung 123 |
| meeting_start_date | 2013-03-28 |
| meeting_duration | 1.5 |
And I select "13" from "meeting_start_time_4i"
And I select "30" from "meeting_start_time_5i"
14 years ago
And I click on "Create"
Then I should see "Successful creation."
And I should see "FSR Sitzung 123"
And I should see "03/28/2013 01:30 pm - 03:00 pm"
12 years ago
@javascript
Scenario: The start-time should be selectable in 5-minute increments
Given the role "user" may have the following rights:
| view_meetings |
| create_meetings |
When I am already logged in as "alice"
And I go to the Meetings page for the project called "dingens"
And I click on "New Meeting"
Then I should see "New Meeting"
And I should not see "01" within "#meeting_start_time_5i"
And I should not see "14" within "#meeting_start_time_5i"
# TODO entweder ich habe einen Knick in der Optik, oder die beiden sollten klappen, geht aber auch mit den 2 nächsten Zeilen...
#And "00" should be selectable from "meeting_start_time_5i"
#And "05" should be selectable from "meeting_start_time_5i"
And I should see "00" within "#meeting_start_time_5i"
And I should see "05" within "#meeting_start_time_5i"
Scenario: Visit the new meeting page to make sure the author is selected as invited
Given the role "user" may have the following rights:
| view_meetings |
| create_meetings |
When I am already logged in as "alice"
And I go to the Meetings page for the project called "dingens"
And I click on "New Meeting"
13 years ago
Then the "meeting[participants_attributes][][invited]" checkbox should be checked
Scenario: Create a meeting in a project without members shouldn't error out
Given there is 1 project with the following:
| identifier | foreverempty |
| name | foreverempty |
And the project "foreverempty" uses the following modules:
| meetings |
When I am already logged in as "admin"
And I go to the Meetings page for the project called "foreverempty"
And I click on "New Meeting"
And I fill in the following:
| meeting_title | Emtpy Meetings |
And I press "Create"
Then I should see "Successful creation."