Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 335 Bytes
import { FollowPost } from 'src/common/interfaces';
const followPost: 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 };