UNPKG

external-services-automation

Version:

External services automation library for Playwright and Cucumber

18 lines (17 loc) 753 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LeftPanelPage = void 0; class LeftPanelPage { constructor(page) { this.page = page; this.panelContainer = page.locator('div[style*="background-color: rgb(232, 245, 233)"]'); this.emailAwesomeLogo = page.locator('img[data-test="logo-img"]'); this.sandboxIndicator = page.locator('span:has-text("Sandbox")'); this.businessTitle = page.locator('span:has-text("Email Awesome")').first(); this.returnToBusinessButton = page.locator('[data-testid="return-to-business-link"]'); } async navigateBackToEmailAwesome() { await this.returnToBusinessButton.click(); } } exports.LeftPanelPage = LeftPanelPage;