Skip to content

Commit 36ce0c5

Browse files
authored
test: revision of disabled tests (#25)
- Enable notDownloadableFilePreview (TestCase-B-1390) - Enable revision for deleted package (TestCase-B-1023) - Update version tab after publish ticket (TestCase-B-1226) - Fix test ID for better traceability - Remove redundant beforeAll for improved test efficiency - Allow documents without changes in the filter
1 parent b1558af commit 36ce0c5

9 files changed

+14
-22
lines changed

src/tests/portal/04-entity-actions/4.3.2-package-editing-publishing.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ test.describe('4.3.2 Package publishing via Portal', () => {
7676
tag: '@smoke',
7777
annotation: [
7878
{ type: 'Test Case', description: `${TICKET_BASE_URL}TestCase-A-8915` },
79-
{ type: 'Issue', description: `${TICKET_BASE_URL}TestCase-A-10451` },
79+
{ type: 'Issue', description: `${TICKET_BASE_URL}TestCase-B-1226` },
8080
],
8181
},
8282
async ({ sysadminPage: page }) => {
@@ -116,7 +116,7 @@ test.describe('4.3.2 Package publishing via Portal', () => {
116116
await versionPage.toolbar.settingsBtn.click()
117117
await packageSettingsPage.versionsTab.click()
118118

119-
//! await expect(packageSettingsPage.versionsTab.getVersionRow('publish-draft')).toBeVisible() //Issue TestCase-A-10451
119+
//! await expect(packageSettingsPage.versionsTab.getVersionRow('publish-draft')).toBeVisible() //Issue TestCase-B-1226
120120
})
121121
})
122122

src/tests/portal/04-entity-actions/4.3.3-package-publish-pattern.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ test.describe('4.3.3 Package publishing via Portal (Negative)', () => {
5252
})
5353
})
5454

