nixosTests.cockpit: tests more complete

Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
lucasew
2025-04-15 09:21:27 -03:00
parent ee36f6ca92
commit d74ba48799
+5 -1
View File
@@ -123,10 +123,14 @@ import ./make-test-python.nix (
assert "Web console is running in limited access mode" in driver.page_source
log("Clicking the sudo button")
for button in driver.find_elements(By.TAG_NAME, "button"):
if 'admin' in button.text:
button.click()
driver.switch_to.default_content()
driver.find_element(By.CSS_SELECTOR, 'button.ct-locked').click()
log("Checking that /nonexistent is not a thing")
assert '/nonexistent' not in driver.page_source
assert driver.find_element(By.CSS_SELECTOR, '#machine-reconnect') is not None
driver.close()
'';