As you want to hover on User 2, not User 3, i think you should select the second avatar and corresponding tooltip ?
describe('Mouse Hover', () => {
it('should display tooltip for User 2 on hover', () => {
cy.visit('https://www.stackoverflow.com/hovers'); //Please change the website url here. As i shouldn't spam this chat using other webiste urls.
cy.get('.figure').eq(1).trigger('mouseover');
cy.get('.figure').eq(1).find('.figcaption').should('be.visible');
cy.get('.figure').eq(1).find('h5').should('contain.text', 'name: user2');
cy.get('.figure').eq(1).find('a').click();
cy.url().should('include', '/users/2');
});
});