mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-25 16:40:03 -05:00
chore(deps): Update dependency @cypress/react-tooltip to versio… (#4610)
* chore(deps): Update @cypress/react-tooltip to 0.5.0 🌟 * fix selector-playground spec Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Jennifer Shehane <jennifer@cypress.io> Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
This commit is contained in:
committed by
Jennifer Shehane
parent
16adce5dfc
commit
bfcfe83231
@@ -25,7 +25,7 @@
|
||||
],
|
||||
"devDependencies": {
|
||||
"@babel/plugin-proposal-object-rest-spread": "7.4.4",
|
||||
"@cypress/react-tooltip": "0.4.0",
|
||||
"@cypress/react-tooltip": "0.5.0",
|
||||
"bin-up": "1.2.0",
|
||||
"bluebird": "3.5.0",
|
||||
"chai": "4.2.0",
|
||||
|
||||
@@ -163,9 +163,10 @@ describe('<SelectorPlayground />', () => {
|
||||
|
||||
it('resets tooltip text when mousing out of button', () => {
|
||||
const component = mount(<SelectorPlayground model={model} />)
|
||||
const randomEl = document.createElement('div')
|
||||
|
||||
component.find('.copy-to-clipboard').simulate('click')
|
||||
component.find('.copy-to-clipboard').simulate('mouseout', { relatedTarget: { parentNode: {} } })
|
||||
component.find('.copy-to-clipboard').simulate('mouseout', { relatedTarget: randomEl })
|
||||
expect(component.find(Tooltip).at(2)).to.have.prop('title', 'Copy to clipboard')
|
||||
})
|
||||
})
|
||||
@@ -200,9 +201,10 @@ describe('<SelectorPlayground />', () => {
|
||||
|
||||
it('resets tooltip text when mousing out of button', () => {
|
||||
const component = mount(<SelectorPlayground model={model} />)
|
||||
const randomEl = document.createElement('div')
|
||||
|
||||
component.find('.print-to-console').simulate('click')
|
||||
component.find('.print-to-console').simulate('mouseout', { relatedTarget: { parentNode: {} } })
|
||||
component.find('.print-to-console').simulate('mouseout', { relatedTarget: randomEl })
|
||||
expect(component.find(Tooltip).at(3)).to.have.prop('title', 'Print to console')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user