2018-05-18 12:30:51 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Faker\Generator;
|
|
|
|
|
2023-06-01 15:27:04 +00:00
|
|
|
#[\AllowDynamicProperties]
|
2018-05-18 12:30:51 +00:00
|
|
|
class DocumentsCest
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var Generator $fakeData
|
|
|
|
*/
|
|
|
|
protected $fakeData;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var integer $fakeDataSeed
|
|
|
|
*/
|
|
|
|
protected $fakeDataSeed;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param AcceptanceTester $I
|
|
|
|
*/
|
|
|
|
public function _before(AcceptanceTester $I)
|
|
|
|
{
|
|
|
|
if (!$this->fakeData) {
|
|
|
|
$this->fakeData = Faker\Factory::create();
|
|
|
|
}
|
|
|
|
|
2019-08-05 15:31:26 +00:00
|
|
|
$this->fakeDataSeed = mt_rand(0, 2048);
|
2018-05-18 12:30:51 +00:00
|
|
|
$this->fakeData->seed($this->fakeDataSeed);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param \AcceptanceTester $I
|
|
|
|
* @param \Step\Acceptance\ListView $listView
|
|
|
|
*
|
|
|
|
* As an administrator I want to view the documents module.
|
|
|
|
*/
|
|
|
|
public function testScenarioViewDocumentsModule(
|
|
|
|
\AcceptanceTester $I,
|
2019-06-28 17:30:37 +00:00
|
|
|
\Step\Acceptance\ListView $listView
|
2018-05-18 12:30:51 +00:00
|
|
|
) {
|
|
|
|
$I->wantTo('View the documents module for testing');
|
|
|
|
|
|
|
|
// Navigate to documents list-view
|
|
|
|
$I->loginAsAdmin();
|
Change more gotoModule functions to visitPage.
Convert Campaigns, Cases, Documents, Events, Invoices, Leads,
Meetings, Notes, Product Categories, Products, and Tasks.
2019-06-26 18:15:56 +00:00
|
|
|
$I->visitPage('Documents', 'index');
|
2018-05-18 12:30:51 +00:00
|
|
|
$listView->waitForListViewVisible();
|
|
|
|
|
|
|
|
$I->see('Documents', '.module-title-text');
|
|
|
|
}
|
2018-09-26 10:03:10 +00:00
|
|
|
}
|