From 2038d8a16593d36b0beb1306a094cc6e194a6647 Mon Sep 17 00:00:00 2001 From: Mark Silverwood <3482679+SlicedSilver@users.noreply.github.com> Date: Thu, 25 Jul 2024 18:00:21 +0100 Subject: [PATCH] update graphics tests to hide attribution logo --- .../graphics/test-cases/price-scale/improve-alignment-2.js | 1 + .../graphics/test-cases/price-scale/improve-alignment.js | 1 + .../test-cases/series-markers/series-markers-all-above.js | 4 +++- .../test-cases/series-markers/series-markers-all-below.js | 4 +++- .../test-cases/series-markers/series-markers-all-inbar.js | 4 +++- .../test-cases/time-scale/change-weight-of-day-tickmark.js | 6 +++++- 6 files changed, 16 insertions(+), 4 deletions(-) diff --git a/tests/e2e/graphics/test-cases/price-scale/improve-alignment-2.js b/tests/e2e/graphics/test-cases/price-scale/improve-alignment-2.js index fd050db8a..7a5601840 100644 --- a/tests/e2e/graphics/test-cases/price-scale/improve-alignment-2.js +++ b/tests/e2e/graphics/test-cases/price-scale/improve-alignment-2.js @@ -10,6 +10,7 @@ function runTestCase(container) { entireTextOnly: true, alignLabels: true, }, + layout: { attributionLogo: false }, }; const chart = (window.chart = LightweightCharts.createChart( diff --git a/tests/e2e/graphics/test-cases/price-scale/improve-alignment.js b/tests/e2e/graphics/test-cases/price-scale/improve-alignment.js index f3e921553..39420816c 100644 --- a/tests/e2e/graphics/test-cases/price-scale/improve-alignment.js +++ b/tests/e2e/graphics/test-cases/price-scale/improve-alignment.js @@ -10,6 +10,7 @@ function runTestCase(container) { entireTextOnly: true, alignLabels: true, }, + layout: { attributionLogo: false }, }; const chart = (window.chart = LightweightCharts.createChart( diff --git a/tests/e2e/graphics/test-cases/series-markers/series-markers-all-above.js b/tests/e2e/graphics/test-cases/series-markers/series-markers-all-above.js index 7acc5c078..d7addca5f 100644 --- a/tests/e2e/graphics/test-cases/series-markers/series-markers-all-above.js +++ b/tests/e2e/graphics/test-cases/series-markers/series-markers-all-above.js @@ -13,7 +13,9 @@ function generateData() { } function runTestCase(container) { - const chart = window.chart = LightweightCharts.createChart(container); + const chart = window.chart = LightweightCharts.createChart(container, { + layout: { attributionLogo: false }, + }); const mainSeries = chart.addHistogramSeries(); diff --git a/tests/e2e/graphics/test-cases/series-markers/series-markers-all-below.js b/tests/e2e/graphics/test-cases/series-markers/series-markers-all-below.js index a54c90cdb..7dd562b3e 100644 --- a/tests/e2e/graphics/test-cases/series-markers/series-markers-all-below.js +++ b/tests/e2e/graphics/test-cases/series-markers/series-markers-all-below.js @@ -13,7 +13,9 @@ function generateData() { } function runTestCase(container) { - const chart = window.chart = LightweightCharts.createChart(container); + const chart = window.chart = LightweightCharts.createChart(container, { + layout: { attributionLogo: false }, + }); const mainSeries = chart.addHistogramSeries(); diff --git a/tests/e2e/graphics/test-cases/series-markers/series-markers-all-inbar.js b/tests/e2e/graphics/test-cases/series-markers/series-markers-all-inbar.js index 9e6b34571..44690b394 100644 --- a/tests/e2e/graphics/test-cases/series-markers/series-markers-all-inbar.js +++ b/tests/e2e/graphics/test-cases/series-markers/series-markers-all-inbar.js @@ -13,7 +13,9 @@ function generateData() { } function runTestCase(container) { - const chart = window.chart = LightweightCharts.createChart(container); + const chart = window.chart = LightweightCharts.createChart(container, { + layout: { attributionLogo: false }, + }); const mainSeries = chart.addHistogramSeries(); diff --git a/tests/e2e/graphics/test-cases/time-scale/change-weight-of-day-tickmark.js b/tests/e2e/graphics/test-cases/time-scale/change-weight-of-day-tickmark.js index bf045e5a0..974b61503 100644 --- a/tests/e2e/graphics/test-cases/time-scale/change-weight-of-day-tickmark.js +++ b/tests/e2e/graphics/test-cases/time-scale/change-weight-of-day-tickmark.js @@ -869,7 +869,11 @@ class CustomBehavior extends DefaultHorzScaleBehavior { } } function runTestCase(container) { - const chart = window.chart = LightweightCharts.createChartEx(container, new CustomBehavior(), { width: 800, height: 400 }); + const chart = window.chart = LightweightCharts.createChartEx(container, new CustomBehavior(), { + width: 800, + height: 400, + layout: { attributionLogo: false }, + }); let lastDate; let lastTickMarkType;