Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 42646f4

Browse files
committed
test: improve test stability
1 parent 3baadb5 commit 42646f4

38 files changed

+524
-731
lines changed

test/e2e/__snapshots__/aliyun.json5

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"requests": [
3+
"https://assets.yanbot.tech/nuxt.png?image_process=quality,Q_50",
4+
"https://assets.yanbot.tech/nuxt.png?image_process=resize,fw_300,fh_300",
5+
"https://assets.yanbot.tech/nuxt.png?image_process=resize,fw_900,fh_200/format,webp/quality,Q_80",
6+
"https://assets.yanbot.tech/nuxt.png?image_process=resize,h_200",
7+
],
8+
"sources": [
9+
"https://assets.yanbot.tech/nuxt.png?image_process=resize,h_200",
10+
"https://assets.yanbot.tech/nuxt.png?image_process=resize,fw_300,fh_300",
11+
"https://assets.yanbot.tech/nuxt.png?image_process=quality,Q_50",
12+
"https://assets.yanbot.tech/nuxt.png?image_process=resize,fw_900,fh_200/format,webp/quality,Q_80",
13+
],
14+
}
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"requests": [
3+
"https://example.amplifyapp.com/_amplify/image?url=%2Ftest.jpg&w=320&q=100",
4+
],
5+
"sources": [
6+
"https://example.amplifyapp.com/_amplify/image?url=%2Ftest.jpg&w=320&q=100",
7+
],
8+
}

test/e2e/__snapshots__/bunny.json5

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"requests": [
3+
"https://bunnyoptimizerdemo.b-cdn.net/bunny1.jpg?sharpen=true&aspect_ratio=16:9&width=1000&quality=80",
4+
"https://bunnyoptimizerdemo.b-cdn.net/bunny2.jpg?crop=750,750&crop_gravity=north",
5+
"https://bunnyoptimizerdemo.b-cdn.net/bunny3.jpg?flop=true&auto_optimize=high",
6+
],
7+
"sources": [
8+
"https://bunnyoptimizerdemo.b-cdn.net/bunny1.jpg?sharpen=true&aspect_ratio=16:9&width=1000&quality=80",
9+
"https://bunnyoptimizerdemo.b-cdn.net/bunny2.jpg?crop=750,750&crop_gravity=north",
10+
"https://bunnyoptimizerdemo.b-cdn.net/bunny3.jpg?flop=true&auto_optimize=high",
11+
],
12+
}

test/e2e/__snapshots__/caisy.json5

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"requests": [
3+
"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",
4+
],
5+
"sources": [
6+
"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",
7+
],
8+
}
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"requests": [
3+
"https://that-test.site/cdn-cgi/image/h=300,fit=contain/https://s3.that-test.site/burger.jpeg",
4+
],
5+
"sources": [
6+
"https://that-test.site/cdn-cgi/image/h=300,fit=contain/https://s3.that-test.site/burger.jpeg",
7+
],
8+
}
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"requests": [
3+
"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",
4+
"https://demo.cloudimg.io/v7/sample.li/bag.jpg?width=500&height=500&func=fit",
5+
"https://demo.cloudimg.io/v7/sample.li/boat.jpg?width=800&height=800&q=75&func=crop",
6+
"https://demo.cloudimg.io/v7/sample.li/img.jpg?width=300&height=300&force_format=webp&func=cover",
7+
],
8+
"sources": [
9+
"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",
10+
"https://demo.cloudimg.io/v7/sample.li/bag.jpg?width=500&height=500&func=fit",
11+
"https://demo.cloudimg.io/v7/sample.li/boat.jpg?width=800&height=800&q=75&func=crop",
12+
"https://demo.cloudimg.io/v7/sample.li/img.jpg?width=300&height=300&force_format=webp&func=cover",
13+
],
14+
}
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"requests": [
3+
"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",
4+
"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",
5+
"https://res.cloudinary.com/nuxt/image/upload/f_auto,q_auto/remote/nuxt-org/blog/going-full-static/main",
6+
],
7+
"sources": [
8+
"https://res.cloudinary.com/nuxt/image/upload/f_auto,q_auto/remote/nuxt-org/blog/going-full-static/main",
9+
"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",
10+
"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",
11+
],
12+
}
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"requests": [
3+
"https://images.ctfassets.net/fbr4i5aajb0w/6y0psij2o02YIwGScEo4kS/1b3f09b8fcedece1d17ea58417b55eb4/photo-1421986527537-888d998adb74.jpeg",
4+
"https://images.ctfassets.net/fbr4i5aajb0w/6y0psij2o02YIwGScEo4kS/1b3f09b8fcedece1d17ea58417b55eb4/photo-1421986527537-888d998adb74.jpeg?w=200&h=133",
5+
"https://images.ctfassets.net/fbr4i5aajb0w/6y0psij2o02YIwGScEo4kS/1b3f09b8fcedece1d17ea58417b55eb4/photo-1421986527537-888d998adb74.jpeg?w=200&h=200&fit=fill",
6+
],
7+
"sources": [
8+
"https://images.ctfassets.net/fbr4i5aajb0w/6y0psij2o02YIwGScEo4kS/1b3f09b8fcedece1d17ea58417b55eb4/photo-1421986527537-888d998adb74.jpeg",
9+
"https://images.ctfassets.net/fbr4i5aajb0w/6y0psij2o02YIwGScEo4kS/1b3f09b8fcedece1d17ea58417b55eb4/photo-1421986527537-888d998adb74.jpeg?w=200&h=133",
10+
"https://images.ctfassets.net/fbr4i5aajb0w/6y0psij2o02YIwGScEo4kS/1b3f09b8fcedece1d17ea58417b55eb4/photo-1421986527537-888d998adb74.jpeg?w=200&h=200&fit=fill",
11+
],
12+
}

