Skip to content
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

Merged
merged 4 commits into from
Aug 31, 2022
Merged

EWPP-1973: Remove usage of t() in test assertions. #1031

merged 4 commits into from
Aug 31, 2022

Conversation

yenyasinn
Copy link
Contributor

No description provided.

upchuk
upchuk previously requested changes Feb 10, 2022
Copy link
Contributor

@upchuk upchuk left a 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
Copy link
Contributor Author

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 {
Copy link
Contributor Author

@yenyasinn yenyasinn Feb 11, 2022

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.

@yenyasinn yenyasinn force-pushed the EWPP-1973 branch 2 times, most recently from 9fa9059 to af53478 Compare February 28, 2022 09:44
tests/features/site-branding.feature Show resolved Hide resolved
tests/src/Behat/OeThemeTestContext.php Show resolved Hide resolved
tests/src/Behat/OeThemeTestContext.php Outdated Show resolved Hide resolved
tests/src/Behat/OeThemeTestContext.php Show resolved Hide resolved
@22Alexandra 22Alexandra dismissed their stale review February 28, 2022 16:52

I don't fully agree with the changes on this PR so I'll leave it for someone else to check.

@22Alexandra 22Alexandra force-pushed the EWPP-1973 branch 2 times, most recently from e7fe079 to e5b3e6c Compare July 26, 2022 12:12
22Alexandra
22Alexandra previously approved these changes Jul 26, 2022
@yenyasinn yenyasinn merged commit 1899e32 into 3.x Aug 31, 2022
@yenyasinn yenyasinn deleted the EWPP-1973 branch August 31, 2022 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants