forked from Fediversity/simple-nixos-fediverse
Follow things graphically
This commit is contained in:
parent
e0a24404ae
commit
0c230bd0a7
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Reference in a new issue