@bigbinary/neeto-playwright-commons 1.8.40 → 1.8.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +13 -0
- package/index.cjs.js.map +1 -1
- package/index.d.ts +12 -1
- package/index.js +13 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -247,6 +247,8 @@ const COMMON_SELECTORS = {
|
|
|
247
247
|
columnsDropdownButton: "columns-dropdown-button",
|
|
248
248
|
breadcrumbHeader: "header-breadcrumb",
|
|
249
249
|
header: "neeto-molecules-header",
|
|
250
|
+
sidebarSubLink: (label) => `${hyphenize(label)}-sub-link`,
|
|
251
|
+
sidebarGoBackButton: (label) => `${hyphenize(label)}-go-back-button`,
|
|
250
252
|
};
|
|
251
253
|
|
|
252
254
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -13374,6 +13376,16 @@ class OrganizationPage {
|
|
|
13374
13376
|
}
|
|
13375
13377
|
}
|
|
13376
13378
|
|
|
13379
|
+
class SidebarSection {
|
|
13380
|
+
constructor(page, neetoPlaywrightUtilities) {
|
|
13381
|
+
this.clickOnSubLink = (label) => this.page.getByTestId(COMMON_SELECTORS.sidebarSubLink(label)).click();
|
|
13382
|
+
this.clickOnGoBackButton = (label) => this.page.getByTestId(COMMON_SELECTORS.sidebarGoBackButton(label)).click();
|
|
13383
|
+
this.page = page;
|
|
13384
|
+
this.neetoPlaywrightUtilities = neetoPlaywrightUtilities;
|
|
13385
|
+
this.t = playwrightI18nextFixture.getI18nInstance().t;
|
|
13386
|
+
}
|
|
13387
|
+
}
|
|
13388
|
+
|
|
13377
13389
|
const USER_AGENTS = {
|
|
13378
13390
|
windows: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
|
|
13379
13391
|
mac: "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
|
|
@@ -147185,6 +147197,7 @@ exports.SLACK_DEFAULT_CHANNEL = SLACK_DEFAULT_CHANNEL;
|
|
|
147185
147197
|
exports.SLACK_SELECTORS = SLACK_SELECTORS;
|
|
147186
147198
|
exports.SLACK_WEB_TEXTS = SLACK_WEB_TEXTS;
|
|
147187
147199
|
exports.STORAGE_STATE = STORAGE_STATE;
|
|
147200
|
+
exports.SidebarSection = SidebarSection;
|
|
147188
147201
|
exports.SlackPage = SlackPage;
|
|
147189
147202
|
exports.TAGS_SELECTORS = TAGS_SELECTORS;
|
|
147190
147203
|
exports.THIRD_PARTY_ROUTES = THIRD_PARTY_ROUTES;
|