The best testing setup for frontends, with Playwright and NextJS

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • testing-setup-nextjs-playwright

    Testing setup using NextJS and Playwright

  • Check out our repo for this stage of the setup - Step 1 - setting up NextJS.

  • chokidar

    Minimal and efficient cross-platform file watching library

  • For this, we'll use chokidar - more specifically the chokidar-cli package. chokidar is probably the most useful file watching library for the nodejs ecosystem and it will serve us well.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • Playwright

    Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

  • // playwright.config.ts import { defineConfig } from "@playwright/test"; /** * See https://playwright.dev/docs/test-configuration. */ export default defineConfig({ testDir: "./src/pages", reporter: "list", use: { baseURL: "http://localhost:5432/", }, timeout: process.env.CI ? 10000 : 4000, // ... more options });

  • Next.js

    The React Framework

  • We want to share with you the best testing setup we've experienced - and this includes using Playwright and NextJS. It's a setup we've come up with for Infinite React DataGrid, which is a complex component, with lots of things to test, but this configuration has helped us ship with more confidence and speed.

  • Infinite Table React DataGrid

    Infinite Table is the modern DataGrid for building React apps — faster.

  • This is the same setup we've been using for developing and testing the Infinite Table React DataGrid and it has been serving us really well.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Server Side Mocking for Playwright in NextJS using Mock Service Worker

    3 projects | dev.to | 11 Jul 2023
  • Simplify your Dev Environment with PM2

    2 projects | dev.to | 21 Mar 2021
  • Vite vs Nextjs: Which one is right for you?

    3 projects | dev.to | 29 Apr 2024
  • A brief history of web development. And why your framework doesn't matter

    4 projects | news.ycombinator.com | 29 Apr 2024
  • System & Database Design (Day 1) - Creating a SaaS Startup in 30 Days

    2 projects | dev.to | 26 Apr 2024