Skip to content

Commit a39e42b

Browse files
Merge pull request #1215 from Codeinwp/bugfix/pro/493
Fixed chart rendering on page load
2 parents 95dd10a + 97fe183 commit a39e42b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

classes/Visualizer/Module/Frontend.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,7 @@ public function printFooterScripts() {
699699
?>
700700
<script type="text/javascript">
701701
var visualizerUserInteractionEvents = [
702+
"scroll",
702703
"mouseover",
703704
"keydown",
704705
"touchmove",

tests/e2e/specs/gutenberg-editor.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ test.describe( 'Charts with Gutenberg Editor', () => {
138138
await admin.visitAdminPage( 'widgets.php' );
139139

140140
await page.getByLabel('Close', { exact: true }).click();
141-
await page.getByLabel('Toggle block inserter').click();
141+
await page.getByLabel('Block Inserter').click();
142142
await page.getByPlaceholder('Search').fill('visuali');
143143
await page.getByRole('option', { name: ' Visualizer Chart' }).click();
144144
await page.locator('div').filter({ hasText: /^Display an existing chart$/ }).click();

0 commit comments

Comments
 (0)