Fix for tests

This commit is contained in:
Hillel Coren 2016-10-05 17:47:03 +03:00
parent acc48081e5
commit 0529f0b80b
2 changed files with 7 additions and 10 deletions

View File

@ -207,11 +207,10 @@
@if ($entityType == ENTITY_INVOICE)
<div class="form-group" style="margin-bottom: 8px">
<div class="col-lg-8 col-sm-8 col-sm-offset-4" style="padding-top: 10px">
<div class="col-lg-8 col-sm-8 col-sm-offset-4 smaller" style="padding-top: 10px">
@if ($invoice->recurring_invoice)
{!! trans('texts.created_by_invoice', ['invoice' => link_to('/invoices/'.$invoice->recurring_invoice->public_id, trans('texts.recurring_invoice'), ['id' => 'recurringInvoiceLink'])]) !!}
{!! trans('texts.created_by_invoice', ['invoice' => link_to('/invoices/'.$invoice->recurring_invoice->public_id, trans('texts.recurring_invoice'))]) !!}
@elseif ($invoice->id)
<span class="smaller">
@if (isset($lastSent) && $lastSent)
{!! trans('texts.last_sent_on', ['date' => link_to('/invoices/'.$lastSent->public_id, $invoice->last_sent_date, ['id' => 'lastSent'])]) !!} <br/>
@endif
@ -223,7 +222,6 @@
{!! trans('texts.next_due_on', ['date' => '<span>'.$account->formatDate($invoice->getDueDate($invoice->getNextSendDate())).'</span>']) !!}
@endif
@endif
</span>
@endif
</div>
</div>

View File

@ -15,7 +15,7 @@ class InvoiceCest
$this->faker = Factory::create();
}
/*
public function createInvoice(AcceptanceTester $I)
{
$clientEmail = $this->faker->safeEmail;
@ -77,7 +77,7 @@ class InvoiceCest
]);
}
}
*/
public function createRecurringInvoice(AcceptanceTester $I)
{
$clientEmail = $this->faker->safeEmail;
@ -101,12 +101,11 @@ class InvoiceCest
$I->wait(2);
$I->see($clientEmail);
$invoiceNumber = $I->grabAttributeFrom('#invoice_number', 'value');
$I->click('#recurringInvoiceLink');
$I->click('#lastSent');
$I->see($clientEmail);
$I->click('#lastSent');
$I->see($invoiceNumber);
$I->click('Recurring Invoice');
$I->see($clientEmail);
}