import { FollowPost } from 'src/common/interfaces' ; const followPost = async function followPost ( page , post ) { if ( post . isFollowed ) { return page ; } await page . click ( post . followSelector ) ; await page . waitFor ( 1500 ) ; await page . waitForSelector ( post . unfollowSelector ) ; return page ; } ; export { followPost } ;