test/e2e/__snapshots__/directus.json5

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"requests": [
3+
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee",
4+
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee.jpg?withoutEnlargement=true&width=1024&height=256&fit=cover",
5+
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee?width=256&format=webp",
6+
"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",
7+
],
8+
"sources": [
9+
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee",
10+
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee.jpg?withoutEnlargement=true&width=1024&height=256&fit=cover",
11+
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee?width=256&format=webp",
12+
"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",
13+
],
14+
}

test/e2e/__snapshots__/edgio.json5

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"requests": [
3+
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&height=200",
4+
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&quality=10",
5+
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&width=50",
6+
],
7+
"sources": [
8+
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&height=200",
9+
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&width=50",
10+
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&quality=10",
11+
],
12+
}

test/e2e/__snapshots__/fastly.json5

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"requests": [
3+
"https://www.fastly.io/image.jpg",
4+
"https://www.fastly.io/plant.jpeg",
5+
],
6+
"sources": [
7+
"https://www.fastly.io/image.jpg",
8+
"https://www.fastly.io/plant.jpeg",
9+
],
10+
}

test/e2e/__snapshots__/glide.json5

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"requests": [
3+
"https://glide.herokuapp.com/1.0/kayaks.jpg?gam=0.9&sharp=8&w=1000&q=70",
4+
],
5+
"sources": [
6+
"https://glide.herokuapp.com/1.0/kayaks.jpg?gam=0.9&sharp=8&w=1000&q=70",
7+
],
8+
}

test/e2e/__snapshots__/gumlet.json5

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"requests": [
3+
"https://demo.gumlet.io/sea.jpeg?w=300&h=300&fit=crop",
4+
],
5+
"sources": [
6+
"https://demo.gumlet.io/sea.jpeg?w=300&h=300&fit=crop",
7+
],
8+
}

test/e2e/__snapshots__/hygraph.json5

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"requests": [
3+
"https://eu-central-1-shared-euc1-02.graphassets.com/cltsj3mii0pvd07vwb5cyh1ig/resize=width:300,height:300,fit:clip/output=format:jpeg/cltsrex89477t08unlckqx9ue",
4+
"https://eu-central-1-shared-euc1-02.graphassets.com/cltsj3mii0pvd07vwb5cyh1ig/resize=width:500,fit:max/auto_image/cltsrex89477t08unlckqx9ue",
5+
"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",
6+
],
7+
"sources": [
8+
"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",
9+
"https://eu-central-1-shared-euc1-02.graphassets.com/cltsj3mii0pvd07vwb5cyh1ig/resize=width:500,fit:max/auto_image/cltsrex89477t08unlckqx9ue",
10+
"https://eu-central-1-shared-euc1-02.graphassets.com/cltsj3mii0pvd07vwb5cyh1ig/resize=width:300,height:300,fit:clip/output=format:jpeg/cltsrex89477t08unlckqx9ue",
11+
],
12+
}
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"requests": [
3+
"https://abc123.imgeng.in/images/image.jpg?imgeng=/meta_true/s_10/w_300/h_300/m_box",
4+
],
5+
"sources": [
6+
"https://abc123.imgeng.in/images/image.jpg?imgeng=/meta_true/s_10/w_300/h_300/m_box",
7+
],
8+
}

