hunk.code_window:             cy.findByTestId('post_textbox').clear().type('/playbook checkremove ');
               // * Verify suggestions number: 2 runs * 4 tasks + 1 title
               cy.get('.slash-command').should('have.length', 9);
               // # Clear input
               cy.findByTestId('post_textbox').clear();
               // # Run a slash command with correct parameters
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:             cy.get('.slash-command__info').should('have.length', 9);
  
hunk.file_path: e2e-tests/cypress/tests/integration/playbooks/channels/slash_command/commands_spec.js
hunk.type: replace
file: // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
  // See LICENSE.txt for license information.
  
  import {getBool as getBoolPreference} from 'mattermost-redux/selectors/entities/preferences';
  
  import {Preferences} from 'utils/constants';
  
  import type {GlobalState} from 'types/store';
  
  export const arePreviewsCollapsed = (state: GlobalState) => {
      return getBoolPreference(
          state,
          Preferences.CATEGORY_DISPLAY_SETTINGS,
          Preferences.COLLAPSE_DISPLAY,
          Preferences.COLLAPSE_DISPLAY_DEFAULT !== 'false',
      );
  };
  