Beispiel #1
0
 public function setAccountName($accountName)
 {
     $this->accountName = $this->test->byXPath("//*[@data-ftid='orocrm_account_form_name']");
     $this->accountName->clear();
     $this->accountName->value($accountName);
     return $this;
 }
Beispiel #2
0
 public function setSolution($solution)
 {
     $this->solution = $this->test->byXpath("//*[@data-ftid='oro_workflow_transition_proposed_solution']");
     $this->solution->clear();
     $this->solution->value($solution);
     return $this;
 }
Beispiel #3
0
 public function setAccountName($accountName)
 {
     $this->accountName = $this->test->byId('orocrm_account_form_name');
     $this->accountName->clear();
     $this->accountName->value($accountName);
     return $this;
 }
Beispiel #4
0
 public function setSolution($solution)
 {
     $this->solution = $this->test->byId('oro_workflow_transition_proposed_solution');
     $this->solution->clear();
     $this->solution->value($solution);
     return $this;
 }
Beispiel #5
0
 public function setStartDate($date)
 {
     $this->startDate = $this->test->byXpath("//*[@data-ftid='oro_workflow_transition_sales_funnel_start_date']/.." . "/following-sibling::input[contains(@class,'datepicker-input')]");
     $this->startDate->clear();
     $this->startDate->value($date);
     return $this;
 }
Beispiel #6
0
 public function setStartDate($date)
 {
     $this->startDate = $this->test->byId('oro_workflow_transition_sales_funnel_name');
     $this->startDate->clear();
     $this->startDate->value($date);
     return $this;
 }
Beispiel #7
0
 /**
  * @param string $value
  * @return $this
  */
 public function search($value)
 {
     if (!$this->simpleSearch->displayed()) {
         $this->pane->click();
     }
     $this->simpleSearch->clear();
     $this->simpleSearch->value($value);
     $this->waitForAjax();
     return $this;
 }
Beispiel #8
0
 /**
  * @param $dueDate string Due date
  * @return $this
  * @throws \Exception
  */
 public function setDueDate($dueDate)
 {
     $this->dueDate = $this->test->byXpath("//*[@data-ftid='orocrm_task_dueDate']/.." . "/following-sibling::*//input[contains(@class,'datepicker-input')]");
     $this->dueTime = $this->test->byXpath("//*[@data-ftid='orocrm_task_dueDate']/.." . "/following-sibling::*//input[contains(@class,'timepicker-input')]");
     $this->dueDate->clear();
     $this->dueTime->clear();
     $dueDateParts = [];
     if (preg_match('/^(.+\\d{4}),?\\s(\\d{1,2}\\:\\d{2}\\s\\w{2})$/', $dueDate, $dueDateParts)) {
         $this->dueDate->click();
         // focus
         $this->dueDate->value($dueDateParts[1]);
         $this->dueTime->click();
         // focus
         $this->dueTime->clear();
         $this->dueTime->value($dueDateParts[2]);
     } else {
         throw new Exception("Value {$dueDate} is not a valid date");
     }
     return $this;
 }
Beispiel #9
0
 public function verifyTag($tag)
 {
     if ($this->isElementPresent("//div[starts-with(@id,'s2id_oro_user_user_form_tags_autocomplete')]")) {
         $this->tags = $this->test->byXpath("//div[starts-with(@id,'s2id_oro_user_user_form_tags_autocomplete')]//input");
         $this->tags->click();
         $this->tags->value(substr($tag, 0, strlen($tag) - 1));
         $this->waitForAjax();
         $this->assertElementPresent("//div[@id='select2-drop']//div[contains(., '{$tag}')]", "Tag's autocomplete doesn't return entity");
         $this->tags->clear();
     } else {
         if ($this->isElementPresent("//div[contains(@class, 'tags-holder')]")) {
             $this->assertElementPresent("//div[contains(@class, 'tags-holder')]//li[contains(., '{$tag}')]", 'Tag is not assigned to entity');
         } else {
             throw new \Exception("Tag field can't be found");
         }
     }
     return $this;
 }
Beispiel #10
0
 public function setEmail($value)
 {
     $this->email->clear();
     $this->email->value($value);
     return $this;
 }
Beispiel #11
0
 public function setCloseDate($closeDate)
 {
     $this->closeDate->clear();
     $this->closeDate->value($closeDate);
     return $this;
 }
Beispiel #12
0
 public function setLabel($label)
 {
     $this->label->clear();
     $this->label->value($label);
     return $this;
 }
Beispiel #13
0
 public function setDueDate($dueDate)
 {
     $this->dueDate->clear();
     $this->dueDate->value($dueDate);
     return $this;
 }
Beispiel #14
0
 /**
  * @param $accountName
  *
  * @return $this
  */
 public function setTagName($accountName)
 {
     $this->tagName->clear();
     $this->tagName->value($accountName);
     return $this;
 }
Beispiel #15
0
 public function setEmployees($employees)
 {
     $this->employees->clear();
     $this->employees->value($employees);
     return $this;
 }
Beispiel #16
0
 public function setDescription($description)
 {
     $this->description->clear();
     $this->description->value($description);
     return $this;
 }
Beispiel #17
0
 /**
  * @param $unitName
  * @return $this
  */
 public function setBusinessUnitName($unitName)
 {
     $this->businessUnitName->clear();
     $this->businessUnitName->value($unitName);
     return $this;
 }