diff --git a/garage.nix b/garage.nix index 61d729a..944c7f9 100644 --- a/garage.nix +++ b/garage.nix @@ -173,7 +173,7 @@ in { script = '' set -xeuo pipefail # give garage time to start up - sleep 3 + sleep 60 # XXX: this is very sensitive to being a single instance # (doing the bare minimum to get garage up and running) diff --git a/tests/pixelfed-garage.nix b/tests/pixelfed-garage.nix index b06c438..2431ef8 100644 --- a/tests/pixelfed-garage.nix +++ b/tests/pixelfed-garage.nix @@ -24,10 +24,10 @@ let # the “Create New Post” button is visible. print("Create and configure driver...") options = Options() - options.add_argument("--headless=new") + # options.add_argument("--headless=new") service = webdriver.ChromeService(executable_path="${lib.getExe pkgs.chromedriver}") # noqa: E501 driver = webdriver.Chrome(options=options, service=service) - driver.implicitly_wait(10) + driver.implicitly_wait(30) driver.set_window_size(1280, 960) # FIXME: Replace the By.XPATH by By.CSS_SELECTOR. @@ -78,6 +78,22 @@ pkgs.nixosTest { nodes = { server = { config, ... }: { + + services = { + xserver = { + enable = true; + displayManager.lightdm.enable = true; + desktopManager.lxqt.enable = true; + }; + + displayManager.autoLogin = { + enable = true; + user = "selenium"; + }; + }; + virtualisation.resolution = { x = 1680; y = 1050; }; + + virtualisation = { memorySize = lib.mkVMOverride 8192; cores = 8;