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') }}
|
||||
<div class="pull-right" style="font-size:14px;padding-top:4px">
|
||||
{{ trans_choice('texts.invoices_sent', $invoicesSent) }}
|
||||
</div>
|
||||
@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,14 +28,14 @@ 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'));
|
||||
$I->click('Login');
|
||||
|
||||
//$I->saveSessionSnapshot('login');
|
||||
}
|
||||
}
|
||||
|
||||
function selectDataPicker(\AcceptanceTester $I, $element, $date = 'now')
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php //[STAMP] 37380042138360812111baed01969345
|
||||
<?php //[STAMP] 9e3612a6f7f898dfad5d3ce657f63dd5
|
||||
namespace _generated;
|
||||
|
||||
// This class was automatically generated by build task
|
||||
@ -2709,7 +2709,7 @@ trait AcceptanceTesterActions
|
||||
*
|
||||
* Inserts an SQL record into a database. This record will be erased after the test.
|
||||
*
|
||||
* ``` php
|
||||
* ```php
|
||||
* <?php
|
||||
* $I->haveInDatabase('users', array('name' => 'miles', 'email' => 'miles@davis.com'));
|
||||
* ?>
|
||||
@ -2772,7 +2772,7 @@ trait AcceptanceTesterActions
|
||||
*
|
||||
* Asserts that the given number of records were found in the database.
|
||||
*
|
||||
* ``` php
|
||||
* ```php
|
||||
* <?php
|
||||
* $I->seeNumRecords(1, 'users', ['name' => 'davert'])
|
||||
* ?>
|
||||
@ -2792,7 +2792,7 @@ trait AcceptanceTesterActions
|
||||
*
|
||||
* Asserts that the given number of records were found in the database.
|
||||
*
|
||||
* ``` php
|
||||
* ```php
|
||||
* <?php
|
||||
* $I->seeNumRecords(1, 'users', ['name' => 'davert'])
|
||||
* ?>
|
||||
|
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');
|
||||
|
@ -14,4 +14,4 @@ modules:
|
||||
CURLOPT_RETURNTRANSFER: true
|
||||
- Laravel5:
|
||||
environment_file: '.env'
|
||||
cleanup: false
|
||||
cleanup: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user