[usecase-webapi] Extract test steps into js file for usecase