question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecating `next-page-tester`

See original GitHub issue

🚀 Feature Proposal

Deprecate next-page-tester and suggest adopting browser testing, instead.

Motivation

As described in #290, next-page-tester maintenance presents a lot of challenges which undermines the future of the library.

Upcoming next.js layouts feature and future adoption of server components (to mention a few), show that next-page-tester approach is no more appropriate.

@Meemaw @jasonwilliams

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

2reactions
Meemawcommented, May 31, 2022

Thanks. With the recent developments to nextjs, it’s in my opinion impossible to keep up to date as a third party library.

I’ve been using Playwright for testing nextjs applications for the past few months, and I can’t recommend it enough:

  • it’s blazing fast, actually faster than jest dom tests
  • can properly test server side rendering properly (e.g. cypress doesn’t support that, as it’s client only)
  • supports rendering of react components in browser (as opposed to visit a page on specific route)
  • great apis
  • very active development
1reaction
Meemawcommented, Jun 17, 2022

Playwright also has builtin network intercepting: https://playwright.dev/docs/network#handle-requests

Read more comments on GitHub >

github_iconTop Results From Across the Web

next-page-tester DEPRECATED - GitHub
This project is deprecated. Next.js took a development course which makes the testing approach adopted by this library obsolete. Next page tester maintainers ......
Read more >
next-page-tester - npm
Enable DOM integration testing on Next.js pages. ... Start using next-page-tester in your project by running `npm i next-page-tester`.
Read more >
Blog - Next.js 13
The deprecated target option of next.config.js has been removed. The supported browsers have been changed to drop Internet Explorer and target ...
Read more >
URL Inspection Tool - Search Console Help - Google Support
The URL Inspection tool provides information about Google's indexed version of a specific page, and also allows you to test whether a URL...
Read more >
Multistep web tests - Azure Monitor - Microsoft Learn
Multistep web tests have been deprecated. ... Although no new features will be added, web test functionality in Visual Studio 2019 is still ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found