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/KnowledgeBase.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

34 lines
960 B
PHP

<?php
namespace Step\Acceptance;
class KnowledgeBase extends \AcceptanceTester
{
/**
* Create a knowledge base
*
* @param $name
*/
public function createKnowledgeBase($name)
{
$I = new EditView($this->getScenario());
$DetailView = new DetailView($this->getScenario());
$Sidebar = new SideBar($this->getScenario());
$faker = $this->getFaker();
$I->see('Create Knowledge Base', '.actionmenulink');
$Sidebar->clickSideBarAction('Create');
$I->waitForEditViewVisible();
$I->fillField('#name', $name);
$I->fillField('#additional_info', $faker->text());
$I->fillField('#revision', $faker->randomDigit());
$I->executeJS('tinyMCE.activeEditor.setContent("TinyMCE Content Test");');
$I->seeElement('#author');
$I->seeElement('#approver');
$I->clickSaveButton();
$DetailView->waitForDetailViewVisible();
}
}