Vue Unit Test vue-test-utils Asynchronous problem

when doing a unit test, a click event is triggered in the test case. This event in the component is asynchronous. Assign a parameter after success. The problem is that I write a promise according to the official website if it is no problem to res directly. If the execution is delayed by 1 second. This test will fail.

or this situation should have the correct posture. Ask for guidance

clipboard.png

clipboard.png

clipboard.png error message

Mar.20,2021

ask for advice on how to wait online for similar problems


is there a problem with the execution order

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e6fee7-297.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e6fee7-297.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?