Skip to content

Commit

Permalink
fix: DBUS
Browse files Browse the repository at this point in the history
  • Loading branch information
elsirion committed Oct 23, 2024
1 parent 44998c6 commit 910472e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ jobs:
# Install dependencies
pnpm install
export PLAYWRIGHT_CHROMIUM_ARGS="--no-sandbox --disable-gpu --disable-software-rasterizer --disable-power-sandbox --disable-features=PowerMonitoring"
# Run Tests
DEBUG="pw:browser*" pnpm test
EOF
build-docs:
Expand Down
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@
pkgs.nodejs_20
# The version of playwright in nixpkgs has to match the verison specified in package.json
pkgs.playwright-driver.browsers
pkgs.dbus.lib
] ++ prev.nativeBuildInputs;

shellHook = ''
export PLAYWRIGHT_BROWSERS_PATH=${pkgs.playwright-driver.browsers}
export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true
# Launch temporary DBUS session
eval $(dbus-launch --sh-syntax)
echo "DBUS: $DBUS_SESSION_BUS_ADDRESS"
'';
});
};
Expand Down

0 comments on commit 910472e

Please sign in to comment.