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

MWPW-157506: Localized Placeholder Texts on English Pages #3177

Open
wants to merge 4 commits into
base: stage
Choose a base branch
from

Conversation

sivasadobe
Copy link
Contributor

  • Adds functionality to conditionally use geo-specific placeholders based on disable-geo-placeholders meta tag.
  • If the tag is absent or set to "off", the application receives geo-specific placeholders. If the tag is set to "on", it defaults to generic placeholders.

Resolves: MWPW-157506

GH: https://github.com/orgs/adobecom/discussions/2791

Test URLs:

Milo

CC

Copy link
Contributor

aem-code-sync bot commented Nov 12, 2024

Page Scores Audits Google
📱 /drafts/siva/157506/placeholder-example PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ /drafts/siva/157506/placeholder-example PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.38%. Comparing base (df454db) to head (08cc461).
Report is 8 commits behind head on stage.

Additional details and impacted files
@@           Coverage Diff           @@
##            stage    #3177   +/-   ##
=======================================
  Coverage   96.38%   96.38%           
=======================================
  Files         245      245           
  Lines       56651    56689   +38     
=======================================
+ Hits        54601    54641   +40     
+ Misses       2050     2048    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@hparra hparra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This "after" page 404s for me: https://mwpw-157506--milo--adobecom.hlx.page/drafts/siva/157506/placeholder-example

CC before/after checks out:

Screenshot 2024-11-13 at 21 37 24 Screenshot 2024-11-13 at 21 37 37

axe unnecessary regex in test.


it('Replaces geo-specific placeholders when disable-geo-placeholders meta content is "off" or meta tag not defined', async () => {
config.locale.contentRoot = '/test/features/placeholders/bg';
const regex = /{{(.*?)}}|%7B%7B(.*?)%7D%7D/g;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixme: regex like this in a test caught my eye :suspect: luckily it's unnecessary because it's already default parameter in replaceText (107)

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