src/OroCRM/Bundle/CampaignBundle/Tests/Selenium/CampaignTest.php 1 location
|
@@ 68-84 (lines=17) @@
|
| 65 |
|
* @depends testUpdate |
| 66 |
|
* @param $campaignCode |
| 67 |
|
*/ |
| 68 |
|
public function testDelete($campaignCode) |
| 69 |
|
{ |
| 70 |
|
$login = $this->login(); |
| 71 |
|
/** @var Campaigns $login */ |
| 72 |
|
$login->openCampaigns('OroCRM\Bundle\CampaignBundle') |
| 73 |
|
->filterBy('Code', $campaignCode) |
| 74 |
|
->delete(array($campaignCode)) |
| 75 |
|
->assertMessage('Item deleted') |
| 76 |
|
->assertTitle('All - Campaigns - Marketing'); |
| 77 |
|
|
| 78 |
|
/** @var Campaigns $login */ |
| 79 |
|
$login = $login->openCampaigns('OroCRM\Bundle\CampaignBundle'); |
| 80 |
|
if ($login->getRowsCount() > 0) { |
| 81 |
|
$login->filterBy('Code', $campaignCode) |
| 82 |
|
->assertNoDataMessage('No entity was found to match your search'); |
| 83 |
|
} |
| 84 |
|
} |
| 85 |
|
} |
| 86 |
|
|
src/OroCRM/Bundle/CaseBundle/Tests/Selenium/CasesTest.php 1 location
|
@@ 43-62 (lines=20) @@
|
| 40 |
|
* @param $subject |
| 41 |
|
* @return string |
| 42 |
|
*/ |
| 43 |
|
public function testUpdate($subject) |
| 44 |
|
{ |
| 45 |
|
$newSubject = 'Update_' . $subject; |
| 46 |
|
|
| 47 |
|
$login = $this->login(); |
| 48 |
|
/** @var Cases $login */ |
| 49 |
|
$login->openCases('OroCRM\Bundle\CaseBundle') |
| 50 |
|
->filterBy('Subject', $subject) |
| 51 |
|
->open(array($subject)) |
| 52 |
|
->assertTitle("{$subject} - Cases - Activities") |
| 53 |
|
->edit() |
| 54 |
|
->assertTitle("{$subject} - Edit - Cases - Activities") |
| 55 |
|
->setSubject($newSubject) |
| 56 |
|
->save() |
| 57 |
|
->assertMessage('Case saved') |
| 58 |
|
->toGrid() |
| 59 |
|
->assertTitle('All - Cases - Activities'); |
| 60 |
|
|
| 61 |
|
return $newSubject; |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
/** |
| 65 |
|
* @depends testUpdate |
src/OroCRM/Bundle/ContactUsBundle/Tests/Selenium/CreateContactRequestTest.php 1 location
|
@@ 68-86 (lines=19) @@
|
| 65 |
|
* @param $email |
| 66 |
|
* @return string |
| 67 |
|
*/ |
| 68 |
|
public function testUpdateContactRequest($email) |
| 69 |
|
{ |
| 70 |
|
$newEmail = 'Update_' . $email; |
| 71 |
|
|
| 72 |
|
$login = $this->login(); |
| 73 |
|
/** @var ContactRequests $login */ |
| 74 |
|
$login->openContactRequests('OroCRM\Bundle\ContactUsBundle') |
| 75 |
|
->filterBy('Email', $email) |
| 76 |
|
->open([$email]) |
| 77 |
|
->edit() |
| 78 |
|
->setEmail($newEmail) |
| 79 |
|
->save() |
| 80 |
|
->assertMessage('Contact request has been saved successfully'); |
| 81 |
|
$login->openContactRequests('OroCRM\Bundle\ContactUsBundle') |
| 82 |
|
->filterBy('Email', $email) |
| 83 |
|
->assertNoDataMessage('No contact request was found to match your search.'); |
| 84 |
|
|
| 85 |
|
return $newEmail; |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
/** |
| 89 |
|
* @depends testUpdateContactRequest |
src/OroCRM/Bundle/ContactUsBundle/Tests/Selenium/CreateEmbeddedFormTest.php 1 location
|
@@ 44-61 (lines=18) @@
|
| 41 |
|
* @param $title |
| 42 |
|
* @return string |
| 43 |
|
*/ |
| 44 |
|
public function testUpdateEmbeddedForm($title) |
| 45 |
|
{ |
| 46 |
|
$newTitle = 'Update_' . $title; |
| 47 |
|
|
| 48 |
|
$login = $this->login(); |
| 49 |
|
/** @var EmbeddedForms $login */ |
| 50 |
|
$login->openEmbeddedForms('Oro\Bundle\EmbeddedFormBundle') |
| 51 |
|
->filterBy('Title', $title) |
| 52 |
|
->open(array($title)) |
| 53 |
|
->assertTitle("{$title} - Embedded Forms - Integrations - System") |
| 54 |
|
->edit() |
| 55 |
|
->assertTitle("{$title} - Edit - Embedded Forms - Integrations - System") |
| 56 |
|
->setTitle($newTitle) |
| 57 |
|
->save() |
| 58 |
|
->assertMessage('Form has been saved successfully'); |
| 59 |
|
|
| 60 |
|
return $newTitle; |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
/** |
| 64 |
|
* @depends testUpdateEmbeddedForm |
src/OroCRM/Bundle/MagentoBundle/Tests/Selenium/CreateIntegrationTest.php 1 location
|
@@ 73-90 (lines=18) @@
|
| 70 |
|
* @param $name |
| 71 |
|
* @return string |
| 72 |
|
*/ |
| 73 |
|
public function testUpdateIntegration($name) |
| 74 |
|
{ |
| 75 |
|
$newName = 'Update_' . $name; |
| 76 |
|
|
| 77 |
|
$login = $this->login(); |
| 78 |
|
/** @var Integrations $login */ |
| 79 |
|
$login->openIntegrations('Oro\Bundle\IntegrationBundle') |
| 80 |
|
->filterBy('Name', $name) |
| 81 |
|
->open(array($name)) |
| 82 |
|
->setName($newName) |
| 83 |
|
->save() |
| 84 |
|
->assertMessage('Integration saved'); |
| 85 |
|
$login->openIntegrations('Oro\Bundle\IntegrationBundle') |
| 86 |
|
->filterBy('Name', $name) |
| 87 |
|
->assertNoDataMessage('No channel was found to match your search.'); |
| 88 |
|
|
| 89 |
|
return $newName; |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
/** |
| 93 |
|
* @depends testUpdateIntegration |
src/Oro/CRMTaskBundle/Tests/Selenium/ContactActivityListTest.php 1 location
|
@@ 37-57 (lines=21) @@
|
| 34 |
|
* @depends testCreateContact |
| 35 |
|
* @param $contactName |
| 36 |
|
*/ |
| 37 |
|
public function testAddTaskActivity($contactName) |
| 38 |
|
{ |
| 39 |
|
$subject = 'Tasks_' . mt_rand(); |
| 40 |
|
|
| 41 |
|
$login = $this->login(); |
| 42 |
|
/** @var Contacts $login */ |
| 43 |
|
$task = $login->openContacts('OroCRM\Bundle\ContactBundle') |
| 44 |
|
->filterBy('Email', $contactName . '@mail.com') |
| 45 |
|
->open([$contactName]) |
| 46 |
|
->runActionInGroup('Add task') |
| 47 |
|
->openTask('OroCRM\Bundle\TaskBundle'); |
| 48 |
|
|
| 49 |
|
/** @var Task $task */ |
| 50 |
|
$task |
| 51 |
|
->setSubject($subject) |
| 52 |
|
->setDescription($subject) |
| 53 |
|
->createTask() |
| 54 |
|
->assertMessage('Task created successfully') |
| 55 |
|
->verifyActivity('Task', $subject); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
public function testCloseWidgetWindow() |
| 59 |
|
{ |
| 60 |
|
$login = $this->login(); |