Skip to content

Instantly share code, notes, and snippets.

@sahmeepee
sahmeepee / playwright.config.js
Created June 20, 2021 18:55
Common Playwright Test Runner config settings
module.exports = {
use: {
// Browser options
headless: false, // Default: true
slowMo: 100, // in milliseconds, default: 0
//timeout: 60000, // Max time in milliseconds for browser to start. Default: 30000; Disable timeout: 0
//args: --disable-popup-blocking --disable-web-security // see https://peter.sh/experiments/chromium-command-line-switches/ for Chromium args
//channel: 'msedge' // "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", "msedge-canary"
//devtools: false, // true | false
@sahmeepee
sahmeepee / launch.json
Created June 20, 2021 18:05
VSCode setup for Playwright Test Runner - allows debug of current file
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch all tests 3 browsers",
"request": "launch",
"runtimeArgs": [
"run-script",
"tests3x"
],
@sahmeepee
sahmeepee / launch.json
Created June 18, 2021 22:57
VSCode basic setup for Playwright Test Runner
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch all tests",
"request": "launch",
"runtimeArgs": [
"run-script",
"tests"
],