mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 15:34:39 -04:00
Added automated test for language files
This commit is contained in:
parent
4807d8b05e
commit
2924e03a17
@ -81,9 +81,11 @@
|
||||
<div class="panel-heading" style="background-color:#0b4d78 !important">
|
||||
<h3 class="panel-title in-bold-white">
|
||||
<i class="glyphicon glyphicon-exclamation-sign"></i> {{ trans('texts.activity') }}
|
||||
@if ($invoicesSent)
|
||||
<div class="pull-right" style="font-size:14px;padding-top:4px">
|
||||
{{ trans_choice('texts.invoices_sent', $invoicesSent) }}
|
||||
</div>
|
||||
@endif
|
||||
</h3>
|
||||
</div>
|
||||
<ul class="panel-body list-group" style="height:276px;overflow-y:auto;">
|
||||
|
@ -28,7 +28,7 @@ class AcceptanceTester extends \Codeception\Actor
|
||||
{
|
||||
//if ($I->loadSessionSnapshot('login')) return;
|
||||
|
||||
$I->amOnPage('/login');
|
||||
$I->amOnPage('/login?lang=en');
|
||||
$I->see('Login');
|
||||
$I->fillField(['name' => 'email'], Fixtures::get('username'));
|
||||
$I->fillField(['name' => 'password'], Fixtures::get('password'));
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php //[STAMP] 37380042138360812111baed01969345
|
||||
<?php //[STAMP] 9e3612a6f7f898dfad5d3ce657f63dd5
|
||||
namespace _generated;
|
||||
|
||||
// This class was automatically generated by build task
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -5,6 +5,14 @@ $I->checkIfLogin($I);
|
||||
|
||||
$I->wantTo('Test all pages load');
|
||||
|
||||
// Check all language files
|
||||
$count = $I->grabNumRecords('languages');
|
||||
for ($i=1; $i<=$count; $i++) {
|
||||
$locale = $I->grabFromDatabase('languages', 'locale', ['id' => $i]);
|
||||
$I->amOnPage("/dashboard?lang={$locale}");
|
||||
$I->seeElement('.navbar-brand');
|
||||
}
|
||||
|
||||
// Top level navigation
|
||||
$I->amOnPage('/dashboard');
|
||||
$I->see('Total Revenue');
|
||||
|
Loading…
x
Reference in New Issue
Block a user