Skip to content

Commit

Permalink
Update next/image test
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jan 11, 2021
1 parent 1a1c7c9 commit 6236010
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const MyImage = (props) => {
const Page = () => {
return (
<div>
<p>Image Client Side Test</p>
<p id="client-side">Image Client Side Test</p>
<MyImage
id="basic-image"
src="foo.jpg"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const MyImage = (props) => {
const Page = () => {
return (
<div>
<p>Image SSR Test</p>
<p id="ssr">Image SSR Test</p>
<MyImage
id="basic-image"
src="foo.jpg"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ describe('Custom Resolver Tests', () => {
describe('Client-side Custom Loader Tests', () => {
beforeAll(async () => {
browser = await webdriver(appPort, '/')
await browser.waitForElementByCss('#clientlink').click()
await browser
.elementByCss('#clientlink')
.click()
.waitForElementByCss('#client-side')
})
afterAll(async () => {
browser = null
Expand Down

0 comments on commit 6236010

Please sign in to comment.