import { LikePost } from 'src/common/interfaces' ; const likePost = async function likePost ( page , post ) { if ( post . isLiked ) { return page ; } await page . click ( post . likeSelector ) ; await page . waitFor ( 2500 ) ; await page . waitForSelector ( post . unlikeSelector ) ; return page ; } ; export { likePost } ;