Unverified Commit 959a3121 authored by Jiwon Choi's avatar Jiwon Choi Committed by GitHub

ci: fix version-staleness test (#76020)

The test failed since https://github.com/vercel/next.js/pull/75882 was
merged with a lot of test changes, but
https://github.com/vercel/next.js/pull/75768 didn't rebase.
parent 9cfc797b
......@@ -54,23 +54,22 @@ describe('Error Overlay version staleness', () => {
if (process.env.TURBOPACK) {
expect(await getStaleness(browser)).toMatchInlineSnapshot(`
"Next.js 1.0.0 (outdated)
(learn more)
Turbopack"
`)
} else {
expect(await getStaleness(browser)).toMatchInlineSnapshot(`
"Next.js 1.0.0 (outdated)
(learn more)"
`)
expect(await getStaleness(browser)).toMatchInlineSnapshot(
`"Next.js 1.0.0 (outdated)"`
)
}
} else {
if (process.env.TURBOPACK) {
expect(await getStaleness(browser)).toMatchInlineSnapshot(
`"Next.js (1.0.0) is outdated (learn more) (Turbopack)"`
)
expect(await getStaleness(browser)).toMatchInlineSnapshot(`
"Next.js 1.0.0 (outdated)
Turbopack"
`)
} else {
expect(await getStaleness(browser)).toMatchInlineSnapshot(
`"Next.js (1.0.0) is outdated (learn more)"`
`"Next.js 1.0.0 (outdated)"`
)
}
}
......@@ -103,14 +102,12 @@ describe('Error Overlay version staleness', () => {
if (process.env.TURBOPACK) {
expect(await getStaleness(browser)).toMatchInlineSnapshot(`
"Next.js 2.0.0 (outdated)
(learn more)
Turbopack"
`)
} else {
expect(await getStaleness(browser)).toMatchInlineSnapshot(`
"Next.js 2.0.0 (outdated)
(learn more)"
`)
expect(await getStaleness(browser)).toMatchInlineSnapshot(
`"Next.js 2.0.0 (outdated)"`
)
}
})
......@@ -138,14 +135,12 @@ describe('Error Overlay version staleness', () => {
if (process.env.TURBOPACK) {
expect(await getStaleness(browser)).toMatchInlineSnapshot(`
"Next.js 3.0.0 (outdated)
(learn more)
Turbopack"
`)
} else {
expect(await getStaleness(browser)).toMatchInlineSnapshot(`
"Next.js 3.0.0 (outdated)
(learn more)"
`)
expect(await getStaleness(browser)).toMatchInlineSnapshot(
`"Next.js 3.0.0 (outdated)"`
)
}
})
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment