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(){
29
29
let tooltip = generateTooltip ( < SLDSTooltip align = 'right' content = { popoverText } openOn = 'click' > Click Me</ SLDSTooltip > ) ;
30
30
TestUtils . Simulate . click ( tooltip ) ;
31
31
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' ) ;
33
33
} ) ;
34
34
} ) ;
35
35
36
36
describe ( 'functionality works' , function ( ) {
37
37
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 ) ;
40
42
} ) ;
41
43
42
44
it ( "renders popover onClick with onOpen prop === 'click'" , function ( ) {
45
+ let popoverText = 'I am aligned right.' ;
43
46
let tooltip = generateTooltip ( < SLDSTooltip align = 'right' content = { popoverText } openOn = 'click' > Click Me</ SLDSTooltip > ) ;
44
47
TestUtils . Simulate . click ( tooltip ) ;
45
48
} ) ;
You can’t perform that action at this time.
0 commit comments