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

Commit

Permalink
Fix automation tests fails (#324)
Browse files Browse the repository at this point in the history
* removing old validation message since the dates are now pre-filled

* removing validation
  • Loading branch information
resh-ie authored Jan 5, 2021
1 parent 3451e11 commit df6c2d9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion ui-automated-tests/src/flows/brief/atm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ const fillResponseCriteria = async (numberOfCriteria: number): Promise<ICriteria

const fillClosingDate = async () => {
await clickSaveContinue();
await utils.matchText("li", "You must add a closing date at least 2 days from now");
await utils.matchText("li", "You must add a contact number");
const now = new Date();
const future = new Date(now.setDate(now.getDate() + 14));
Expand Down
1 change: 0 additions & 1 deletion ui-automated-tests/src/flows/brief/rfx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ const fillEvaluationCriteria = async () => {

const fillClosingDate = async () => {
await clickSaveContinue();
await utils.matchText("li", "You must add a closing date at least 2 days from now");
await utils.matchText("li", "You must add a contact number");
const now = new Date();
const future = new Date(now.setDate(now.getDate() + 14));
Expand Down
3 changes: 0 additions & 3 deletions ui-automated-tests/src/flows/brief/training.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ const fillEvaluationCriteria = async () => {
await utils.selectCheck("includeWeightingsNiceToHave", "id");
await clickSaveContinue();
await utils.matchText("li", "You cannot have blank essential criteria.");
await utils.matchText("li", "Essential weightings must be greater than 0.");
await utils.matchText("li", "You cannot have blank essential criteria.");
await utils.matchText("li", "Desirable weightings must add up to 100%.");
await utils.selectCheck("includeWeightingsNiceToHave", "id");
await utils.clickLink("Add another criteria");
await utils.type("essential_criteria_0", { numberOfWords: 50 });
Expand All @@ -101,7 +99,6 @@ const fillEvaluationCriteria = async () => {

const fillClosingDate = async () => {
await clickSaveContinue();
await utils.matchText("li", "You must add a closing date at least 2 days from now");
await utils.matchText("li", "You must add a contact number");
const now = new Date();
const future = new Date(now.setDate(now.getDate() + 14));
Expand Down

0 comments on commit df6c2d9

Please sign in to comment.