Skip to content

Commit

Permalink
test: improve test stability
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 22, 2024
1 parent 3baadb5 commit 42646f4
Show file tree
Hide file tree
Showing 38 changed files with 524 additions and 731 deletions.
14 changes: 14 additions & 0 deletions test/e2e/__snapshots__/aliyun.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"requests": [
"https://assets.yanbot.tech/nuxt.png?image_process=quality,Q_50",
"https://assets.yanbot.tech/nuxt.png?image_process=resize,fw_300,fh_300",
"https://assets.yanbot.tech/nuxt.png?image_process=resize,fw_900,fh_200/format,webp/quality,Q_80",
"https://assets.yanbot.tech/nuxt.png?image_process=resize,h_200",
],
"sources": [
"https://assets.yanbot.tech/nuxt.png?image_process=resize,h_200",
"https://assets.yanbot.tech/nuxt.png?image_process=resize,fw_300,fh_300",
"https://assets.yanbot.tech/nuxt.png?image_process=quality,Q_50",
"https://assets.yanbot.tech/nuxt.png?image_process=resize,fw_900,fh_200/format,webp/quality,Q_80",
],
}
8 changes: 8 additions & 0 deletions test/e2e/__snapshots__/awsAmplify.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"requests": [
"https://example.amplifyapp.com/_amplify/image?url=%2Ftest.jpg&w=320&q=100",
],
"sources": [
"https://example.amplifyapp.com/_amplify/image?url=%2Ftest.jpg&w=320&q=100",
],
}
12 changes: 12 additions & 0 deletions test/e2e/__snapshots__/bunny.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"requests": [
"https://bunnyoptimizerdemo.b-cdn.net/bunny1.jpg?sharpen=true&aspect_ratio=16:9&width=1000&quality=80",
"https://bunnyoptimizerdemo.b-cdn.net/bunny2.jpg?crop=750,750&crop_gravity=north",
"https://bunnyoptimizerdemo.b-cdn.net/bunny3.jpg?flop=true&auto_optimize=high",
],
"sources": [
"https://bunnyoptimizerdemo.b-cdn.net/bunny1.jpg?sharpen=true&aspect_ratio=16:9&width=1000&quality=80",
"https://bunnyoptimizerdemo.b-cdn.net/bunny2.jpg?crop=750,750&crop_gravity=north",
"https://bunnyoptimizerdemo.b-cdn.net/bunny3.jpg?flop=true&auto_optimize=high",
],
}
8 changes: 8 additions & 0 deletions test/e2e/__snapshots__/caisy.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"requests": [
"https://assets.caisy.io/assets/b76210be-a043-4989-98df-ecaf6c6e68d8/056c27e2-81f5-4cd3-b728-cef181dfe7dc/d83ea6f0-f90a-462c-aebd-b8bc615fdce0pexelsmiguelapadrinan1591056.jpg?w=500&h=500&q=90",
],
"sources": [
"https://assets.caisy.io/assets/b76210be-a043-4989-98df-ecaf6c6e68d8/056c27e2-81f5-4cd3-b728-cef181dfe7dc/d83ea6f0-f90a-462c-aebd-b8bc615fdce0pexelsmiguelapadrinan1591056.jpg?w=500&h=500&q=90",
],
}
8 changes: 8 additions & 0 deletions test/e2e/__snapshots__/cloudflare.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"requests": [
"https://that-test.site/cdn-cgi/image/h=300,fit=contain/https://s3.that-test.site/burger.jpeg",
],
"sources": [
"https://that-test.site/cdn-cgi/image/h=300,fit=contain/https://s3.that-test.site/burger.jpeg",
],
}
14 changes: 14 additions & 0 deletions test/e2e/__snapshots__/cloudimage.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"requests": [
"https://2412819702-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlIgyYELwJG6odLEyCM6i%2Fuploads%2FAHcbuKRYbIlBWO4cJ88b%2Fimage.png?alt=media&token=62ff753d-83eb-4e3f-932c-96eb72d455f1?width=400&height=250&force_format=webp&q=65&func=fit",
"https://demo.cloudimg.io/v7/sample.li/bag.jpg?width=500&height=500&func=fit",
"https://demo.cloudimg.io/v7/sample.li/boat.jpg?width=800&height=800&q=75&func=crop",
"https://demo.cloudimg.io/v7/sample.li/img.jpg?width=300&height=300&force_format=webp&func=cover",
],
"sources": [
"https://2412819702-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlIgyYELwJG6odLEyCM6i%2Fuploads%2FAHcbuKRYbIlBWO4cJ88b%2Fimage.png?alt=media&token=62ff753d-83eb-4e3f-932c-96eb72d455f1?width=400&height=250&force_format=webp&q=65&func=fit",
"https://demo.cloudimg.io/v7/sample.li/bag.jpg?width=500&height=500&func=fit",
"https://demo.cloudimg.io/v7/sample.li/boat.jpg?width=800&height=800&q=75&func=crop",
"https://demo.cloudimg.io/v7/sample.li/img.jpg?width=300&height=300&force_format=webp&func=cover",
],
}
12 changes: 12 additions & 0 deletions test/e2e/__snapshots__/cloudinary.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"requests": [
"https://res.cloudinary.com/nuxt/image/upload/f_auto,q_auto,w_200,h_200,c_crop/remote/nuxt-org/blog/going-full-static/main",
"https://res.cloudinary.com/nuxt/image/upload/f_auto,q_auto,w_200,h_200,c_thumb/remote/nuxt-org/blog/going-full-static/main",
"https://res.cloudinary.com/nuxt/image/upload/f_auto,q_auto/remote/nuxt-org/blog/going-full-static/main",
],
"sources": [
"https://res.cloudinary.com/nuxt/image/upload/f_auto,q_auto/remote/nuxt-org/blog/going-full-static/main",
"https://res.cloudinary.com/nuxt/image/upload/f_auto,q_auto,w_200,h_200,c_crop/remote/nuxt-org/blog/going-full-static/main",
"https://res.cloudinary.com/nuxt/image/upload/f_auto,q_auto,w_200,h_200,c_thumb/remote/nuxt-org/blog/going-full-static/main",
],
}
12 changes: 12 additions & 0 deletions test/e2e/__snapshots__/contentful.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"requests": [
"https://images.ctfassets.net/fbr4i5aajb0w/6y0psij2o02YIwGScEo4kS/1b3f09b8fcedece1d17ea58417b55eb4/photo-1421986527537-888d998adb74.jpeg",
"https://images.ctfassets.net/fbr4i5aajb0w/6y0psij2o02YIwGScEo4kS/1b3f09b8fcedece1d17ea58417b55eb4/photo-1421986527537-888d998adb74.jpeg?w=200&h=133",
"https://images.ctfassets.net/fbr4i5aajb0w/6y0psij2o02YIwGScEo4kS/1b3f09b8fcedece1d17ea58417b55eb4/photo-1421986527537-888d998adb74.jpeg?w=200&h=200&fit=fill",
],
"sources": [
"https://images.ctfassets.net/fbr4i5aajb0w/6y0psij2o02YIwGScEo4kS/1b3f09b8fcedece1d17ea58417b55eb4/photo-1421986527537-888d998adb74.jpeg",
"https://images.ctfassets.net/fbr4i5aajb0w/6y0psij2o02YIwGScEo4kS/1b3f09b8fcedece1d17ea58417b55eb4/photo-1421986527537-888d998adb74.jpeg?w=200&h=133",
"https://images.ctfassets.net/fbr4i5aajb0w/6y0psij2o02YIwGScEo4kS/1b3f09b8fcedece1d17ea58417b55eb4/photo-1421986527537-888d998adb74.jpeg?w=200&h=200&fit=fill",
],
}
14 changes: 14 additions & 0 deletions test/e2e/__snapshots__/directus.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"requests": [
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee",
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee.jpg?withoutEnlargement=true&width=1024&height=256&fit=cover",
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee?width=256&format=webp",
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee?withoutEnlargement=true&transforms=%5B%5B%22blur%22%2C4%5D%2C%5B%22negate%22%5D%5D&width=256&format=webp",
],
"sources": [
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee",
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee.jpg?withoutEnlargement=true&width=1024&height=256&fit=cover",
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee?width=256&format=webp",
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee?withoutEnlargement=true&transforms=%5B%5B%22blur%22%2C4%5D%2C%5B%22negate%22%5D%5D&width=256&format=webp",
],
}
12 changes: 12 additions & 0 deletions test/e2e/__snapshots__/edgio.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"requests": [
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&height=200",
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&quality=10",
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&width=50",
],
"sources": [
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&height=200",
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&width=50",
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&quality=10",
],
}
10 changes: 10 additions & 0 deletions test/e2e/__snapshots__/fastly.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"requests": [
"https://www.fastly.io/image.jpg",
"https://www.fastly.io/plant.jpeg",
],
"sources": [
"https://www.fastly.io/image.jpg",
"https://www.fastly.io/plant.jpeg",
],
}
8 changes: 8 additions & 0 deletions test/e2e/__snapshots__/glide.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"requests": [
"https://glide.herokuapp.com/1.0/kayaks.jpg?gam=0.9&sharp=8&w=1000&q=70",
],
"sources": [
"https://glide.herokuapp.com/1.0/kayaks.jpg?gam=0.9&sharp=8&w=1000&q=70",
],
}
8 changes: 8 additions & 0 deletions test/e2e/__snapshots__/gumlet.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"requests": [
"https://demo.gumlet.io/sea.jpeg?w=300&h=300&fit=crop",
],
"sources": [
"https://demo.gumlet.io/sea.jpeg?w=300&h=300&fit=crop",
],
}
12 changes: 12 additions & 0 deletions test/e2e/__snapshots__/hygraph.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"requests": [
"https://eu-central-1-shared-euc1-02.graphassets.com/cltsj3mii0pvd07vwb5cyh1ig/resize=width:300,height:300,fit:clip/output=format:jpeg/cltsrex89477t08unlckqx9ue",
"https://eu-central-1-shared-euc1-02.graphassets.com/cltsj3mii0pvd07vwb5cyh1ig/resize=width:500,fit:max/auto_image/cltsrex89477t08unlckqx9ue",
"https://eu-central-1-shared-euc1-02.graphassets.com/cltsj3mii0pvd07vwb5cyh1ig/resize=width:500,height:500,fit:crop/quality=value:90/compress=metadata:true/auto_image/cltsrex89477t08unlckqx9ue",
],
"sources": [
"https://eu-central-1-shared-euc1-02.graphassets.com/cltsj3mii0pvd07vwb5cyh1ig/resize=width:500,height:500,fit:crop/quality=value:90/compress=metadata:true/auto_image/cltsrex89477t08unlckqx9ue",
"https://eu-central-1-shared-euc1-02.graphassets.com/cltsj3mii0pvd07vwb5cyh1ig/resize=width:500,fit:max/auto_image/cltsrex89477t08unlckqx9ue",
"https://eu-central-1-shared-euc1-02.graphassets.com/cltsj3mii0pvd07vwb5cyh1ig/resize=width:300,height:300,fit:clip/output=format:jpeg/cltsrex89477t08unlckqx9ue",
],
}
8 changes: 8 additions & 0 deletions test/e2e/__snapshots__/imageengine.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"requests": [
"https://abc123.imgeng.in/images/image.jpg?imgeng=/meta_true/s_10/w_300/h_300/m_box",
],
"sources": [
"https://abc123.imgeng.in/images/image.jpg?imgeng=/meta_true/s_10/w_300/h_300/m_box",
],
}
16 changes: 16 additions & 0 deletions test/e2e/__snapshots__/imagekit.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"requests": [
"https://ik.imagekit.io/demo/girl.jpeg",
"https://ik.imagekit.io/demo/girl.jpeg?tr=fo-auto,w-200,h-300",
"https://ik.imagekit.io/demo/girl.jpeg?tr=fo-face,r-max,w-150,h-150",
"https://ik.imagekit.io/demo/girl.jpeg?tr=fo-face,w-150,h-150",
"https://ik.imagekit.io/demo/girl.jpeg?tr=w-400,h-300,c-force",
],
"sources": [
"https://ik.imagekit.io/demo/girl.jpeg",
"https://ik.imagekit.io/demo/girl.jpeg?tr=w-400,h-300,c-force",
"https://ik.imagekit.io/demo/girl.jpeg?tr=fo-auto,w-200,h-300",
"https://ik.imagekit.io/demo/girl.jpeg?tr=fo-face,w-150,h-150",
"https://ik.imagekit.io/demo/girl.jpeg?tr=fo-face,r-max,w-150,h-150",
],
}
8 changes: 8 additions & 0 deletions test/e2e/__snapshots__/imgix.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"requests": [
"https://assets.imgix.net/remote/nuxt-org/blog/woman-hat.jpg?w=300&h=300&fit=crop",
],
"sources": [
"https://assets.imgix.net/remote/nuxt-org/blog/woman-hat.jpg?w=300&h=300&fit=crop",
],
}
14 changes: 14 additions & 0 deletions test/e2e/__snapshots__/ipx.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"requests": [
"/_ipx/s_300x300/images/colors.jpg",
"/_ipx/s_300x300/images/everest.jpg",
"/_ipx/s_300x300/images/tacos.svg",
"/_ipx/s_300x300/unsplash/photo-1606112219348-204d7d8b94ee",
],
"sources": [
"/_ipx/s_300x300/images/colors.jpg",
"/_ipx/s_300x300/images/everest.jpg",
"/_ipx/s_300x300/images/tacos.svg",
"/_ipx/s_300x300/unsplash/photo-1606112219348-204d7d8b94ee",
],
}
12 changes: 12 additions & 0 deletions test/e2e/__snapshots__/layer0.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"requests": [
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&height=200",
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&quality=10",
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&width=50",
],
"sources": [
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&height=200",
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&width=50",
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&quality=10",
],
}
10 changes: 10 additions & 0 deletions test/e2e/__snapshots__/netlifyImageCdn.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"requests": [
"https://netlify-photo-gallery.netlify.app/.netlify/images?w=100&h=100&fit=cover&url=%2Fimages%2Fapple.jpg",
"https://netlify-photo-gallery.netlify.app/.netlify/images?w=400&h=300&url=%2Fimages%2Fapple.jpg",
],
"sources": [
"https://netlify-photo-gallery.netlify.app/.netlify/images?w=100&h=100&fit=cover&url=%2Fimages%2Fapple.jpg",
"https://netlify-photo-gallery.netlify.app/.netlify/images?w=400&h=300&url=%2Fimages%2Fapple.jpg",
],
}
10 changes: 10 additions & 0 deletions test/e2e/__snapshots__/netlifyLargeMedia.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"requests": [
"https://netlify-photo-gallery.netlify.app/images/apple.jpg?w=101&nf_resize=fit",
"https://netlify-photo-gallery.netlify.app/images/apple.jpg?w=200&h=200&nf_resize=smartcrop",
],
"sources": [
"https://netlify-photo-gallery.netlify.app/images/apple.jpg?w=101&nf_resize=fit",
"https://netlify-photo-gallery.netlify.app/images/apple.jpg?w=200&h=200&nf_resize=smartcrop",
],
}

0 comments on commit 42646f4

Please sign in to comment.