0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-02-06 23:10:03 +00:00
salesagility_SuiteCRM/tests/_support/Step/Acceptance/Meetings.php
Connor Shea 6bd40e67d4 Change more gotoModule functions to visitPage.
Convert Campaigns, Cases, Documents, Events, Invoices, Leads,
Meetings, Notes, Product Categories, Products, and Tasks.
2019-06-26 12:15:56 -06:00

38 lines
1.1 KiB
PHP

<?php
namespace Step\Acceptance;
class Meetings extends \AcceptanceTester
{
/**
* Create a meeting
*
* @param $name
*/
public function createMeeting($name)
{
$I = new EditView($this->getScenario());
$DetailView = new DetailView($this->getScenario());
$Sidebar = new SideBar($this->getScenario());
$faker = $this->getFaker();
$I->see('Schedule Meeting', '.actionmenulink');
$Sidebar->clickSideBarAction('Schedule');
$I->waitForEditViewVisible();
$I->fillField('#name', $name);
$I->fillField('#date_start_date', '01/19/2038');
$I->fillField('#description', $faker->text());
$I->fillField('#location', $faker->city());
$I->waitForElementVisible('#date_start_hours');
$I->selectOption('#duration', '15 minutes');
$I->selectOption('#status', 'Held');
$I->selectOption('#parent_type', 'Account');
$I->seeElement('#assigned_user_name');
$I->clickSaveButton();
$DetailView->waitForDetailViewVisible();
}
}