Follow things graphically
This commit is contained in:
parent
e0a24404ae
commit
0c230bd0a7
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue