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:
parent
0ed4250766
commit
5129235a72
@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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');
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user