Created
February 22, 2018 19:25
-
-
Save manuelgeek/698f670e1115397285d68290eab5c1b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Foundation\Testing\WithoutMiddleware; | |
use Illuminate\Foundation\Testing\DatabaseMigrations; | |
use Illuminate\Foundation\Testing\DatabaseTransactions; | |
class AdminActivityTest extends TestCase | |
{ | |
/** | |
* A basic test example. | |
* | |
* @return void | |
*/ | |
public function testAdminLogin() | |
{ | |
$this->visit('/login') | |
->type('[email protected]', 'email') | |
->type('admin','password') | |
->press('Login') | |
->seePageIs('/') | |
->see('Welcome to the Zeep Admin site.') | |
->visit('/customers') | |
->see('Customers') | |
->click('Saving Accounts') | |
->see('Saving Accounts') | |
->click('Loan Accounts') | |
->see('Loan Accounts') | |
->click('Deposits') | |
->see('Deposits') | |
->click('Saving Reasons') | |
->see('Saving Reasons') | |
->click('Borrowing Reasons') | |
->see('Borrowing Reasons') | |
->click('Money Transactions') | |
->see('Mobile Money Transactions') | |
->click('Voucher Cards') | |
->see('Voucher Number') | |
// ->press('Search') | |
// ->see('The voucher field is required') | |
// ->type('ww', 'voucher') | |
// ->see('The voucher number doesnot exist') | |
->click('Rules') | |
->see('Rules') | |
->visit('/rules/create') | |
->see('Create New Rule') | |
->click('Logout') | |
->seePageIs('/login') | |
; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment