Skip to content

Instantly share code, notes, and snippets.

View cdmatta's full-sized avatar

Charandeep Matta cdmatta

  • Helsinki, Finland
View GitHub Profile
@sorny
sorny / x11_forwarding_macos_docker.md
Last active November 6, 2024 12:03
X11 forwarding with macOS and Docker

X11 forwarding on macOS and docker

A quick guide on how to setup X11 forwarding on macOS when using docker containers requiring a DISPLAY. Works on both Intel and M1 macs!

This guide was tested on:

  • macOS Catalina 10.15.4
  • docker desktop 2.2.0.5 (43884) - stable release
  • XQuartz 2.7.11 (xorg-server 1.18.4)
  • Macbook Pro (Intel)
@mgaitan
mgaitan / README.md
Created May 29, 2024 23:43
Playwright-pytest login just once per session (sharing storage state)

Simplest way to use Playwright sharing the "state" among tests.

The first test won't have the storage file so it will get a new empty page with no context and set it up / login.

Further tests will get a Page instance injected that has the same context as the first one, reusing the signed-in state.

Check https://playwright.dev/python/docs/auth#reusing-signed-in-state