WORLDSERVICE-284 Automated testing to determine the weight of lite pages#12561
Conversation
Co-authored-by: Karina Thomas <58214768+karinathomasbbc@users.noreply.github.com>
Co-authored-by: Karina Thomas <58214768+karinathomasbbc@users.noreply.github.com>
Co-authored-by: Karina Thomas <58214768+karinathomasbbc@users.noreply.github.com>
Co-authored-by: Karina Thomas <58214768+karinathomasbbc@users.noreply.github.com>
Co-authored-by: Karina Thomas <58214768+karinathomasbbc@users.noreply.github.com>
Co-authored-by: Karina Thomas <58214768+karinathomasbbc@users.noreply.github.com>
|
I've noticed quite a big discrepancy between On Demand TV Brand pages - looks like https://www.bbc.com/gujarati/bbc_gujarati_tv/tv_programmes/w13xttqr.lite?renderer_env=live 404s. I think we should add some error checking, and ensure the response we get back from the curl is a 200. |
|
One to note is We may want to do something to highlight 404s and either not try and calculate the size and/or display a warning that the route 404'd? |
…f github.com:bbc/simorgh into SPIKE-WORLDSERVICE-284-automate-litepage-weight-test
|
|
||
| console.table(testResults.sort((a, b) => b.localSizeKb - a.localSizeKb)); | ||
|
|
||
| const failures = testResults.filter(({ result }) => result === '❌'); |
There was a problem hiding this comment.
Happy since this works and it is a developer script. Though I'm not sure I've seen a strict equality check against an emoji before! ===😄
Isabella-Mitchell
left a comment
There was a problem hiding this comment.
Looks good - just a test to fix
…f github.com:bbc/simorgh into SPIKE-WORLDSERVICE-284-automate-litepage-weight-test

Resolves JIRA: WORLDSERVICE-284
Summary
Adds a script to check page weight of lite pages on live and local, running as part of the local server github action.
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