55-
test('[P-PVC-3] Publish draft version that does not match the new pattern and the global pattern',
55+
test('[P-PVC-3-N] Publish draft version that does not match the new pattern and the global pattern',
5656
{
5757
annotation: { type: 'Test Case', description: `${TICKET_BASE_URL}TestCase-A-8923` },
5858
},

src/tests/portal/04-entity-actions/4.4.2-dashboard-editing-publishing.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ test.describe('4.4.2 Dashboard editing/publishing', () => {
2626
tag: '@smoke',
2727
annotation: [
2828
{ type: 'Test Case', description: `${TICKET_BASE_URL}TestCase-A-4496` },
29-
{ type: 'Issue', description: `${TICKET_BASE_URL}TestCase-A-10451` },
29+
{ type: 'Issue', description: `${TICKET_BASE_URL}TestCase-B-1226` },
3030
],
3131
},
3232
async ({ sysadminPage: page }) => {
@@ -67,7 +67,7 @@ test.describe('4.4.2 Dashboard editing/publishing', () => {
6767
await versionPage.toolbar.settingsBtn.click()
6868
await packageSettingsPage.versionsTab.click()
6969

70-
//! await expect(packageSettingsPage.versionsTab.getVersionRow('publish-draft')).toBeVisible() //Issue TestCase-A-10451
70+
//! await expect(packageSettingsPage.versionsTab.getVersionRow('publish-draft')).toBeVisible() //Issue TestCase-B-1226
7171
})
7272
})
7373

src/tests/portal/05-view-details/5.3-dashboard-details.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ test.describe('5.3 Dashboard details', () => {
6363
tag: '@smoke',
6464
annotation: [
6565
{ type: 'Test Case', description: `${TICKET_BASE_URL}TestCase-A-5895` },
66-
{ type: 'Issue', description: `${TICKET_BASE_URL}TestCase-B-1023` }],
66+
],
6767
},
6868
async ({ sysadminPage: page }) => {
6969

@@ -88,7 +88,7 @@ test.describe('5.3 Dashboard details', () => {
8888
await expect.soft(overviewTab.packagesTab.getExcludedPackageRow(PK11).statusCell).toHaveText(V_P_PKG_OPERATIONS_REST_R.status)
8989
await expect.soft(overviewTab.packagesTab.getPackageRow(PK12).versionCell).toHaveText(V_P_PKG_FOR_DASHBOARDS_REST_BASE_R.version)
9090
await expect.soft(overviewTab.packagesTab.getPackageRow(PK12).statusCell).toHaveText(V_P_PKG_FOR_DASHBOARDS_REST_BASE_R.status)
91-
// await expect.soft(overviewTab.packagesTab.getReferenceRow(PK13).versionCell).toHaveText(PKG_FOR_DASHBOARDS_DELETED_TEST_VERSION.version) // TODO TestCase-B-1023
91+
await expect.soft(overviewTab.packagesTab.getPackageRow(PK13).versionCell).toHaveText(V_P_PKG_FOR_DASHBOARDS_DELETED_R.version)
9292
await expect.soft(overviewTab.packagesTab.getPackageRow(PK13).statusCell).toHaveText(V_P_PKG_FOR_DASHBOARDS_DELETED_R.status)
9393
await expect.soft(overviewTab.packagesTab.getPackageRow(PK13).packageCell.notExistAlertIcon).toBeVisible()
9494
})

src/tests/portal/09-comparison/9.2-compare-operations-package.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ test.describe('09.2 Compare Operations (Package)', () => {
209209
tag: '@smoke',
210210
annotation: [
211211
{ type: 'Test Case', description: `${TICKET_BASE_URL}TestCase-A-1734` },
212-
{ type: 'Issue', description: `${TICKET_BASE_URL}TestCase-B-1447` },
213212
],
214213
},
215214
async ({ sysadminPage: page }) => {
@@ -233,7 +232,7 @@ test.describe('09.2 Compare Operations (Package)', () => {
233232
await compareOperationsPage.sidebar.filtersBtn.click()
234233
await compareOperationsPage.sidebar.documentFilterAc.click()
235234

236-
//! await expect(compareOperationsPage.sidebar.documentFilterAc.getListItem()).toHaveCount(2) //Issue TestCase-B-1447
235+
await expect(compareOperationsPage.sidebar.documentFilterAc.getListItem()).toHaveCount(3) // Documents without changes are allowed in the filter
237236
await expect(compareOperationsPage.sidebar.documentFilterAc.getListItem(docTitle1)).toBeVisible()
238237
await expect(compareOperationsPage.sidebar.documentFilterAc.getListItem(docTitle2)).toBeVisible()
239238

src/tests/portal/12-grouping/12.1.1-pkg-man-grouping-crud.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ test.describe('12.1.1 Manual grouping: CRUD (Packages)', () => {
228228
tag: '@smoke',
229229
annotation: [
230230
{ type: 'Test Case', description: `${TICKET_BASE_URL}TestCase-A-10190` },
231-
{ type: 'Issue', description: `${TICKET_BASE_URL}TestCase-B-1390` },
232231
],
233232
},
234233
async ({ sysadminPage: page }) => {
@@ -243,11 +242,11 @@ test.describe('12.1.1 Manual grouping: CRUD (Packages)', () => {
243242
await portalPage.gotoVersion(testVersion, VERSION_OVERVIEW_TAB_GROUPS)
244243
await groupsTab.getGroupRow(groupName).openEditGroupParametersDialog()
245244

246-
/*!await updateDialog.fillForm({ template: testMeta!.templateYaml }) //Issue TestCase-B-1390
245+
await updateDialog.fillForm({ template: testMeta!.templateYaml })
247246

248247
await expect(updateDialog.notDownloadableFilePreview).toBeVisible()
249248

250-
await updateDialog.notDownloadableFilePreview.deleteBtn.click()*/
249+
await updateDialog.notDownloadableFilePreview.deleteBtn.click()
251250

252251
await expect(updateDialog.browseBtn).toBeEnabled()
253252

src/tests/portal/12-grouping/12.1.4-pkg-prefix-grouping-crud.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ test.describe('12.1.4 Prefix grouping: CRUD', () => {
217217
tag: '@smoke',
218218
annotation: [
219219
{ type: 'Test Case', description: `${TICKET_BASE_URL}TestCase-A-10181` },
220-
{ type: 'Issue', description: `${TICKET_BASE_URL}TestCase-B-1390` },
221220
],
222221
},
223222
async ({ sysadminPage: page }) => {
@@ -233,11 +232,11 @@ test.describe('12.1.4 Prefix grouping: CRUD', () => {
233232
await portalPage.gotoVersion(testVersion, VERSION_OVERVIEW_TAB_GROUPS)
234233
await groupsTab.getGroupRow(groupName).openEditGroupParametersDialog()
235234

236-
/*!await updateDialog.fillForm({ template: testMeta!.templateYaml }) //Issue TestCase-B-1390
235+
await updateDialog.fillForm({ template: testMeta!.templateYaml })
237236

238237
await expect(updateDialog.notDownloadableFilePreview).toBeVisible()
239238

240-
await updateDialog.notDownloadableFilePreview.deleteBtn.click()*/
239+
await updateDialog.notDownloadableFilePreview.deleteBtn.click()
241240

242241
await expect(updateDialog.browseBtn).toBeEnabled()
243242

src/tests/portal/12-grouping/12.2.1-dsh-man-grouping-crud.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ test.describe('12.2.1 Manual grouping: CRUD (Dashboards)', () => {
232232
tag: '@smoke',
233233
annotation: [
234234
{ type: 'Test Case', description: `${TICKET_BASE_URL}TestCase-A-8350` },
235-
{ type: 'Issue', description: `${TICKET_BASE_URL}TestCase-B-1390` },
236235
],
237236
},
238237
async ({ sysadminPage: page }) => {
@@ -247,11 +246,11 @@ test.describe('12.2.1 Manual grouping: CRUD (Dashboards)', () => {
247246
await portalPage.gotoVersion(testVersion, VERSION_OVERVIEW_TAB_GROUPS)
248247
await groupsTab.getGroupRow(groupName).openEditGroupParametersDialog()
249248

250-
/*!await updateDialog.fillForm({ template: testMeta!.templateYaml }) //Issue TestCase-B-1390
249+
await updateDialog.fillForm({ template: testMeta!.templateYaml })
251250

252251
await expect(updateDialog.notDownloadableFilePreview).toBeVisible()
253252

254-
await updateDialog.notDownloadableFilePreview.deleteBtn.click()*/
253+
await updateDialog.notDownloadableFilePreview.deleteBtn.click()
255254

256255
await expect(updateDialog.browseBtn).toBeEnabled()
257256

src/tests/portal/13-revisions/13.1.1.2-package-revisions-notification.spec.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ test.describe('13.1.1.2 Package revisions (Outdated revision notification)', ()
1010
const testPackage = PK_REV_VAR
1111
const testVersion = V_P_PKG_REV_1_N
1212

13-
test.beforeAll(async () => {
14-
15-
})
16-
1713
test('[P-COPR-3.1] Outdated revision notification on the "Operations" tab',
1814
{
1915
tag: ['@smoke', '@flaky'],

0 commit comments

Comments
 (0)