refactor functional AttributeCest, that was flickering sometimes

This commit is contained in:
Annika Wolff 2020-01-30 15:47:22 +01:00
parent 217412a563
commit ee1f9bb57c
2 changed files with 3 additions and 4 deletions

View File

@ -10,7 +10,7 @@ LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=bagisto_testing
DB_DATABASE=bagisto_test
DB_USERNAME=bagisto
DB_PASSWORD=secret
DB_PREFIX=

View File

@ -2,7 +2,6 @@
namespace Tests\Functional\Admin\Catalog;
use FunctionalTester;
use Webkul\Attribute\Models\Attribute;
@ -76,7 +75,7 @@ class AttributeCest
private function fillForm(FunctionalTester $I, bool $skipType = false): array
{
$testData = [
'code' => $I->fake()->word,
'code' => $I->fake()->firstName,
'type' => $I->fake()->randomElement([
'text',
'textarea',
@ -85,7 +84,7 @@ class AttributeCest
'select',
'multiselect'
]),
'admin_name' => $I->fake()->word,
'admin_name' => $I->fake()->firstName,
];
$I->fillField('code', $testData['code']);