Skip to content

Commit 44b3af1

Browse files
authored
Test new tech report in Lighthouse on every commit (#929)
* Test new tech report on every commit * More tests * Fixes * Remove params
1 parent ebd6ba8 commit 44b3af1

4 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/lighthouse/lighthouse-config-dev.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"assert": {
44
"preset": "lighthouse:recommended",
55
"assertions": {
6+
"categories:accessibility": ["error", {"minScore": 1}],
7+
"categories:best-practices": ["error", {"minScore": 1}],
68
"bf-cache": "off",
79
"bootup-time": "off",
810
"canonical": "off",

static/css/techreport/techreport.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ select {
568568
display: flex;
569569
column-gap: 1rem;
570570
font-size: 0.825rem;
571+
padding: 0.625rem 0;
571572
}
572573

573574
/* Table */

tools/scripts/set_lighthouse_urls.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ BASE_URLS=$(cat <<-END
3737
http://127.0.0.1:8080/
3838
http://127.0.0.1:8080/reports
3939
http://127.0.0.1:8080/reports/state-of-the-web
40+
http://127.0.0.1:8080/reports/techreport/landing
41+
http://127.0.0.1:8080/reports/techreport/drilldown
42+
http://127.0.0.1:8080/reports/techreport/comparison
4043
END
4144
)
4245

tools/test/test_status_codes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ const test_status_codes = async () => {
6464
await test_status_code('/reports/state-of-the-web?lens=drupal', 200);
6565
await test_status_code('/reports/state-of-the-web?start=2018_04_15&end=latest', 200);
6666
await test_status_code('/reports/state-of-the-web?view=grid', 200);
67+
await test_status_code('/reports/techreport/landing', 200);
68+
await test_status_code('/reports/techreport/drilldown', 200);
69+
await test_status_code('/reports/techreport/comparison', 200);
6770
await test_status_code('/reports/cwv-tech', 302, 'https://datastudio.google.com/u/0/reporting/55bc8fad-44c2-4280-aa0b-5f3f0cd3d2be/page/M6ZPC');
6871

6972
// Test non-sitemap pages

0 commit comments

Comments
 (0)