mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on tests
This commit is contained in:
parent
ffa6f9d9a2
commit
254007537f
@ -160,7 +160,7 @@
|
||||
<div class="panel-body">
|
||||
|
||||
<div id="signUpDiv" onkeyup="validateSignUp()" onclick="validateSignUp()" onkeydown="checkForEnter(event)">
|
||||
{!! Former::open('signup/submit')->addClass('signUpForm')->autocomplete('on') !!}
|
||||
{!! Former::open('signup/submit')->addClass('signUpForm')->autocomplete('off') !!}
|
||||
|
||||
@if (Auth::check() && ! Auth::user()->registered)
|
||||
{!! Former::populateField('new_first_name', Auth::user()->first_name) !!}
|
||||
@ -222,6 +222,7 @@
|
||||
->label(' ') !!}
|
||||
{!! Former::password('new_password')
|
||||
->placeholder(trans('texts.password'))
|
||||
->autocomplete('new-password')
|
||||
->label(' ') !!}
|
||||
|
||||
{{ Former::setOption('TwitterBootstrap3.labelWidths.large', 4) }}
|
||||
|
@ -37,7 +37,7 @@
|
||||
@if ($account->user_id == Auth::user()->id)
|
||||
<b>{{ trans('texts.logged_in')}}</b>
|
||||
@else
|
||||
{!! Button::primary(trans('texts.unlink'))->withAttributes(['onclick'=>"return showUnlink({$account->id}, {$account->user_id})"]) !!}
|
||||
{{-- Button::primary(trans('texts.unlink'))->withAttributes(['onclick'=>"return showUnlink({$account->id}, {$account->user_id})"]) --}}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -46,14 +46,14 @@ class AcceptanceTester extends \Codeception\Actor
|
||||
function selectDropdown(\AcceptanceTester $I, $option, $dropdownSelector)
|
||||
{
|
||||
$I->click($dropdownSelector);
|
||||
$I->click(sprintf('ul.typeahead li[data-value="%s"]', $option));
|
||||
$I->click(sprintf('ul.typeahead li[data-value*="%s"]', $option));
|
||||
}
|
||||
|
||||
function selectDropdownCreate(\AcceptanceTester $I, $entityType, $value, $entityTypeShort = false)
|
||||
{
|
||||
$entityTypeShort = $entityTypeShort ?: $entityType;
|
||||
$I->fillField("#{$entityType}_name", $value);
|
||||
$I->click(sprintf('ul.typeahead li[data-value="%s"]', "Create {$entityTypeShort}: \$name"));
|
||||
$I->click(sprintf('ul.typeahead li[data-value*="%s"]', "Create {$entityTypeShort}: \$name"));
|
||||
}
|
||||
|
||||
function selectDropdownRow(\AcceptanceTester $I, $option, $dropdownSelector)
|
||||
|
@ -61,7 +61,7 @@ class GatewayFeesCest
|
||||
$invoicePublicId = $I->grabFromDatabase('invoices', 'public_id', ['id' => $invoiceId]);
|
||||
$I->amOnPage('/invoices/' . $invoicePublicId . '/edit');
|
||||
$I->click('Save Invoice');
|
||||
$I->wait(2);
|
||||
$I->wait(3);
|
||||
$I->see('Successfully updated invoice');
|
||||
$this->createPayment($I, $invitationKey, $total + $partialFeeWithTax, 0, $partialFeeWithTax);
|
||||
}
|
||||
@ -136,8 +136,8 @@ class GatewayFeesCest
|
||||
//$I->see($invoiceNumber);
|
||||
//$I->see('Successfully created invoice');
|
||||
|
||||
//$clientId = $I->grabFromDatabase('contacts', 'client_id', ['email' => $clientEmail]);
|
||||
$clientId = $I->grabFromDatabase('clients', 'id', ['name' => $clientEmail]);
|
||||
$clientId = $I->grabFromDatabase('contacts', 'client_id', ['email' => $clientEmail]);
|
||||
//$clientId = $I->grabFromDatabase('clients', 'id', ['name' => $clientEmail]);
|
||||
$invoiceId = $I->grabFromDatabase('invoices', 'id', ['client_id' => $clientId, 'invoice_number' => $invoiceNumber]);
|
||||
$invitationKey = $I->grabFromDatabase('invitations', 'invitation_key', ['invoice_id' => $invoiceId]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user