Commit 8f481210 authored by phaer's avatar phaer
Browse files

playwright-driver: expose selectBrowsers for custom browser selection

Expose the underlying browsers function as `selectBrowsers` passthru,
allowing users to create custom browser sets. Note: all browsers are
enabled by default.

Example usage:
  playwright-driver.selectBrowsers {
    withChromiumHeadlessShell = true;
    withChromium = false;
    withFirefox = false;
    withWebkit = false;
    withFfmpeg = false;
  }
parent 0ce02f69
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -165,6 +165,7 @@ let

    passthru = {
      browsersJSON = (lib.importJSON ./browsers.json).browsers;
      selectBrowsers = browsers;
      browsers = browsers { };
      browsers-chromium = browsers {
        withFirefox = false;