package org.fundacionjala.automation.scenario.steps.tablet.editMeeting;

import org.fundacionjala.automation.framework.utils.api.managers.MeetingAPIManager;
import org.fundacionjala.automation.framework.utils.api.objects.admin.Meeting;
import org.fundacionjala.automation.framework.utils.common.PropertiesReader;
import org.fundacionjala.automation.framework.utils.common.RMGenerator;

import cucumber.api.java.en.Given;

public class EditMeetingGivenSteps {
    
    @Given("^I had a created meeting with \"([^\"]*)\" organizer, with \"([^\"]*)\" subject in the \"([^\"]*)\" room$")
    public void IHadAMeetingCreated(String organizer, String subject, 
	    String room) throws Throwable {
	
	String startDate = RMGenerator.getIsoTime(0);
	String endDate = RMGenerator.getIsoTime(1);
	String roomEmail = room + "@" + PropertiesReader.getExchangeDomain();
       Meeting meeting = new Meeting(organizer, subject, startDate, endDate, 
	       room, roomEmail, roomEmail, PropertiesReader.getExchangeInviteMail());
       MeetingAPIManager.postRequest(room, meeting);
    }
}

@@ -66,16 +66,67 @@
 eting;%0A%0A
+import java.util.ArrayList;%0Aimport java.util.List;%0A
 import o
@@ -429,17 +429,16 @@
 erator;%0A
-%0A
 import c
@@ -900,16 +900,127 @@
 main();%0A
+%09List%3CString%3E attendees = new ArrayList%3CString%3E();%0A%09attendees.add(PropertiesReader.getExchangeInviteMail());%0A%09%0A
        M
@@ -1128,49 +1128,677 @@
 ail,
- PropertiesReader.getExchangeInviteMail()
+attendees );%0A       MeetingAPIManager.postRequest(room, meeting);%0A    %7D%0A    %0A    @Given(%22%5EI had a created meeting in the %5C%22(%5B%5E%5C%22%5D*)%5C%22 room, with %5C%22(%5B%5E%5C%22%5D*)%5C%22 subject and attendees:$%22)%0A    public void i_had_a_created_meeting_in_the_room_with_subject_and_attendees(String roomName, String subject, List%3CString%3E attendees) throws Throwable %7B%0A%09String startDate = RMGenerator.getIsoTime(0);%0A%09String endDate = RMGenerator.getIsoTime(1);%0A%09String roomEmail = roomName + %22@%22 + PropertiesReader.getExchangeDomain();%0A%09%0A       Meeting meeting = new Meeting(PropertiesReader.getExchangeOrganizerUser(), subject, startDate, endDate, %0A%09       roomName, roomEmail, roomEmail,attendees 
 );%0A 
@@ -1829,32 +1829,36 @@
 postRequest(room
+Name
 , meeting);%0A    
@@ -1849,20 +1849,29 @@
 , meeting);%0A
+        %0A
     %7D%0A%7D%0A

Fix scenario affected: edit meeting