@digital-ai/devops-page-object-release 0.0.105 → 0.0.106

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/dist/module.js CHANGED
@@ -3827,6 +3827,18 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
3827
3827
  async backToRelease() {
3828
3828
  await this.page.locator('.icon-back').click();
3829
3829
  }
3830
+ async expectGoBackButtonTitleToBe(text) {
3831
+ const goBack = this.page.locator('.go-back');
3832
+ await (0, $hOLA6$expect)(goBack).toContainText(text);
3833
+ return this;
3834
+ }
3835
+ async expectTabsVisible(tabs) {
3836
+ const sideNav = this.page.getByTestId('sideNav');
3837
+ for (const tab of tabs)await (0, $hOLA6$expect)(sideNav.getByRole('listitem', {
3838
+ name: tab
3839
+ })).toBeVisible();
3840
+ return this;
3841
+ }
3830
3842
  async expectTitleToBeInBreadcrumbLink(title) {
3831
3843
  await (0, $hOLA6$expect)(this.page.locator('.dot-breadcrumbs a', {
3832
3844
  hasText: title
@@ -5192,6 +5204,29 @@ class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$ex
5192
5204
  })).toBeVisible();
5193
5205
  return this;
5194
5206
  }
5207
+ async expandFolder(folderName) {
5208
+ const folderRow = this.page.getByRole('listitem').filter({
5209
+ hasText: folderName
5210
+ });
5211
+ const expandIcon = folderRow.locator('.arrow-right-icon');
5212
+ await (0, $hOLA6$expect)(expandIcon).toBeVisible();
5213
+ await expandIcon.click();
5214
+ return this;
5215
+ }
5216
+ async openFolderByRow(folderName) {
5217
+ const folderRow = this.page.locator('.folder-list-row-wrapper').filter({
5218
+ hasText: folderName
5219
+ });
5220
+ const folderLink = folderRow.getByRole('link', {
5221
+ name: folderName
5222
+ });
5223
+ await (0, $hOLA6$expect)(folderLink).toBeVisible();
5224
+ await folderLink.click();
5225
+ await (0, $hOLA6$expect)(this.page.getByLabel('breadcrumb').getByRole('link', {
5226
+ name: folderName
5227
+ })).toBeVisible();
5228
+ return this;
5229
+ }
5195
5230
  async openGroups() {
5196
5231
  await this.util.openSideNavMenu('Groups');
5197
5232
  await (0, $hOLA6$expect)(this.page.getByLabel('breadcrumb').getByText('Groups')).toBeVisible();