Skip to content

Commit

Permalink
fix interaction test
Browse files Browse the repository at this point in the history
  • Loading branch information
illetid committed Aug 29, 2024
1 parent 4c1bd40 commit 71bec3e
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions tests/e2e/interactions/test-cases/markers/text-hit-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,22 @@ function beforeInteractions(container) {
const mainSeriesData = generateData();
const markerTime = mainSeriesData[450].time;
const price = mainSeriesData[450].value;

mainSeries.setData(mainSeriesData);
mainSeries.setMarkers([
{
time: markerTime,
position: 'belowBar',
color: '#2196F3',
shape: 'arrowUp',
text: 'This is a Marker',
id: 'TEST',
},
]);
LightweightCharts.createSeriesMarkersPrimitive(
mainSeries,
chart,
[
{
time: markerTime,
position: 'belowBar',
color: '#2196F3',
shape: 'arrowUp',
text: 'This is a Marker',
id: 'TEST',
},
]
);

chart.subscribeClick(mouseParams => {
if (!mouseParams) {
Expand Down

0 comments on commit 71bec3e

Please sign in to comment.