Follow things graphically

This commit is contained in:
Nicolas Jeannerod 2024-09-09 14:08:12 +02:00
parent e0a24404ae
commit 0c230bd0a7
Signed by untrusted user: Niols
GPG key ID: 35DB9EC8886E1CB8
2 changed files with 19 additions and 3 deletions

View file

@ -173,7 +173,7 @@ in {
script = '' script = ''
set -xeuo pipefail set -xeuo pipefail
# give garage time to start up # give garage time to start up
sleep 3 sleep 60
# XXX: this is very sensitive to being a single instance # XXX: this is very sensitive to being a single instance
# (doing the bare minimum to get garage up and running) # (doing the bare minimum to get garage up and running)

View file

@ -24,10 +24,10 @@ let
# the “Create New Post” button is visible. # the “Create New Post” button is visible.
print("Create and configure driver...") print("Create and configure driver...")
options = Options() options = Options()
options.add_argument("--headless=new") # options.add_argument("--headless=new")
service = webdriver.ChromeService(executable_path="${lib.getExe pkgs.chromedriver}") # noqa: E501 service = webdriver.ChromeService(executable_path="${lib.getExe pkgs.chromedriver}") # noqa: E501
driver = webdriver.Chrome(options=options, service=service) driver = webdriver.Chrome(options=options, service=service)
driver.implicitly_wait(10) driver.implicitly_wait(30)
driver.set_window_size(1280, 960) driver.set_window_size(1280, 960)
# FIXME: Replace the By.XPATH by By.CSS_SELECTOR. # FIXME: Replace the By.XPATH by By.CSS_SELECTOR.
@ -78,6 +78,22 @@ pkgs.nixosTest {
nodes = { nodes = {
server = { config, ... }: { 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 = { virtualisation = {
memorySize = lib.mkVMOverride 8192; memorySize = lib.mkVMOverride 8192;
cores = 8; cores = 8;