diff --git a/test/integration/next-image-legacy/default/pages/on-error.js b/test/integration/next-image-legacy/default/pages/on-error.js
index 43f9d49e0f397..806768df48bf1 100644
--- a/test/integration/next-image-legacy/default/pages/on-error.js
+++ b/test/integration/next-image-legacy/default/pages/on-error.js
@@ -6,7 +6,7 @@ const Page = () => {
Test onError
- If error occured while loading image, native onError should be called.
+ If error occurred while loading image, native onError should be called.
@@ -17,7 +17,7 @@ const Page = () => {
}
function ImageWithMessage({ id, ...props }) {
- const [msg, setMsg] = useState('no error occured')
+ const [msg, setMsg] = useState('no error occurred')
const style =
props.layout === 'fill'
? { position: 'relative', width: '64px', height: '64px' }
@@ -29,7 +29,7 @@ function ImageWithMessage({ id, ...props }) {
{
- const msg = `error occured while loading ${e.target.id}`
+ const msg = `error occurred while loading ${e.target.id}`
setMsg(msg)
}}
{...props}
diff --git a/test/integration/next-image-legacy/default/test/index.test.ts b/test/integration/next-image-legacy/default/test/index.test.ts
index beaac51148731..45efc1ef5466b 100644
--- a/test/integration/next-image-legacy/default/test/index.test.ts
+++ b/test/integration/next-image-legacy/default/test/index.test.ts
@@ -398,7 +398,7 @@ function runTests(mode) {
)
})
- it('should callback native onError when error occured while loading image', async () => {
+ it('should callback native onError when error occurred while loading image', async () => {
let browser = await webdriver(appPort, '/on-error')
await check(
@@ -412,11 +412,11 @@ function runTests(mode) {
)
await check(
() => browser.eval(`document.getElementById("msg1").textContent`),
- 'no error occured'
+ 'no error occurred'
)
await check(
() => browser.eval(`document.getElementById("msg2").textContent`),
- 'error occured while loading img2'
+ 'error occurred while loading img2'
)
})
diff --git a/test/integration/next-image-new/app-dir/app/on-error/page.js b/test/integration/next-image-new/app-dir/app/on-error/page.js
index fb32b95e3d258..48f8849bc87b0 100644
--- a/test/integration/next-image-new/app-dir/app/on-error/page.js
+++ b/test/integration/next-image-new/app-dir/app/on-error/page.js
@@ -9,7 +9,7 @@ const Page = () => {
Test onError
- If error occured while loading image, native onError should be called.
+ If error occurred while loading image, native onError should be called.