Skip to content

Commit

Permalink
test(tooltip): add test for tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
mptap committed Feb 16, 2023
1 parent f9119c6 commit 30072bb
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,14 @@ describe('<GithubStar />', () => {
cy.getTestId('github-star').find('a').should('be.visible')
cy.getTestId('github-star').find('.github-button').should('be.visible')
})

it('renders default tooltip text on focus', () => {
cy.mount(GithubStar, {
props: {
url: 'http://github.com/kong/kong',
},
})
cy.getTestId('github-star').trigger('focus')
cy.get('.k-popover').should('exist')
})
})

0 comments on commit 30072bb

Please sign in to comment.