Skip to content

Commit

Permalink
Fix error messages for text condition
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Jan 17, 2024
1 parent 73547ad commit 973e0d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Yapoml.Playwright/Components/Conditions/TextConditions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected override string GetIsNotEmptyError(string latestValue)

protected override string GetStartsWithError(string latestValue, string expectedValue)
{
return $"Text '{latestValue}' of the {_elementHandler.ComponentMetadata.Name} component is not '{latestValue}' yet.";
return $"Text '{latestValue}' of the {_elementHandler.ComponentMetadata.Name} component does not '{expectedValue}' yet.";
}

protected override string GetDoesNotStartWithError(string latestValue, string expectedValue)
Expand All @@ -53,7 +53,7 @@ protected override string GetDoesNotStartWithError(string latestValue, string ex

protected override string GetEndsWithError(string latestValue, string expectedValue)
{
return $"Text '{latestValue}' of the {_elementHandler.ComponentMetadata.Name} component is not '{expectedValue}' yet.";
return $"Text '{latestValue}' of the {_elementHandler.ComponentMetadata.Name} component does not end '{expectedValue}' yet.";
}

protected override string GetDoesNotEndWithError(string latestValue, string expectedValue)
Expand Down

0 comments on commit 973e0d0

Please sign in to comment.