Sfoglia il codice sorgente

解决dusk测试关闭过快评论失败的问题

baijunyao 7 anni fa
parent
commit
efe83d390b
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      tests/Browser/Home/IndexTest.php

+ 1 - 0
tests/Browser/Home/IndexTest.php

@@ -32,6 +32,7 @@ class IndexTest extends DuskTestCase
                 ->script("$('.b-box-content').text('dusk评论".date('Y-m-d H:i:s', time())."')");
 
             $browser->script("$('.b-comment-box .b-submit-button input').click();");
+            $browser->pause(3000);
         });
     }
 }