Skip to content

Commit 5601552

Browse files
default open the frontend actions sub tab
1 parent 1c7e03c commit 5601552

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

classes/Visualizer/Render/Sidebar.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ protected function _renderAdvancedSettings() {
223223
protected function _renderActionSettings() {
224224
global $wp_version;
225225
$disable_actions = version_compare( $wp_version, '4.7.0', '<' );
226-
self::_renderSectionStart( esc_html__( 'Actions', 'visualizer' ), true );
226+
// default open this section when not testing through cypress because cypress expects to click and open each section
227+
// and may not like finding a section is already open.
228+
self::_renderSectionStart( esc_html__( 'Actions', 'visualizer' ), ! defined( 'TI_CYPRESS_TESTING' ) );
227229
self::_renderCheckboxItem(
228230
esc_html__( 'Print', 'visualizer' ),
229231
'actions[]',
@@ -656,7 +658,7 @@ protected static function _renderTextItem( $title, $name, $value, $desc, $placeh
656658
* @param string $class Any additional classes.
657659
*/
658660
public static function _renderGroupStart( $title, $html = '', $class = '', $id = '' ) {
659-
echo '<li id="'. $id . '" class="viz-group ' . $class . '">';
661+
echo '<li id="' . $id . '" class="viz-group ' . $class . '">';
660662
echo '<h3 class="viz-group-title">', $title, '</h3>';
661663
echo $html;
662664
echo '<ul class="viz-group-content">';

0 commit comments

Comments
 (0)