escobard / aws-cloud-apps

A simple, responsive web application to take notes, built with JavaScript, designed as starting point to build complex web applications. Hosted on AWS.
0 stars 0 forks source link

Compare playwright vs nightwatch for 2024 #42

Closed escobard closed 8 months ago

escobard commented 9 months ago

Research playwright vs nightwatch for 2024. Pick framework for e2e based on community support, popularity, ease of use, adaptability with docker and cohesion with typescript.

escobard commented 9 months ago

Various comparisons of nightwatch vs playwright:

  1. https://nodejs.libhunt.com/compare-playwright-vs-nightwatch
  2. https://stackshare.io/stackups/nightwatchjs-vs-playwright#:~:text=Test%20Execution%20Speed%3A%20Playwright%20is,Nightwatch.
  3. https://nightwatchjs.org/guide/comparison-with-leading-frameworks.html
escobard commented 9 months ago

NPM pages of nightwatch and playwright - playwright seems to be a lot more popular: 2024-01-24_11h20_56 2024-01-24_11h21_00

  1. https://www.npmjs.com/package/nightwatch
  2. https://www.npmjs.com/package/playwright
escobard commented 9 months ago

Official playwright docs on docker: https://playwright.dev/docs/docker

Official playwright docs on circleci: https://playwright.dev/docs/ci#circleci

escobard commented 9 months ago

Tutorials to get started with playwright and docker:

  1. https://shiv-jirwankar.medium.com/playwright-tests-on-docker-9b9e25dccf35
  2. https://www.digitalocean.com/community/tutorials/how-to-run-end-to-end-tests-using-playwright-and-docker
escobard commented 9 months ago

Playwright page object models 😍 : https://playwright.dev/docs/pom

escobard commented 9 months ago

Verdict: Go with playwright, due to simplicity and adaptability with Docker, Typescript and other programming languages (python / java).

Build a prototype with playwright as part of: #43

escobard commented 9 months ago

Generate code from the browser with VS code or playwright inspector: https://playwright.dev/docs/codegen

Simulate different device sizes: https://playwright.dev/docs/codegen#emulation