text: // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
  // See LICENSE.txt for license information.
  
  // ***************************************************************
  // - [#] indicates a test step (e.g. # Go to a page)
  // - [*] indicates an assertion (e.g. * Check the title)
  // ***************************************************************
  
  describe('webapp components', () => {
      let testUser;
      let testTeam;
  
      before(() => {
          cy.apiInitSetup().then(({team, user}) => {
              testUser = user;
              testTeam = team;
  
              // # Login as user-1
              cy.apiLogin(testUser);
          });
      });
  
      beforeEach(() => {
          // # Login as testUser
          cy.apiLogin(testUser);
  
          // # Navigate to the application
          cy.visit(`/${testTeam.name}/`);
      });
  
      it('root-portal exists', () => {
          // * Verify that #root-portal exists in main markup
          cy.get('#root-portal').should('exist');
      });
  });