⚘ use your pds as a git remote if you want to ⚘
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

devshell in flake.nix

notplants 0ca1ab58 f3dede5a

+48 -2
+10 -2
e2e-tests/playwright-tests/conftest.py
··· 73 73 74 74 @pytest.fixture(scope="session") 75 75 def browser_context(): 76 - """Launch a headless Chromium browser context (shared across tests).""" 76 + """Launch a headless Chromium browser context (shared across tests). 77 + 78 + Respects PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH for NixOS environments 79 + where the Playwright-bundled Chromium won't work. 80 + """ 77 81 from playwright.sync_api import sync_playwright 78 82 79 83 pw = sync_playwright().start() 80 - browser = pw.chromium.launch(headless=True) 84 + launch_kwargs = {"headless": True} 85 + chromium_path = os.environ.get("PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH") 86 + if chromium_path: 87 + launch_kwargs["executable_path"] = chromium_path 88 + browser = pw.chromium.launch(**launch_kwargs) 81 89 context = browser.new_context() 82 90 yield context 83 91 context.close()
+38
flake.nix
··· 28 28 } 29 29 ); 30 30 31 + devShells = forAllSystems (system: 32 + let 33 + pkgs = nixpkgs.legacyPackages.${system}; 34 + python = pkgs.python3.withPackages (ps: [ 35 + ps.playwright 36 + ps.pytest 37 + ps.requests 38 + ps.toml 39 + ]); 40 + in 41 + { 42 + default = pkgs.mkShell { 43 + buildInputs = [ 44 + pkgs.cargo 45 + pkgs.rustc 46 + pkgs.git 47 + pkgs.curl 48 + ]; 49 + }; 50 + 51 + e2e = pkgs.mkShell { 52 + buildInputs = [ 53 + pkgs.cargo 54 + pkgs.rustc 55 + pkgs.git 56 + pkgs.curl 57 + pkgs.chromium 58 + python 59 + ]; 60 + 61 + shellHook = '' 62 + export PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH="${pkgs.chromium}/bin/chromium" 63 + export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 64 + ''; 65 + }; 66 + } 67 + ); 68 + 31 69 overlays.default = final: prev: { 32 70 git-remote-pds = self.packages.${final.system}.git-remote-pds; 33 71 };