Skip to content

Commit

Permalink
Mark bug and add success message validation (#731)
Browse files Browse the repository at this point in the history
* [RFR]mark bug and add success message validation

Signed-off-by: Neilhamza <[email protected]>

* add prefix to success validation message

Signed-off-by: Neilhamza <[email protected]>

---------

Signed-off-by: Neilhamza <[email protected]>
  • Loading branch information
Neilhamza authored Oct 4, 2023
1 parent 86bc38e commit 153dea2
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ import {
exists,
notExists,
selectUserPerspective,
checkSuccessAlert,
} from "../../../../../utils/utils";
import { navTab } from "../../../../views/menu.view";
import { BusinessServices } from "../../../../models/migration/controls/businessservices";
import { Stakeholders } from "../../../../models/migration/controls/stakeholders";
import { tdTag, businessServices, migration } from "../../../../types/constants";
import * as data from "../../../../../utils/data_utils";
import { stakeHoldersTable } from "../../../../views/stakeholders.view";
import * as commonView from "../../../../views/common.view";

describe(["@tier1"], "Business service linked to stakeholder", () => {
beforeEach("Login", function () {
Expand All @@ -43,12 +45,16 @@ describe(["@tier1"], "Business service linked to stakeholder", () => {
cy.intercept("GET", "/hub/stakeholder*").as("getStakeholders");
});

it("stakeholder attach, update and delete dependency on business service", function () {
it("Bug MTA-1375: stakeholder attach, update and delete dependency on business service", function () {
selectUserPerspective(migration);

// Create new stakeholder
const stakeholder = new Stakeholders(data.getEmail(), data.getFullName());
stakeholder.create();
checkSuccessAlert(
commonView.successAlertMessage,
`Success alert:Stakeholder was successfully created.`
);
cy.wait("@postStakeholder");

// Create new business service and attach a stakeholder
Expand All @@ -58,6 +64,10 @@ describe(["@tier1"], "Business service linked to stakeholder", () => {
stakeholder.name
);
businessservice.create();
checkSuccessAlert(
commonView.successAlertMessage,
`Success alert:Business service ${businessservice.name} was successfully created.`
);
cy.get("@postBusinessService");
exists(businessservice.name);

Expand Down

0 comments on commit 153dea2

Please sign in to comment.