Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 202aab7

Browse files
committedMar 11, 2020
minor fixups in "Writing interaction tests"
1 parent d2df81e commit 202aab7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,11 @@ which shows the baseline image, the generated image, the diff and the json mocks
184184
To view the results of a run on CircleCI, download the `build/test_images/` and `build/test_images_diff/` artifacts into your local repo and then run `npm run start-image_viewer`.
185185

186186
### Writing interaction tests
187+
187188
Keep in mind that the interaction coordinates are relative to the top-left corner of the plot, including the margins. To produce a reliable interaction test,
188189
it may be necessary to fix the width, height, margins, X axis range and Y axis range of the plot. For example:
189190

190-
```
191+
```js
191192
Plotly.newPlot(gd, [{
192193
x: [1, 1, 1, 2, 2, 2, 3, 3, 3],
193194
y: [1, 2, 3, 1, 2, 3, 1, 2, 3],

0 commit comments

Comments
 (0)
Please sign in to comment.