test sweetAlert and editTable