mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### Why?
I really dislike the way `.chain` works right now, it shouldn't mutate
the `BrowserInterface`, this PR changes it so it's just a pure chain
without weird side effects.
One example with the current version (before this PR):
```
const el = browser.elementByCss('#version-2')
await el.text()
// throws
await el.text()
```
### Additional Changes
- removes selenium (which is completely unused)
- updates playwright
- makes the playwright tracing not error all the time
14 lines
224 B
JavaScript
14 lines
224 B
JavaScript
import React from 'react'
|
|
import Image from 'next/legacy/image'
|
|
import img from '../public/test.jpg'
|
|
|
|
const Page = () => {
|
|
return (
|
|
<div>
|
|
<Image id="responsive" src={img} />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Page
|