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/MapsAddressCache.php
Connor Shea 144bed0237 Convert most of the remaining gotoModule functions.
Convert Emails, Knowledge Base, Maps, Opportunities, PDF Templates,
Projects, Quotes, Reports, Sports, Surveys, Targets, and Users.
2019-06-26 12:39:07 -06:00

30 lines
842 B
PHP

<?php
namespace Step\Acceptance;
class MapsAddressCache extends \AcceptanceTester
{
/**
* Create maps address cache
*
* @param $name
*/
public function createMapsAddressCache($name)
{
$I = new EditView($this->getScenario());
$DetailView = new DetailView($this->getScenario());
$Sidebar = new SideBar($this->getScenario());
$faker = $this->getFaker();
$I->see('Create Address Cache', '.actionmenulink');
$Sidebar->clickSideBarAction('Create');
$I->waitForEditViewVisible();
$I->fillField('#name', $name);
$I->fillField('#lat', $faker->latitude());
$I->fillField('#lng', $faker->longitude());
$I->seeElement('#assigned_user_name');
$I->clickSaveButton();
$DetailView->waitForDetailViewVisible();
}
}