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

WSTEAMA-1407: Add script switch link to the Uzbek homepage #12052

Open
wants to merge 2 commits into
base: latest
Choose a base branch
from

Conversation

karinathomasbbc
Copy link
Contributor

@karinathomasbbc karinathomasbbc commented Oct 16, 2024

Resolves JIRA https://jira.dev.bbc.co.uk/browse/WSTEAMA-1407

Overall changes

Enables the script switch link on Uzbek homepages

Code changes

  • Render script switch link if page type is Article or Home page
  • Add unit tests

Testing

Unit Tests
http://localhost:7080/uzbek/lat?renderer_env=test
http://localhost:7080/uzbek/cyr?renderer_env=test

Screenshot 2024-10-16 at 17 36 19
Screenshot 2024-10-16 at 17 36 27

Helpful Links

Add Links to useful resources related to this PR if applicable.

Coding Standards

Repository use guidelines

@karinathomasbbc karinathomasbbc self-assigned this Oct 16, 2024
@@ -134,7 +135,7 @@ describe(`Header`, () => {
expect(container.querySelectorAll(scriptLinkSelector).length).toBe(1);
});

it('should not render script link for uzbek when it is not an article page ', () => {
it('should not render script link for uzbek when it is not a supported page type', () => {
Copy link
Contributor Author

@karinathomasbbc karinathomasbbc Oct 17, 2024

Choose a reason for hiding this comment

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

Add all other page types to array & use it.each

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.

1 participant