hunk.code_window:     "jest": "27.4.7",
       "jest-canvas-mock": "2.3.1",
       "jest-junit": "13.0.0",
       "react-beautiful-dnd": "13.1.0",
       "react-bootstrap": "1.6.1",
       "react-refresh": "0.11.0",
       "react-test-renderer": "17.0.2",
       "redux-mock-store": "1.5.4",
       "redux-thunk": "2.4.1",
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.file_path: webapp/playbooks/package.json
hunk.type: replace
file: // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
  // See LICENSE.txt for license information.
  
  import {expect, test} from '@e2e-support/test_fixture';
  
  test('Intro to channel as regular user', async ({pw, pages, browserName, viewport}, testInfo) => {
      // Create and sign in a new user
      const {user} = await pw.initSetup();
  
      // Log in a user in new browser context
      const {page} = await pw.testBrowser.login(user);
  
      // Visit a default channel page
      const channelsPage = new pages.ChannelsPage(page);
      await channelsPage.goto();
      await channelsPage.toBeVisible();
  
      // Wait for Boards' bot image to be loaded
      // await pw.shouldHaveFeatureFlag('OnboardingAutoShowLinkedBoard', true);
      // const boardsWelcomePost = await channelsPage.getFirstPost();
      // await expect(await boardsWelcomePost.getProfileImage('boards')).toBeVisible();
      // await wait(duration.one_sec);
  
      // Wait for Playbooks icon to be loaded in App bar, except in iphone
      if (!pw.isSmallScreen()) {
          await expect(channelsPage.appBar.playbooksIcon).toBeVisible();
      }
  
      // Hide dynamic elements of Channels page
      await pw.hideDynamicChannelsContent(page);
  
      // Match snapshot of channel intro page
      const testArgs = {page, browserName, viewport};
      await pw.matchSnapshot(testInfo, testArgs);
  });
  