In my VueJS code, I have a working block that needs to be executed sequentially:
return Promise.all(this.vm.multipleActions.run.map(function (testRun) {
return self.initiateTest(testRun);
}))
Currently, it appears that this block runs in parallel. As a result, when I insert records into a database within the initiateTest() function, the ordering becomes random instead of following the order of testRuns, which is what I want to maintain.
I've noticed that the AJAX calls within the initiateTest() function are being made randomly due to the parallel execution.