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
Lines changed: 14 additions & 0 deletions
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+
}
Lines changed: 8 additions & 0 deletions
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

Lines changed: 12 additions & 0 deletions
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

Lines changed: 8 additions & 0 deletions
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+
}
Lines changed: 8 additions & 0 deletions
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+
}
Lines changed: 14 additions & 0 deletions
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+
}
Lines changed: 12 additions & 0 deletions
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+
}
Lines changed: 12 additions & 0 deletions
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+
}
Lines changed: 14 additions & 0 deletions
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

Lines changed: 12 additions & 0 deletions
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+
}

0 commit comments

Comments
 (0)