@@ 199-213 (lines=15) @@ | ||
196 | return $this->employees->value(); |
|
197 | } |
|
198 | ||
199 | public function setCampaign($campaign) |
|
200 | { |
|
201 | $this->test->moveto($this->campaign); |
|
202 | $this->campaign->click(); |
|
203 | $this->waitForAjax(); |
|
204 | $this->test->byXpath("//div[@id='select2-drop']/div/input")->value($campaign); |
|
205 | $this->waitForAjax(); |
|
206 | $this->assertElementPresent( |
|
207 | "//div[@id='select2-drop']//div[contains(., '{$campaign}')]", |
|
208 | "Campaign autocomplete doesn't return search value" |
|
209 | ); |
|
210 | $this->test->byXpath("//div[@id='select2-drop']//div[contains(., '{$campaign}')]")->click(); |
|
211 | ||
212 | return $this; |
|
213 | } |
|
214 | ||
215 | public function setAddressLabel($value) |
|
216 | { |
@@ 33-47 (lines=15) @@ | ||
30 | return $this; |
|
31 | } |
|
32 | ||
33 | public function setLead($lead) |
|
34 | { |
|
35 | $this->lead = $this->test->byXpath("//div[starts-with(@id,'s2id_oro_workflow_transition_lead')]/a"); |
|
36 | $this->lead->click(); |
|
37 | $this->waitForAjax(); |
|
38 | $this->test->byXpath("//div[@id='select2-drop']/div/input")->value($lead); |
|
39 | $this->waitForAjax(); |
|
40 | $this->assertElementPresent( |
|
41 | "//div[@id='select2-drop']//div[contains(., '{$lead}')]", |
|
42 | "Lead autocomplete doesn't return search value" |
|
43 | ); |
|
44 | $this->test->byXpath("//div[@id='select2-drop']//div[contains(., '{$lead}')]")->click(); |
|
45 | ||
46 | return $this; |
|
47 | } |
|
48 | ||
49 | public function selectEntity($type, $entity) |
|
50 | { |