Skip to content

Commit

Permalink
fix more sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Dec 30, 2020
1 parent 4a8f7aa commit 54a2700
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/image-component/basic/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ function runTests() {
})
it('should use imageSizes when width matches, not deviceSizes from next.config.js', async () => {
expect(await browser.elementById('icon-image-16').getAttribute('src')).toBe(
'https://example.com/myaccount/icon.png?auto=format&fit=max&w=48'
'https://example.com/myaccount/icon.png?auto=format&fit=max&w=32'
)
expect(
await browser.elementById('icon-image-16').getAttribute('srcset')
).toBe(
'https://example.com/myaccount/icon.png?auto=format&fit=max&w=16 1x, https://example.com/myaccount/icon.png?auto=format&fit=max&w=32 2x'
)
expect(await browser.elementById('icon-image-32').getAttribute('src')).toBe(
'https://example.com/myaccount/icon.png?auto=format&fit=max&w=480'
'https://example.com/myaccount/icon.png?auto=format&fit=max&w=64'
)
expect(
await browser.elementById('icon-image-32').getAttribute('srcset')
Expand Down Expand Up @@ -182,7 +182,7 @@ function lazyLoadingTests() {

it('should load the fifth image eagerly, without scrolling', async () => {
expect(await browser.elementById('eager-loading').getAttribute('src')).toBe(
'https://example.com/myaccount/foo5.jpg?auto=format&fit=max&w=1600'
'https://example.com/myaccount/foo5.jpg?auto=format&fit=max&w=2000'
)
expect(
await browser.elementById('eager-loading').getAttribute('srcset')
Expand Down

0 comments on commit 54a2700

Please sign in to comment.