feat!: bump next canary to 104 and update withPayload for new config (#7541)
We are now bumping up the Next canary version to `15.0.0-canary.104` and `react` and `react-dom` to `^19.0.0-rc-06d0b89e-20240801`. Your new dependencies should look like this: ``` "next": "15.0.0-canary.104", "react": "^19.0.0-rc-06d0b89e-20240801", "react-dom": "^19.0.0-rc-06d0b89e-20240801", ``` --------- Co-authored-by: Alessio Gravili <alessio@gravili.de>
This commit is contained in:
@@ -172,8 +172,16 @@ describe('access control', () => {
|
||||
})
|
||||
|
||||
test('should not have list url', async () => {
|
||||
const errors = []
|
||||
|
||||
page.on('console', (exception) => {
|
||||
errors.push(exception)
|
||||
})
|
||||
|
||||
await page.goto(restrictedUrl.list)
|
||||
await expect(page.locator('.not-found')).toBeVisible()
|
||||
|
||||
// eslint-disable-next-line payload/no-flaky-assertions
|
||||
expect(errors).not.toHaveLength(0)
|
||||
})
|
||||
|
||||
test('should not have create url', async () => {
|
||||
|
||||
@@ -309,7 +309,8 @@ export function initPageConsoleErrorCatch(page: Page) {
|
||||
// https://github.com/JedWatson/react-select/issues/3590
|
||||
!msg.text().includes('did not match. Server:') &&
|
||||
!msg.text().includes('the server responded with a status of') &&
|
||||
!msg.text().includes('Failed to fetch RSC payload for')
|
||||
!msg.text().includes('Failed to fetch RSC payload for') &&
|
||||
!msg.text().includes('Error: NEXT_NOT_FOUND')
|
||||
) {
|
||||
// "Failed to fetch RSC payload for" happens seemingly randomly. There are lots of issues in the next.js repository for this. Causes e2e tests to fail and flake. Will ignore for now
|
||||
// the the server responded with a status of error happens frequently. Will ignore it for now.
|
||||
|
||||
@@ -32,7 +32,6 @@ import { fileURLToPath } from 'url'
|
||||
import type { PayloadTestSDK } from '../helpers/sdk/index.js'
|
||||
import type { Config } from './payload-types.js'
|
||||
|
||||
import { globalSlug } from '../admin/slugs.js'
|
||||
import {
|
||||
changeLocale,
|
||||
ensureCompilationIsDone,
|
||||
@@ -393,8 +392,8 @@ describe('versions', () => {
|
||||
})
|
||||
|
||||
test('global — has versions route', async () => {
|
||||
const global = new AdminUrlUtil(serverURL, globalSlug)
|
||||
const versionsURL = `${global.global(globalSlug)}/versions`
|
||||
const global = new AdminUrlUtil(serverURL, autoSaveGlobalSlug)
|
||||
const versionsURL = `${global.global(autoSaveGlobalSlug)}/versions`
|
||||
await page.goto(versionsURL)
|
||||
expect(page.url()).toMatch(/\/versions$/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user