Skip to content

Commit 4dd63d3

Browse files
committed
Fix test
1 parent ee4483b commit 4dd63d3

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

test/integration/image-component/default/pages/index.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@ const Page = () => {
55
return (
66
<div>
77
<p>Hello World</p>
8-
<Image id="basic-image" src="/test.jpg" width={400} height={400}></Image>
9-
<Image
10-
id="width-height-string"
11-
src="/test.jpg"
12-
width="400"
13-
height="400"
14-
></Image>
8+
<Image id="basic-image" src="/test.jpg" width="400" height="400"></Image>
159
<Image id="unsized-image" src="/test.png" unsized></Image>
1610
<p id="stubtext">This is the index page</p>
1711
</div>

test/integration/image-component/default/test/index.test.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,6 @@ function runTests() {
3636
return 'result-correct'
3737
}, /result-correct/)
3838

39-
await check(async () => {
40-
const result = await browser.eval(
41-
`document.getElementById('width-height-string').naturalWidth`
42-
)
43-
if (result === 0) {
44-
throw new Error('Incorrectly loaded image')
45-
}
46-
47-
return 'result-correct'
48-
}, /result-correct/)
49-
5039
await check(async () => {
5140
const result = await browser.eval(
5241
`document.getElementById('unsized-image').naturalWidth`

0 commit comments

Comments
 (0)