import { ElementHandle , Page } from 'puppeteer' ; import { Base } from './base' ; export class AdminDashboard extends Base { private static readonly _welcomeBanner = '.welcome-banner' ; assert = { /**
         * Checks whether Welcome Banner is visible on Admin Dashboard
         */ isVisible : async ( ) : Promise < ElementHandle < Element > > => this . elementVisible ( AdminDashboard . _welcomeBanner , 'Welcome banner' ) , } ; private readonly _baseUrl : string ; constructor ( page , baseUrl ) { super ( page ) ; this . _baseUrl = baseUrl ; } /**
     * Navigates to Admin Dashboard
     */ async open ( ) { await this . goto ( { baseUrl : this . _baseUrl , path : 'admin' } ) ; } }