Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
Cleaning up UI-Automation tests (#339)
Browse files Browse the repository at this point in the history
* updating field name

* removing id in selectCheck
  • Loading branch information
resh-ie authored Jan 20, 2021
1 parent 2062b98 commit a0ed5da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ui-automated-tests/src/flows/brief/atm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const fillClosingDate = async () => {
};

const publishBrief = async () => {
await utils.selectCheck("cb-declaration", "id");
await utils.selectCheck("cb-declaration");
await utils.clickButton("Publish");
await utils.matchText("h1", "Your opportunity is now live.");
};
Expand Down
4 changes: 2 additions & 2 deletions ui-automated-tests/src/flows/brief/rfx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ const fillClosingDate = async () => {
await utils.type("day", { value: `${format(future, "dd")}` });
await utils.type("month", { value: `${format(future, "MM")}` });
await utils.type("year", { value: `${format(future, "yyyy")}` });
await utils.type("contact", { value: "0123456789" });
await utils.type("contactNumber", { value: "01234455667733" });
await utils.selectCheck("comprehensiveTerms", "id");
await utils.type("internalReference", { numberOfCharacters: 100 });
await clickSaveContinue();
};

const fillPublishBrief = async () => {
await utils.selectCheck("cb-declaration", "id");
await utils.selectCheck("cb-declaration");
await utils.clickButton("Publish");
await utils.matchText("h1", "Your opportunity is now live, and the invited sellers have been notified.");
};
Expand Down
2 changes: 1 addition & 1 deletion ui-automated-tests/src/flows/brief/specialist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const fillAdditionalInformation = async () => {
};

const publishBrief = async () => {
await utils.selectCheck("cb-declaration", "id");
await utils.selectCheck("cb-declaration");
await utils.clickButton("Publish");
};

Expand Down
4 changes: 2 additions & 2 deletions ui-automated-tests/src/flows/brief/training.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ const fillClosingDate = async () => {
await utils.type("day", { value: `${format(future, "dd")}` });
await utils.type("month", { value: `${format(future, "MM")}` });
await utils.type("year", { value: `${format(future, "yyyy")}` });
await utils.type("contact", { value: "0123456789" });
await utils.type("contactNumber", { value: "01234455667733" });
await utils.selectCheck("comprehensiveTerms", "id");
await utils.type("internalReference", { numberOfCharacters: 100 });
await clickSaveContinue();
};

const fillPublishBrief = async () => {
await utils.selectCheck("cb-declaration", "id");
await utils.selectCheck("cb-declaration");
await utils.clickButton("Publish");
await utils.matchText("h1", "Your opportunity is now live, and the invited sellers have been notified.");
};
Expand Down

0 comments on commit a0ed5da

Please sign in to comment.