1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Fix for tests

This commit is contained in:
Hillel Coren 2017-05-17 13:14:32 +03:00
parent 0ed4250766
commit 5129235a72
3 changed files with 6 additions and 7 deletions

View File

@ -49,15 +49,14 @@ class AddDefaultNoteToClient extends Migration
if (Schema::hasColumn('accounts', 'default_tax_rate_id')) {
Schema::table('accounts', function ($table) {
$table->dropColumn('default_tax_rate_id');
}
});
});
}
if (Schema::hasColumn('products', 'default_tax_rate_id')) {
Schema::table('products', function ($table) {
$table->dropColumn('default_tax_rate_id');
}
});
});
}
}
/**

View File

@ -90,7 +90,7 @@ class AcceptanceTester extends \Codeception\Actor
if ($taxName && $taxRate) {
$taxOption = $taxName . ': ' . number_format($taxRate, 3) . '%';
$I->selectOption('#default_tax_rate_id', $taxOption);
$I->selectOption('#tax_select1', $taxOption);
}
$I->click('Save');

View File

@ -47,7 +47,7 @@ class TaxRatesCest
$I->fillField(['name' => 'product_key'], $productKey);
$I->fillField(['name' => 'notes'], $this->faker->text(80));
$I->fillField(['name' => 'cost'], $itemCost);
$I->selectOption('select[name=default_tax_rate_id]', $itemTaxName . ': ' . $itemTaxRate . '%');
$I->selectOption('select[name=tax_select1]', $itemTaxName . ': ' . $itemTaxRate . '%');
$I->click('Save');
$I->wait(1);
//$I->see($productKey);