Skip to content

Commit

Permalink
Removed outdated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
slkendell-mt committed Jan 31, 2024
1 parent 1510fc0 commit 68036f4
Showing 1 changed file with 0 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
givenIHaveACookieSetAndIVisit,
givenIHaveSignedIn,
givenIHaveTyped,
requiredFieldErrorMessage,
thenIShouldSeeAnErrorMessageThatContains,
thenIShouldSeeAnErrorSummaryLinkThatContains,
thenMyFocusMovesTo,
Expand Down Expand Up @@ -33,49 +32,6 @@ describe("As a beacon owner, I want to submit information about my beacon", () =
thenTheUrlShouldContain(nextPageUrl);
});

describe("the Maximum capacity field", () => {
it("displays errors if no maximum vessel capacity is submitted", () => {
whenIType(" ", maxCapacityFieldSelector);
whenIClickContinue();
thenIShouldSeeAnErrorSummaryLinkThatContains(
"Maximum number of persons",
requiredFieldErrorMessage
);

thenIShouldSeeAnErrorMessageThatContains(
"Maximum number of persons",
requiredFieldErrorMessage
);

whenIClickOnTheErrorSummaryLinkContaining(
"Maximum number of persons",
requiredFieldErrorMessage
);
thenMyFocusMovesTo(maxCapacityFieldSelector);
});

it("displays errors if a none-integer value is submitted", () => {
const mustBeAWholeNumberErrorMessageContains = [
"Maximum number of persons",
"whole number",
];
whenIType("1.3", maxCapacityFieldSelector);
whenIClickContinue();
thenIShouldSeeAnErrorSummaryLinkThatContains(
...mustBeAWholeNumberErrorMessageContains
);

thenIShouldSeeAnErrorMessageThatContains(
...mustBeAWholeNumberErrorMessageContains
);

whenIClickOnTheErrorSummaryLinkContaining(
...mustBeAWholeNumberErrorMessageContains
);
thenMyFocusMovesTo(maxCapacityFieldSelector);
});
});

describe("the Area of operation field", () => {
it("displays errors if more than 250 characters are submitted", () => {
const tooLongErrorMessageContains = [
Expand Down

0 comments on commit 68036f4

Please sign in to comment.