public function iAmViewingAuthorArchive(string $username)
    {
        $found_user = $this->getUserByName($username);

        $this->visitPath(sprintf(
            $this->getWordpressParameters()['permalinks']['author_archive'],
            $this->getUserDataFromUsername('user_nicename', $found_user['username'])
        ));
    }
public function iAmViewingAuthorArchive(string $username)
    {
        $found_user = $this->getUserByName($username);

        $this->visitPath(sprintf(
            $this->getWordpressParameters()['permalinks']['author_archive'],
            $this->getUserDataFromUsername('user_nicename', $found_user['username'])
        ));
    }
public function iAmViewingAuthorArchive ( string $ username ) { $ found_user = $ this -> getUserByName ( $ username ) ; $ this -> visitPath ( sprintf ( $ this -> getWordpressParameters ( ) [ 'permalinks' ] [ 'author_archive' ] , $ this -> getUserDataFromUsername ( 'user_nicename' , $ found_user [ 'username' ] ) ) ) ; }
Go to a user's author archive page.

Example: When I am viewing posts published by Paul

@When /^(?:I am|they are) viewing posts published by (.+)$/

@param string $username
Go to a user s author archive page .