@@ -32,6 +32,9 @@ |
||
32 | 32 | return $this; |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $subject |
|
37 | + */ |
|
35 | 38 | public function setSubject($subject) |
36 | 39 | { |
37 | 40 | $this->subject->clear(); |
@@ -55,6 +55,9 @@ discard block |
||
55 | 55 | return $this; |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param string $name |
|
60 | + */ |
|
58 | 61 | public function setName($name) |
59 | 62 | { |
60 | 63 | $this->name->clear(); |
@@ -90,6 +93,9 @@ discard block |
||
90 | 93 | )->text(); |
91 | 94 | } |
92 | 95 | |
96 | + /** |
|
97 | + * @param string $channel |
|
98 | + */ |
|
93 | 99 | public function setChannel($channel) |
94 | 100 | { |
95 | 101 | $element = $this->test->byXpath("//div[starts-with(@id,'s2id_orocrm_sales_opportunity_form_dataChannel')]/a"); |
@@ -108,6 +114,9 @@ discard block |
||
108 | 114 | return $this; |
109 | 115 | } |
110 | 116 | |
117 | + /** |
|
118 | + * @param string $customer |
|
119 | + */ |
|
111 | 120 | public function setB2BCustomer($customer) |
112 | 121 | { |
113 | 122 | $this->b2b_customer->click(); |
@@ -129,6 +138,9 @@ discard block |
||
129 | 138 | ->byXpath("//div[starts-with(@id,'s2id_orocrm_sales_opportunity_form_customer')]/a/span")->text(); |
130 | 139 | } |
131 | 140 | |
141 | + /** |
|
142 | + * @param string $probability |
|
143 | + */ |
|
132 | 144 | public function setProbability($probability) |
133 | 145 | { |
134 | 146 | $this->probability->clear(); |
@@ -142,6 +154,9 @@ discard block |
||
142 | 154 | return $this->probability->value(); |
143 | 155 | } |
144 | 156 | |
157 | + /** |
|
158 | + * @param string $budget |
|
159 | + */ |
|
145 | 160 | public function seBudget($budget) |
146 | 161 | { |
147 | 162 | $this->budget->clear(); |
@@ -155,6 +170,9 @@ discard block |
||
155 | 170 | return $this->budget->value(); |
156 | 171 | } |
157 | 172 | |
173 | + /** |
|
174 | + * @param string $customerNeed |
|
175 | + */ |
|
158 | 176 | public function setCustomerNeed($customerNeed) |
159 | 177 | { |
160 | 178 | return $this->setContentToTinymceElement('orocrm_sales_opportunity_form_customerNeed', $customerNeed); |
@@ -208,6 +226,9 @@ discard block |
||
208 | 226 | return $this->closeDate->value(); |
209 | 227 | } |
210 | 228 | |
229 | + /** |
|
230 | + * @param string $status |
|
231 | + */ |
|
211 | 232 | public function checkStatus($status) |
212 | 233 | { |
213 | 234 | $this->assertElementPresent("//div[starts-with(@class, 'badge')][contains(., '{$status}')]"); |
@@ -32,6 +32,9 @@ discard block |
||
32 | 32 | /** @var Workflow */ |
33 | 33 | protected $workflow; |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $subject |
|
37 | + */ |
|
35 | 38 | public function setSubject($subject) |
36 | 39 | { |
37 | 40 | $this->subject = $this->test->byXpath("//*[@data-ftid='orocrm_task_subject']"); |
@@ -46,6 +49,9 @@ discard block |
||
46 | 49 | return $this->subject->value(); |
47 | 50 | } |
48 | 51 | |
52 | + /** |
|
53 | + * @param string $description |
|
54 | + */ |
|
49 | 55 | public function setDescription($description) |
50 | 56 | { |
51 | 57 | return $this->setContentToTinymceElement('orocrm_task_description', $description); |