Skip to content

Commit

Permalink
Renamed assetContent to assertTooltipContent in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan Graham Walker committed Jan 8, 2017
1 parent f683efc commit 7f6f30b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ This addon exposes testing helpers which can be used inside of the consuming app
* `assertTooltipNotRendered(assert)`: asserts if the tooltip has not been rendered. When enableLazyRendering is true the tooltip will only be rendered after the user has interacted with the $target element.
* `assertTooltipSide(assert, { side: 'right' }): asserts that the tooltip is shown on the correct side of the target. Additional options that can be passed are `selector` and `targetSelector`.
* `assertTooltipSpacing(assert, { side: 'right', spacing: 10 }): asserts that the tooltip is a given distance from the target (on a given side). `side` and `spacing` must be passed. Additional options that can be passed are `selector` and `targetSelector`.
* `assertContent(assert, { contentString: 'hello' }): asserts that the content of the tooltip matches a given string.
* `assertTooltipContent(assert, { contentString: 'hello' }): asserts that the content of the tooltip matches a given string.
* `triggerTooltipTargetEvent($targetElement, eventName)`: triggers an event on the passed element. The event will be triggered within an Ember.run so that the tooltip's asynchronicity is accounted for. eventName can be mouseenter, mouseleave, click, focus, focusin, and blur.

Each test helper also accepts an `options` object as a final parameter. If a `selector` property is provided the assertions and actions will be run against the single element found from that selector.
Expand Down

0 comments on commit 7f6f30b

Please sign in to comment.