File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,20 @@ describe('SLDSTooltip: ', function(){
2929 let tooltip = generateTooltip ( < SLDSTooltip align = 'right' content = { popoverText } openOn = 'click' > Click Me</ SLDSTooltip > ) ;
3030 TestUtils . Simulate . click ( tooltip ) ;
3131 let reactId = tooltip . getElementsByTagName ( 'noscript' ) [ 0 ] . getAttribute ( "data-reactid" ) ;
32- expect ( reactId ) . to . equal ( '.x .$right middle' ) ;
32+ expect ( reactId ) . to . equal ( '.v .$right middle' ) ;
3333 } ) ;
3434 } ) ;
3535
3636 describe ( 'functionality works' , function ( ) {
3737 it ( "renders popover onHover with onOpen prop === 'hover'" , function ( ) {
38- let tooltip = generateTooltip ( < SLDSTooltip align = 'right' content = { popoverText } openOn = 'hover' > Click Me</ SLDSTooltip > ) ;
39- TestUtils . Simulate . hover ( tooltip ) ;
38+ let popoverText = 'I open on hover.' ;
39+ let tooltip = generateTooltip ( < SLDSTooltip align = 'right' content = { popoverText } openOn = 'hover' > Hover Me</ SLDSTooltip > ) ;
40+ TestUtils . Simulate . mouseEnter ( tooltip ) ;
41+ TestUtils . Simulate . mouseLeave ( tooltip ) ;
4042 } ) ;
4143
4244 it ( "renders popover onClick with onOpen prop === 'click'" , function ( ) {
45+ let popoverText = 'I am aligned right.' ;
4346 let tooltip = generateTooltip ( < SLDSTooltip align = 'right' content = { popoverText } openOn = 'click' > Click Me</ SLDSTooltip > ) ;
4447 TestUtils . Simulate . click ( tooltip ) ;
4548 } ) ;
You can’t perform that action at this time.
0 commit comments