test/e2e/__snapshots__/imagekit.json5

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"requests": [
3+
"https://ik.imagekit.io/demo/girl.jpeg",
4+
"https://ik.imagekit.io/demo/girl.jpeg?tr=fo-auto,w-200,h-300",
5+
"https://ik.imagekit.io/demo/girl.jpeg?tr=fo-face,r-max,w-150,h-150",
6+
"https://ik.imagekit.io/demo/girl.jpeg?tr=fo-face,w-150,h-150",
7+
"https://ik.imagekit.io/demo/girl.jpeg?tr=w-400,h-300,c-force",
8+
],
9+
"sources": [
10+
"https://ik.imagekit.io/demo/girl.jpeg",
11+
"https://ik.imagekit.io/demo/girl.jpeg?tr=w-400,h-300,c-force",
12+
"https://ik.imagekit.io/demo/girl.jpeg?tr=fo-auto,w-200,h-300",
13+
"https://ik.imagekit.io/demo/girl.jpeg?tr=fo-face,w-150,h-150",
14+
"https://ik.imagekit.io/demo/girl.jpeg?tr=fo-face,r-max,w-150,h-150",
15+
],
16+
}

test/e2e/__snapshots__/imgix.json5

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"requests": [
3+
"https://assets.imgix.net/remote/nuxt-org/blog/woman-hat.jpg?w=300&h=300&fit=crop",
4+
],
5+
"sources": [
6+
"https://assets.imgix.net/remote/nuxt-org/blog/woman-hat.jpg?w=300&h=300&fit=crop",
7+
],
8+
}

test/e2e/__snapshots__/ipx.json5

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"requests": [
3+
"/_ipx/s_300x300/images/colors.jpg",
4+
"/_ipx/s_300x300/images/everest.jpg",
5+
"/_ipx/s_300x300/images/tacos.svg",
6+
"/_ipx/s_300x300/unsplash/photo-1606112219348-204d7d8b94ee",
7+
],
8+
"sources": [
9+
"/_ipx/s_300x300/images/colors.jpg",
10+
"/_ipx/s_300x300/images/everest.jpg",
11+
"/_ipx/s_300x300/images/tacos.svg",
12+
"/_ipx/s_300x300/unsplash/photo-1606112219348-204d7d8b94ee",
13+
],
14+
}

test/e2e/__snapshots__/layer0.json5

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"requests": [
3+
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&height=200",
4+
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&quality=10",
5+
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&width=50",
6+
],
7+
"sources": [
8+
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&height=200",
9+
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&width=50",
10+
"https://opt.moovweb.net/?img=https://i.imgur.com/LFtQeX2.jpeg&quality=10",
11+
],
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"requests": [
3+
"https://netlify-photo-gallery.netlify.app/.netlify/images?w=100&h=100&fit=cover&url=%2Fimages%2Fapple.jpg",
4+
"https://netlify-photo-gallery.netlify.app/.netlify/images?w=400&h=300&url=%2Fimages%2Fapple.jpg",
5+
],
6+
"sources": [
7+
"https://netlify-photo-gallery.netlify.app/.netlify/images?w=100&h=100&fit=cover&url=%2Fimages%2Fapple.jpg",
8+
"https://netlify-photo-gallery.netlify.app/.netlify/images?w=400&h=300&url=%2Fimages%2Fapple.jpg",
9+
],
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"requests": [
3+
"https://netlify-photo-gallery.netlify.app/images/apple.jpg?w=101&nf_resize=fit",
4+
"https://netlify-photo-gallery.netlify.app/images/apple.jpg?w=200&h=200&nf_resize=smartcrop",
5+
],
6+
"sources": [
7+
"https://netlify-photo-gallery.netlify.app/images/apple.jpg?w=101&nf_resize=fit",
8+
"https://netlify-photo-gallery.netlify.app/images/apple.jpg?w=200&h=200&nf_resize=smartcrop",
9+
],
10+
}

0 commit comments

Comments
 (0)