@digital-ai/devops-page-object-release 0.0.0-snapshot-20251126130325 → 0.0.0-snapshot-20251126133346

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/CHANGELOG.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
- ## 0.0.0-snapshot-20251126130325
3
+ ## 0.0.0-snapshot-20251126133346
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 43cf4ad: S-126526: Added page object for edit-teams-and-permissions-scenario
7
+ - bca90c3: S-126861: Added page objects for template-flag-scenario conversion
8
8
 
9
9
  ## 0.0.93
10
10
 
package/dist/main.js CHANGED
@@ -1258,6 +1258,10 @@ class $87643f2d97b0644e$export$a678525e79c4ccc4 extends (0, $e403098cd4f59faa$ex
1258
1258
  }).click();
1259
1259
  return new (0, $9b9a8c3da392d020$export$f43492e8ac3c566)(this.page);
1260
1260
  }
1261
+ async expectReleaseFlagged(title, flag) {
1262
+ const release = this.page.locator(`.release:has-text("${title}").flagged_${flag}`);
1263
+ await (0, $kKeXs$playwrighttest.expect)(release).toHaveCount(1);
1264
+ }
1261
1265
  async createNewRelease(releaseName, description) {
1262
1266
  await this.releaseCreatePage.setName(releaseName);
1263
1267
  await this.releaseCreatePage.setDescription(description);
@@ -5915,52 +5919,6 @@ class $e5c8dec182aa2e84$export$e2613a7eee3a1b1b extends (0, $f8721861c660dd88$ex
5915
5919
  });
5916
5920
  await tag.locator(".close-icon").click();
5917
5921
  }
5918
- async expectPermissionReadOnly(permission, team, readOnly) {
5919
- const rowLocator = this.page.locator(`table tr:has-text("${permission}")`);
5920
- const tagLocator = rowLocator.locator(`.tag-label:has-text("${team}")`);
5921
- if (readOnly) await (0, $kKeXs$playwrighttest.expect)(tagLocator).toBeVisible();
5922
- else {
5923
- const closeIconLocator = tagLocator.locator(".. >> .tag-close");
5924
- await (0, $kKeXs$playwrighttest.expect)(closeIconLocator).toBeVisible();
5925
- }
5926
- }
5927
- async expectTeamsNotToExist(teams, readOnly) {
5928
- for (const team of teams){
5929
- const teamRow = this.page.locator(`tr:has-text("${team}")`);
5930
- if (readOnly) await (0, $kKeXs$playwrighttest.expect)(teamRow.getByTitle("Delete")).toHaveCount(0);
5931
- else await (0, $kKeXs$playwrighttest.expect)(teamRow.getByTitle("Delete")).toHaveCount(1);
5932
- }
5933
- }
5934
- async expectInheritTeamsDisabled() {
5935
- const inheritCheckbox = this.page.locator(".inherit-checkbox input");
5936
- await (0, $kKeXs$playwrighttest.expect)(inheritCheckbox).toBeVisible();
5937
- await (0, $kKeXs$playwrighttest.expect)(inheritCheckbox).toBeDisabled();
5938
- }
5939
- async expectNewTeamButtonDisabled() {
5940
- const addTeamButton = this.page.locator(".button-add-team");
5941
- await (0, $kKeXs$playwrighttest.expect)(addTeamButton).toBeDisabled();
5942
- }
5943
- async expectRemoveTeamButtonNotToExist() {
5944
- await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#teams-permissions-table table tr .action-label")).toHaveCount(0);
5945
- return this;
5946
- }
5947
- async expectSaveButtonDisabled() {
5948
- const saveButton = this.page.getByRole("button", {
5949
- name: "Save"
5950
- });
5951
- await (0, $kKeXs$playwrighttest.expect)(saveButton).toBeVisible();
5952
- await (0, $kKeXs$playwrighttest.expect)(saveButton).toBeDisabled();
5953
- return this;
5954
- }
5955
- async expectTeamsReadOnly(teams, readOnly) {
5956
- for (const team of teams){
5957
- const teamRow = this.page.locator("table").first().locator("tr", {
5958
- hasText: team
5959
- });
5960
- await (0, $kKeXs$playwrighttest.expect)(teamRow.locator(".tag-label + .tag-close")).toHaveCount(readOnly ? 0 : 1);
5961
- }
5962
- return this;
5963
- }
5964
5922
  async expectPermissionNotToExist(permission, team) {
5965
5923
  const row = this.page.locator("table tr", {
5966
5924
  hasText: permission
@@ -10132,17 +10090,6 @@ class $4ef41cf96a5fae4c$export$b8a61e5c71402559 {
10132
10090
  await this.page.waitForSelector("#releases-content");
10133
10091
  return new (0, $9058d40a81bdb1f5$export$b453f08936c58edb)(this.page);
10134
10092
  }
10135
- async openFolderByName(folderName) {
10136
- const folder = this.page.getByTitle(folderName);
10137
- await (0, $kKeXs$playwrighttest.expect)(folder).toBeVisible({
10138
- timeout: 5000
10139
- });
10140
- await folder.click();
10141
- await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".MuiBreadcrumbs-li").getByRole("link", {
10142
- name: folderName
10143
- })).toBeVisible();
10144
- return this;
10145
- }
10146
10093
  async openProfilePage() {
10147
10094
  await this.page.goto(`./#/profile`);
10148
10095
  return new (0, $010122e1d9b28b80$export$3cf9c90f870f31bd)(this.page);