# stdlib
import os

# third party
import pytest
import requests

here = os.path.dirname(__file__)

PORT = 9081


@pytest.mark.integration
def test_serves_frontend() -> None:
    title_str = "<title>PyGrid UI</title>"
    url = f"http://localhost:{PORT}"
    result = requests.get(url)
    assert title_str in result.text

@@ -1,8 +1,20 @@
+# stdlimpob%0A
 # stdlib
@@ -104,16 +104,23 @@
 ile__)%0A%0A
+DOMAIN_
 PORT = 9
@@ -123,16 +123,36 @@
  = 9081%0A
+NETWORK_PORT = 9083%0A
 %0A%0A@pytes
@@ -186,16 +186,23 @@
 _serves_
+domain_
 frontend
@@ -241,17 +241,244 @@
 tle%3E
-PyGrid UI
+domain%3C/title%3E%22%0A    url = f%22http://localhost:%7BDOMAIN_PORT%7D/status%22%0A    result = requests.get(url)%0A    assert title_str in result.text%0A%0A%0A@pytest.mark.integration%0Adef test_serves_network_frontend() -%3E None:%0A    title_str = %22%3Ctitle%3Enetwork
 %3C/ti
@@ -513,21 +513,36 @@
 alhost:%7B
-PORT%7D
+NETWORK_PORT%7D/status
 %22%0A    re

replace test_serves_frontend test with test_serves_{domain,network}_frontend tests