UNPKG

@umbraco/playwright-testhelpers

Version:

Test helpers for making playwright tests for Umbraco solutions

21 lines 832 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WelcomeDashboardUiHelper = void 0; const UiBaseLocators_1 = require("./UiBaseLocators"); class WelcomeDashboardUiHelper extends UiBaseLocators_1.UiBaseLocators { welcomeTab; welcomeBox; constructor(page) { super(page); this.welcomeTab = page.getByRole('tab', { name: 'Welcome' }); this.welcomeBox = page.locator('uui-box'); } async clickWelcomeTab() { await this.welcomeTab.click(); } async doesButtonWithLabelInBoxHaveLink(label, boxName, link) { return await this.hasAttribute(this.welcomeBox.filter({ hasText: boxName }).getByLabel(label), 'href', link); } } exports.WelcomeDashboardUiHelper = WelcomeDashboardUiHelper; //# sourceMappingURL=WelcomeDashboardUiHelper.js.map