mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 12:34:18 +00:00
50 lines
1.1 KiB
PHP
50 lines
1.1 KiB
PHP
<?php
|
|
|
|
class DashboardCest
|
|
{
|
|
public function _before(AcceptanceTester $I)
|
|
{
|
|
|
|
$I->wantTo('Test All Dashboard Data is Loaded');
|
|
$I->amOnPage('/dashboard');
|
|
}
|
|
|
|
/**
|
|
* test if the sidebar was loaded
|
|
* @param AcceptanceTester $I
|
|
* @return void
|
|
*/
|
|
public function tryToTestIfAllAdminSidebarAreLoaded(AcceptanceTester $I)
|
|
{
|
|
$I->amOnPage('/dashboard');
|
|
$I->see('DASHBOARD');
|
|
$I->see('CUSTOMERS');
|
|
$I->see('DELIVERY LIST');
|
|
$I->see('CONTAINERS');
|
|
$I->see('PAYMENT AND BILLING');
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
* test if the dashboard content is Loaded
|
|
* @param AcceptanceTester $I
|
|
* @return void
|
|
*/
|
|
public function tryToTestAllDashboardComponentLoaded(AcceptanceTester $I)
|
|
{
|
|
$I->amOnPage('/dashboard');
|
|
$I->see('Dashboard');
|
|
$I->see('NEW CUSTOMERS');
|
|
$I->see('Unclaimed Packing Lists');
|
|
$I->see('Identification Verification');
|
|
$I->see('ACTIVATED ORDERS');
|
|
$I->see('PENDING SHIPMENT');
|
|
|
|
//delay a few second
|
|
$I->wait(5); // 2 seconds delay
|
|
|
|
$I->see('Unclaimed Packing Lists');
|
|
}
|
|
}
|