Browse Source

单元测试

jqh 3 years ago
parent
commit
0fbc6d7900
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/Browser/Components/Form/Field/HasMany.php

+ 2 - 2
tests/Browser/Components/Form/Field/HasMany.php

@@ -48,8 +48,8 @@ class HasMany extends Component
     {
         return [
             '@container' => '.has-many-'.$this->relation,
-            '@add' => '.add',
-            '@remove' => '.remove',
+            '@add' => ".{$this->relation}-add",
+            '@remove' => ".{$this->relation}-remove",
             '@forms' => ".has-many-{$this->relation}-forms",
             '@group' => ".has-many-{$this->relation}-forms .has-many-{$this->relation}-form",
         ];