From a9194cf1bf32f38e07d0fd0ac91534a6a74f6fbe Mon Sep 17 00:00:00 2001 From: Neilhamza <132557033+Neilhamza@users.noreply.github.com> Date: Tue, 3 Oct 2023 20:08:38 +0300 Subject: [PATCH] [RFR] mark blocker bug, and other bugs on tests (#725) * mark blocker bug, and other bugs on tests Signed-off-by: Neilhamza * edit from Bug x| to Bug x: Signed-off-by: Neilhamza * edit from Bug x| to Bug x: Signed-off-by: Neilhamza * correct mark bug format Signed-off-by: Neilhamza --------- Signed-off-by: Neilhamza --- .../migration/migration-waves/create_tracker.test.ts | 2 +- cypress/e2e/tests/migration/migration-waves/crud.test.ts | 5 ++--- .../migration-waves/export_to_jira_cloud.test.ts | 8 ++++---- .../migration-waves/export_to_jira_datacenter.test.ts | 8 ++++---- .../migration/migration-waves/field_validation.test.ts | 6 +++--- .../e2e/tests/migration/migration-waves/filter.test.ts | 5 ++--- .../migration/migration-waves/filter_applications.test.ts | 8 ++++---- .../tests/migration/migration-waves/pagination.test.ts | 8 ++++---- cypress/e2e/tests/migration/migration-waves/sort.test.ts | 8 ++++---- 9 files changed, 28 insertions(+), 30 deletions(-) diff --git a/cypress/e2e/tests/migration/migration-waves/create_tracker.test.ts b/cypress/e2e/tests/migration/migration-waves/create_tracker.test.ts index 95dc1b755..83bcf771f 100644 --- a/cypress/e2e/tests/migration/migration-waves/create_tracker.test.ts +++ b/cypress/e2e/tests/migration/migration-waves/create_tracker.test.ts @@ -35,7 +35,7 @@ describe(["@tier1"], "Testing the creation of a tracker in migration waves", fun application.create(); }); - it("Verify create tracker button is visible", function () { + it("Bug MTA-1337: Verify create tracker button is visible", function () { MigrationWave.open(); // create new migration wave diff --git a/cypress/e2e/tests/migration/migration-waves/crud.test.ts b/cypress/e2e/tests/migration/migration-waves/crud.test.ts index f76c1bbbc..e73666453 100644 --- a/cypress/e2e/tests/migration/migration-waves/crud.test.ts +++ b/cypress/e2e/tests/migration/migration-waves/crud.test.ts @@ -21,7 +21,6 @@ import { createMultipleStakeholders, deleteAllStakeholderGroups, deleteAllStakeholders, - deleteApplicationTableRows, deleteByList, login, } from "../../../../utils/utils"; @@ -62,7 +61,7 @@ describe(["@tier1"], "Migration Waves CRUD operations", () => { }); // Automates Polarion TC 332 - it("Migration Wave CRUD", function () { + it("Bug MTA-1281, Bug MTA-1343: Migration Wave CRUD", function () { const migrationWave = new MigrationWave( data.getRandomWord(8), now, @@ -105,7 +104,7 @@ describe(["@tier1"], "Migration Waves CRUD operations", () => { }); // Automates Polarion TC 333 - it("Migration Wave Application Association", function () { + it("Bug MTA-1281, Bug MTA-1343: Migration Wave Application Association", function () { applications = createMultipleApplications(2); const migrationWave = new MigrationWave( data.getRandomWord(8), diff --git a/cypress/e2e/tests/migration/migration-waves/export_to_jira_cloud.test.ts b/cypress/e2e/tests/migration/migration-waves/export_to_jira_cloud.test.ts index 5f7341494..f2fa110a7 100644 --- a/cypress/e2e/tests/migration/migration-waves/export_to_jira_cloud.test.ts +++ b/cypress/e2e/tests/migration/migration-waves/export_to_jira_cloud.test.ts @@ -58,7 +58,7 @@ describe(["@tier1", "@interop"], "Export Migration Wave to Jira Cloud", function }); Object.values(JiraIssueTypes).forEach((issueType) => { - it(`Create wave to export as ${issueType}`, function () { + it(`Bug MTA-1281: Create wave to export as ${issueType}`, function () { const apps = createMultipleApplications(2); applications.push(...apps); @@ -76,7 +76,7 @@ describe(["@tier1", "@interop"], "Export Migration Wave to Jira Cloud", function }); Object.values(JiraIssueTypes).forEach((issueType) => { - it(`Export wave as ${issueType} to Jira`, function () { + it(`Bug MTA-1281: Export wave as ${issueType} to Jira`, function () { jiraCloudInstance .getProject(Cypress.env("jira_atlassian_cloud_project")) .then((project) => { @@ -100,7 +100,7 @@ describe(["@tier1", "@interop"], "Export Migration Wave to Jira Cloud", function }); Object.values(JiraIssueTypes).forEach((issueType) => { - it(`Assert exports for ${issueType}`, function () { + it(`Bug MTA-1281: Assert exports for ${issueType}`, function () { cy.wait(30 * SEC); // Enough time to create both tasks and for them to be available in the Jira API jiraCloudInstance.getIssues(projectName).then((issues: JiraIssue[]) => { const waveIssues = issues.filter((issue) => { @@ -121,7 +121,7 @@ describe(["@tier1", "@interop"], "Export Migration Wave to Jira Cloud", function }); }); - after("Clear test data", function () { + after("Bug MTA-1281: Clear test data", function () { Object.values(wavesMap).forEach((wave: MigrationWave) => wave.delete()); applications.forEach((app) => app.delete()); jiraCloudInstance.delete(); diff --git a/cypress/e2e/tests/migration/migration-waves/export_to_jira_datacenter.test.ts b/cypress/e2e/tests/migration/migration-waves/export_to_jira_datacenter.test.ts index d0b643c81..b3931f44a 100644 --- a/cypress/e2e/tests/migration/migration-waves/export_to_jira_datacenter.test.ts +++ b/cypress/e2e/tests/migration/migration-waves/export_to_jira_datacenter.test.ts @@ -58,7 +58,7 @@ describe(["@tier1"], "Export Migration Wave to Jira Datacenter", function () { }); Object.values(JiraIssueTypes).forEach((issueType) => { - it(`Create wave to export as ${issueType}`, function () { + it(`Bug MTA-1281: Create wave to export as ${issueType}`, function () { const apps = createMultipleApplications(2); applications.push(...apps); @@ -76,7 +76,7 @@ describe(["@tier1"], "Export Migration Wave to Jira Datacenter", function () { }); Object.values(JiraIssueTypes).forEach((issueType) => { - it(`Export wave as ${issueType} to Jira`, function () { + it(`Bug MTA-1281: Export wave as ${issueType} to Jira`, function () { jiraInstance .getProjectById(Cypress.env("jira_stage_datacenter_project_id")) .then((project) => { @@ -100,7 +100,7 @@ describe(["@tier1"], "Export Migration Wave to Jira Datacenter", function () { }); Object.values(JiraIssueTypes).forEach((issueType) => { - it(`Assert exports for ${issueType}`, function () { + it(`Bug MTA-1281: Assert exports for ${issueType}`, function () { cy.wait(40 * SEC); // Enough time to create both tasks and for them to be available in the Jira API jiraInstance.getIssues(projectName).then((issues: JiraIssue[]) => { const waveIssues = issues.filter((issue) => { @@ -121,7 +121,7 @@ describe(["@tier1"], "Export Migration Wave to Jira Datacenter", function () { }); }); - after("Clear test data", function () { + after("Bug MTA-1281: Clear test data", function () { MigrationWave.open(true); deleteByList(Object.values(wavesMap) as MigrationWave[]); deleteByList(applications); diff --git a/cypress/e2e/tests/migration/migration-waves/field_validation.test.ts b/cypress/e2e/tests/migration/migration-waves/field_validation.test.ts index bc5923e4f..5105ce5b3 100644 --- a/cypress/e2e/tests/migration/migration-waves/field_validation.test.ts +++ b/cypress/e2e/tests/migration/migration-waves/field_validation.test.ts @@ -49,7 +49,7 @@ describe(["@tier1"], "Migration Waves Validations", () => { migrationWave.create(); }); - it("Name validations", function () { + it("Bug MTA-1281: Name validations", function () { const invalidMessage = "Name is invalid. The name must be between 3 and 120 characters"; MigrationWave.openNewForm(); cy.get(commonView.submitButton).should("be.disabled"); @@ -61,7 +61,7 @@ describe(["@tier1"], "Migration Waves Validations", () => { clickJs(cancelButton); }); - it("Dates Validations", function () { + it("Bug MTA-1281: Dates Validations", function () { MigrationWave.openNewForm(); MigrationWave.fillName(data.getRandomWord(5)); cy.get(commonView.submitButton).should("be.disabled"); @@ -98,7 +98,7 @@ describe(["@tier1"], "Migration Waves Validations", () => { cy.get(commonView.submitButton).should("be.enabled"); clickJs(cancelButton); }); - it("Duplicate Migration wave name validation", function () { + it("Bug MTA-1281: Duplicate Migration wave name validation", function () { const migrationWavesList: MigrationWave[] = []; const name = data.getRandomWord(8); const { start: startDate, end: endDate } = generateRandomDateRange(); diff --git a/cypress/e2e/tests/migration/migration-waves/filter.test.ts b/cypress/e2e/tests/migration/migration-waves/filter.test.ts index f72066285..f91ba8d26 100644 --- a/cypress/e2e/tests/migration/migration-waves/filter.test.ts +++ b/cypress/e2e/tests/migration/migration-waves/filter.test.ts @@ -16,11 +16,10 @@ import { login, clickByText, applySearchFilter, - preservecookies, deleteByList, createMultipleMigrationWaves, } from "../../../../utils/utils"; -import { button, name, clearAllFilters, SEC } from "../../../types/constants"; +import { button, name, clearAllFilters } from "../../../types/constants"; import * as data from "../../../../utils/data_utils"; import { MigrationWave } from "../../../models/migration/migration-waves/migration-wave"; @@ -37,7 +36,7 @@ describe(["@tier2"], "Migration waves filter validations", function () { migrationWavesList = createMultipleMigrationWaves(2); }); - it("Name filter validations", function () { + it("Bug MTA-1281: Name filter validations", function () { MigrationWave.open(); // Enter an existing display name substring and assert diff --git a/cypress/e2e/tests/migration/migration-waves/filter_applications.test.ts b/cypress/e2e/tests/migration/migration-waves/filter_applications.test.ts index d22dde92c..00d1c8e1f 100644 --- a/cypress/e2e/tests/migration/migration-waves/filter_applications.test.ts +++ b/cypress/e2e/tests/migration/migration-waves/filter_applications.test.ts @@ -66,7 +66,7 @@ describe( ); }); - it("Filter applications by name", function () { + it("Bug MTA-1281: Filter applications by name", function () { const migrationWave = new MigrationWave( data.getRandomWord(8), now, @@ -94,7 +94,7 @@ describe( migrationWave.delete(); }); - it("Filter applications by business service", function () { + it("Bug MTA-1281: Filter applications by business service", function () { const migrationWave = new MigrationWave( data.getRandomWord(8), now, @@ -122,7 +122,7 @@ describe( migrationWave.delete(); }); - it("Filter applications by owner", function () { + it("Bug MTA-1281: Filter applications by owner", function () { const migrationWave = new MigrationWave( data.getRandomWord(8), now, @@ -150,7 +150,7 @@ describe( migrationWave.delete(); }); - after("Perform test data clean up", function () { + after("Bug MTA-1281: Perform test data clean up", function () { deleteByList(applicationsList); deleteByList(businessservicesList); deleteByList(tagList); diff --git a/cypress/e2e/tests/migration/migration-waves/pagination.test.ts b/cypress/e2e/tests/migration/migration-waves/pagination.test.ts index 49f51511b..06943af34 100644 --- a/cypress/e2e/tests/migration/migration-waves/pagination.test.ts +++ b/cypress/e2e/tests/migration/migration-waves/pagination.test.ts @@ -34,7 +34,7 @@ describe(["@tier3"], "Migration Waves pagination validations", function () { migrationWavesList = createMultipleMigrationWaves(11); }); - it("Navigation button validations", function () { + it("Bug MTA-1281: Navigation button validations", function () { MigrationWave.open(); selectItemsPerPage(10); @@ -62,7 +62,7 @@ describe(["@tier3"], "Migration Waves pagination validations", function () { cy.get(commonView.firstPageButton).should("not.be.disabled"); }); - it("Items per page validations", function () { + it("Bug MTA-1281: Items per page validations", function () { MigrationWave.open(); selectItemsPerPage(10); @@ -84,7 +84,7 @@ describe(["@tier3"], "Migration Waves pagination validations", function () { }); }); - it("Page number validations", function () { + it("Bug MTA-1281: Page number validations", function () { MigrationWave.open(); selectItemsPerPage(10); @@ -97,7 +97,7 @@ describe(["@tier3"], "Migration Waves pagination validations", function () { goToPage(1); }); - after("Perform test data clean up", function () { + after("Bug MTA-1281: Perform test data clean up", function () { deleteByList(migrationWavesList); }); }); diff --git a/cypress/e2e/tests/migration/migration-waves/sort.test.ts b/cypress/e2e/tests/migration/migration-waves/sort.test.ts index 7d4a65d64..d0f8494c6 100644 --- a/cypress/e2e/tests/migration/migration-waves/sort.test.ts +++ b/cypress/e2e/tests/migration/migration-waves/sort.test.ts @@ -57,7 +57,7 @@ describe(["@tier2"], "Migration Waves sort validations", function () { businessServicesList = createMultipleBusinessServices(3); }); - it("Name sort validations", function () { + it("Bug MTA-1281: Name sort validations", function () { MigrationWave.open(); const unsortedList = getTableColumnData(name); @@ -76,7 +76,7 @@ describe(["@tier2"], "Migration Waves sort validations", function () { verifySortDesc(afterDescSortList, unsortedList); }); - it("Start date sort validations", function () { + it("Bug MTA-1281: Start date sort validations", function () { MigrationWave.open(); const unsortedList = getTableColumnData(startDate); @@ -92,7 +92,7 @@ describe(["@tier2"], "Migration Waves sort validations", function () { verifyDateSortDesc(afterDescSortList, unsortedList); }); - it("End date sort validations", function () { + it("Bug MTA-1281: End date sort validations", function () { MigrationWave.open(); const unsortedList = getTableColumnData(endDate); @@ -107,7 +107,7 @@ describe(["@tier2"], "Migration Waves sort validations", function () { const afterDescSortList = getTableColumnData(endDate); verifyDateSortDesc(afterDescSortList, unsortedList); }); - it("Sort Manage applications table", function () { + it("Bug MTA-1281: Sort Manage applications table", function () { for (let i = 0; i < 3; i++) { const appdata = { name: data.getRandomWord(4),