You can use either Playwright or Cypress for E2E testing in Next.js. Playwright is easier to setup.
Check Next.js Playwright Documentation to see how to setup and run Playwright tests in Next.js
Check e2e/example.spec.ts/page.test.tsx to see the E2E test for this page
Hello