Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Oct 23, 2020
1 parent ee4483b commit 4dd63d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
8 changes: 1 addition & 7 deletions test/integration/image-component/default/pages/index.js
Expand Up @@ -5,13 +5,7 @@ const Page = () => {
return (
<div>
<p>Hello World</p>
<Image id="basic-image" src="/test.jpg" width={400} height={400}></Image>
<Image
id="width-height-string"
src="/test.jpg"
width="400"
height="400"
></Image>
<Image id="basic-image" src="/test.jpg" width="400" height="400"></Image>
<Image id="unsized-image" src="/test.png" unsized></Image>
<p id="stubtext">This is the index page</p>
</div>
Expand Down
11 changes: 0 additions & 11 deletions test/integration/image-component/default/test/index.test.js
Expand Up @@ -36,17 +36,6 @@ function runTests() {
return 'result-correct'
}, /result-correct/)

await check(async () => {
const result = await browser.eval(
`document.getElementById('width-height-string').naturalWidth`
)
if (result === 0) {
throw new Error('Incorrectly loaded image')
}

return 'result-correct'
}, /result-correct/)

await check(async () => {
const result = await browser.eval(
`document.getElementById('unsized-image').naturalWidth`
Expand Down

0 comments on commit 4dd63d3

Please sign in to comment.