-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EWPP-1973: Remove usage of t() in test assertions. #1031
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is going severely out of scope IMO.
@@ -72,3 +72,41 @@ Feature: Site branding | |||
Then I should see the "page header" element in the "page" | |||
When I am on "the user registration page" | |||
Then I should see the "page header" element in the "page" | |||
|
|||
@javascript @enable-non-eu-language |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a refactoring of the test from EWPP-1854. Since we need to ensure correctness of the data in the logo in different languages we need to pass them into the Behat context.
*/ | ||
public function assertFooter(string $component_library, bool $presence): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assertFooter includes 3 functions - checks EU footer, checks EC footer, ensures that footer doesn't exist.
For logic simplification I've rewritten it, otherwise it is mess of conditions.
9fa9059
to
af53478
Compare
I don't fully agree with the changes on this PR so I'll leave it for someone else to check.
e7fe079
to
e5b3e6c
Compare
No description provided.