We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee36f6c commit d74ba48Copy full SHA for d74ba48
nixos/tests/cockpit.nix
@@ -123,10 +123,14 @@ import ./make-test-python.nix (
123
assert "Web console is running in limited access mode" in driver.page_source
124
125
log("Clicking the sudo button")
126
+ for button in driver.find_elements(By.TAG_NAME, "button"):
127
+ if 'admin' in button.text:
128
+ button.click()
129
driver.switch_to.default_content()
- driver.find_element(By.CSS_SELECTOR, 'button.ct-locked').click()
130
+
131
log("Checking that /nonexistent is not a thing")
132
assert '/nonexistent' not in driver.page_source
133
+ assert driver.find_element(By.CSS_SELECTOR, '#machine-reconnect') is not None
134
135
driver.close()
136
'';
0 commit comments