1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-18 17:12:43 +01:00
invoiceninja/tests/acceptance/WelcomeCept.php

15 lines
440 B
PHP
Raw Normal View History

2014-02-03 23:56:23 +01:00
<?php
$I = new WebGuy($scenario);
2014-02-04 08:07:16 +01:00
$I->wantTo('click invoice now');
2014-02-03 23:56:23 +01:00
$I->amOnPage('/rocksteady');
$I->click('#startButton');
$I->seeInDatabase('users', ['id' => 1]);
2014-02-04 08:07:16 +01:00
$I->wantTo('create a client');
2014-02-03 23:56:23 +01:00
$I->click('#createClientLink');
$I->fillField('input#email', 'test@aol.com');
$I->click('#clientDoneButton');
$I->click('#saveButton');
$I->seeInDatabase('contacts', ['email' => 'test@aol.com']);
$I->seeInField('input#email', 'test@aol.com');