Merge pull request #2212 from Haendlerbund/refactor-functional-attribute-test

refactor functional AttributeCest, that was flickering sometimes
This commit is contained in:
Jitendra Singh 2020-01-31 12:07:26 +05:30 committed by GitHub
commit f3a34d5da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

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']);