curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
nvm install 20
nvm use 20Verifique:
node --version
npm --versioncurl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejsnpm init playwright@latestO Playwright precisa de algumas dependências do sistema para rodar os browsers. Execute:
npx playwright install-depsIsso instala automaticamente todas as bibliotecas necessárias para Chromium, Firefox e WebKit no Linux.
# Headless (padrão no Linux sem display)
npx playwright test
# Com navegador visível (requer display)
npx playwright test --headed
# Com Xvfb para ambientes sem display (ex: servidores)
xvfb-run npx playwright test --headed# Instalar todos os browsers
npx playwright install
# Instalar apenas um browser
npx playwright install chromium
npx playwright install firefox
npx playwright install webkitIr para: Estrutura do Projeto