Skip to content

Commit

Permalink
Add new lcp templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Miraeld committed Jun 19, 2024
1 parent 860160d commit 5d66b2c
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 5 deletions.
56 changes: 53 additions & 3 deletions src/support/results/expectedResultsDesktop.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,9 @@
"/rocket-test-data/images/lcp/testjpeg.jpeg",
"/rocket-test-data/images/paper.jpeg",
"/test.png",
"/rocket-test-data/images/1_BDCYb3Yx8exGZVu5lLRPNw.png",
"/rocket-test-data/images/lcp/testavif.avif"
],
"enabled": false
"enabled": true
},
"lcp_picture_template2": {
"lcp": [
Expand All @@ -264,7 +263,7 @@
"/rocket-test-data/images/testjpg3.jpg",
"/rocket-test-data/images/lcp/testjpg2.jpg"
],
"enabled": false
"enabled": true
},
"lcp_bg_img_in_section": {
"lcp": [
Expand All @@ -291,5 +290,56 @@
"/wp-content/rocket-test-data/images/lcp/testjpg.jpg"
],
"enabled": true
},
"lcp_bg_relative_attribute_incss": {
"lcp": [
"/wp-content/rocket-test-data/images/lcp/testavif.avif",
"/wp-content/rocket-test-data/images/lcp/testjpg.jpg"
],
"viewport": [
"/wp-content/rocket-test-data/images/lcp/testjpeg.jpeg"
],
"enabled": true
},
"lcp_bg_img_in_header_template": {
"lcp": [
"/wp-content/uploads/2024/03/should_be_lcp_atf_image.jpg"
],
"viewport": [
"/wp-content/rocket-test-data/images/lcp/testjpg.jpg"
],
"enabled": true
},
"lcp_6647_svgbg_template": {
"lcp": [],
"viewport": [],
"enabled": true
},
"lcp_6599_template2": {
"lcp": [
"https://call.adame.io/images/adaptive.php?width=200&image_url=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/09af39a1-c481-4ad0-9283-aa4a4b6db0c9/original=true/00010-360343057.jpeg"
],
"viewport": [
"https://new.rocketlabsqa.ovh/file.php?url=img.jpg",
"https://new.rocketlabsqa.ovh/wp-content/rocket-test-data/images/lcp/testwebp.webp"
],
"enabled": true
},
"lcp_picture_media_type_mixed": {
"lcp": [
"https://new.rocketlabsqa.ovh/wp-content/rocket-test-data/images/lcp/istockphoto-1148323720-612x612-1-450x380.jpg"
],
"viewport": [
],
"enabled": true
},
"lcp_picture_relative": {
"lcp": [
"/wp-content/rocket-test-data/images/lcp/marchlarge1-scaled.jpg"
],
"viewport": [
"/wp-content/rocket-test-data/images/test3.gif"
],
"enabled": true
}
}
71 changes: 69 additions & 2 deletions src/support/results/expectedResultsMobile.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"https://discuss-assets.s3.amazonaws.com/original/3X/1/9/19823cc1f1f887d70755e0b500dd8ce2c51ba7f9.svg"
],
"viewport": [],
"enabled": false
"enabled": true
},
"lcp_no_dimensions_picture": {
"lcp": [
Expand Down Expand Up @@ -240,7 +240,7 @@
"/rocket-test-data/images/testjpg3.jpg",
"/rocket-test-data/images/lcp/testjpg2.jpg"
],
"enabled": false
"enabled": true
},
"lcp_bg_img_in_section": {
"lcp": [
Expand All @@ -267,5 +267,72 @@
"/wp-content/rocket-test-data/images/lcp/testjpg.jpg"
],
"enabled": true
},
"lcp_picture_template": {
"lcp": [
"/wp-content/rocket-test-data/images/test3.gif",
"/rocket-test-data/images/lcp/testjpg2.jpg",
"/rocket-test-data/images/testjpg3.jpg"
],
"viewport": [
"/rocket-test-data/images/lcp/testwebp.webp",
"/rocket-test-data/images/lcp/testjpeg.jpeg",
"/rocket-test-data/images/paper.jpeg",
"/test.png",
"/rocket-test-data/images/lcp/testavif.avif"
],
"enabled": true
},
"lcp_bg_relative_attribute_incss": {
"lcp": [
"/wp-content/rocket-test-data/images/lcp/testavif.avif",
"/wp-content/rocket-test-data/images/lcp/testjpg.jpg"
],
"viewport": [
"/wp-content/rocket-test-data/images/lcp/testjpeg.jpeg"
],
"enabled": true
},
"lcp_bg_img_in_header_template": {
"lcp": [
"/wp-content/uploads/2024/03/should_be_lcp_atf_image.jpg"
],
"viewport": [
"/wp-content/rocket-test-data/images/lcp/testjpg.jpg"
],
"enabled": true
},
"lcp_6647_svgbg_template": {
"lcp": [],
"viewport": [],
"enabled": true
},
"lcp_6599_template2": {
"lcp": [
"https://call.adame.io/images/adaptive.php?width=200&image_url=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/09af39a1-c481-4ad0-9283-aa4a4b6db0c9/original=true/00010-360343057.jpeg"
],
"viewport": [
"https://new.rocketlabsqa.ovh/file.php?url=img.jpg",
"https://new.rocketlabsqa.ovh/wp-content/rocket-test-data/images/lcp/testwebp.webp"
],
"enabled": true
},
"lcp_picture_media_type_mixed": {
"lcp": [
"https://new.rocketlabsqa.ovh/wp-content/rocket-test-data/images/lcp/istockphoto-1148323720-612x612-1-450x380.jpg"
],
"viewport": [
],
"enabled": true
},
"lcp_picture_relative": {
"lcp": [
"/wp-content/rocket-test-data/images/test3.gif"
],
"viewport": [
"/wp-content/rocket-test-data/images/lcp/marchlarge1-scaled.jpg",
"/wp-content/rocket-test-data/images/lcp/testwebp.webp"
],
"enabled": true
}
}

0 comments on commit 5d66b2c

Please sign in to comment.