Dismiss WiFi boot prompt when mobile session opens
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import base64
|
||||
import threading
|
||||
from io import BytesIO
|
||||
from pathlib import Path
|
||||
|
||||
@@ -1160,6 +1161,13 @@ def test_wifi_settings_api_reveals_password_only_on_dedicated_get(tmp_path):
|
||||
"control_url": "http://192.168.9.93:8080/",
|
||||
},
|
||||
)
|
||||
startup_activation = threading.Event()
|
||||
activate = backend.activate
|
||||
def record_activation(*args, **kwargs):
|
||||
result = activate(*args, **kwargs)
|
||||
startup_activation.set()
|
||||
return result
|
||||
backend.activate = record_activation
|
||||
app = create_app(
|
||||
project_root=tmp_path,
|
||||
driver_kind="mock",
|
||||
@@ -1174,6 +1182,7 @@ def test_wifi_settings_api_reveals_password_only_on_dedicated_get(tmp_path):
|
||||
assert initial.json()["active"]["control_url"] == "http://192.168.9.93:8080/"
|
||||
status_network = client.get("/api/status").json()["network"]
|
||||
assert "password" not in status_network["saved"]
|
||||
assert startup_activation.wait(5), "boot network activation did not complete"
|
||||
startup_activation_count = len(backend.activations)
|
||||
|
||||
payload = {
|
||||
|
||||
Reference in New Issue
Block a user