-
Notifications
You must be signed in to change notification settings - Fork 257
Tests for all pages #13222
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
base: latest
Are you sure you want to change the base?
Tests for all pages #13222
Conversation
…TestsForAllPages
…TestsForAllPages
…TestsForAllPages
tests, | ||
}, | ||
{ | ||
path: '/kyrgyz', |
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.
Removed as there are multiple images without alt text
service: '/serbian/cyr', | ||
tests, | ||
}, | ||
{ |
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.
As above, multiple images without alt text, but we already have serbian as the service with variant, so can live without these tests
checkA11y(); | ||
}); | ||
|
||
it('should render topic tags if they are in the json, and they should navigate to correct topic page', () => { |
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.
Related topics only exist on Article + Media Article pages, so have moved it to the respective test pages
item => | ||
!item.parentNode.closest( | ||
'section[data-testid="portrait-video-carousel"]', | ||
), |
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.
I should probably annotate this in the code, but for now, the PV carousel icons are jpgs not webp.
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.
Updated fixture data so that all images are webp
<section | ||
role="region" | ||
aria-labelledby="bbcMediaPlayer0" | ||
aria-labelledby={`bbcMediaPlayer${nthCurationByStyleAndProminence - 1}`} |
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 to fix an issue on the localhost:7080/dari page which has 2 media players.
Resolves JIRA:
Summary
A very high-level summary of easily-reproducible changes that can be understood by non-devs, and why these changes where made.
Code changes
Developer Checklist
Testing
Ready-For-Test, Local
)Ready-For-Test, Test
)Ready-For-Test, Preview
)Ready-For-Test, Live
)Additional Testing Steps
Useful Links