about summary refs log tree commit diff
path: root/__e2e__
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2025-08-28 06:20:06 -0500
committerGitHub <noreply@github.com>2025-08-28 04:20:06 -0700
commit2a54781ce0e9f0764a9bb70008ef7c7798a1f5e0 (patch)
tree6d4ddbefb3db5a32b0cdd88e353b195bd248b1a4 /__e2e__
parentdcba5c46683875009cea3ccdb22cda9167f16217 (diff)
downloadvoidsky-2a54781ce0e9f0764a9bb70008ef7c7798a1f5e0.tar.zst
Update dev env (#8921)
* Update dev-env

* Integrate appviewDid value from dev-env

* Use correct env value to disable policy update overlay

* Remove log
Diffstat (limited to '__e2e__')
-rw-r--r--__e2e__/mock-server.ts13
-rw-r--r--__e2e__/setupApp.yml5
-rw-r--r--__e2e__/setupServer.js5
3 files changed, 20 insertions, 3 deletions
diff --git a/__e2e__/mock-server.ts b/__e2e__/mock-server.ts
index b5f13a87f..d4be040df 100644
--- a/__e2e__/mock-server.ts
+++ b/__e2e__/mock-server.ts
@@ -1,7 +1,7 @@
 import {createServer as createHTTPServer} from 'node:http'
 import {parse} from 'node:url'
 
-import {createServer, TestPDS} from '../jest/test-pds'
+import {createServer, type TestPDS} from '../jest/test-pds'
 
 async function main() {
   let server: TestPDS
@@ -509,7 +509,16 @@ async function main() {
         }
       }
       console.log('Ready')
-      return res.writeHead(200).end(server.pdsUrl)
+      return res
+        .writeHead(200, {
+          'content-type': 'application/json',
+        })
+        .end(
+          JSON.stringify({
+            pdsUrl: server.pdsUrl,
+            appviewDid: server.appviewDid,
+          }),
+        )
     } catch (e) {
       console.error('Error!', e)
       return res.writeHead(500).end()
diff --git a/__e2e__/setupApp.yml b/__e2e__/setupApp.yml
index 25f9aa847..728d548fb 100644
--- a/__e2e__/setupApp.yml
+++ b/__e2e__/setupApp.yml
@@ -11,3 +11,8 @@ appId: xyz.blueskyweb.app
 - swipe:
    from: "Bluesky"
    direction: DOWN
+- tapOn:
+   id: e2eProxyHeaderInput
+- inputText: ${output.result}
+- pressKey: Enter
+- hideKeyboard
diff --git a/__e2e__/setupServer.js b/__e2e__/setupServer.js
index 7b1fb9574..dedf4ffa9 100644
--- a/__e2e__/setupServer.js
+++ b/__e2e__/setupServer.js
@@ -1,5 +1,8 @@
 // eslint-disable-next-line
-http.post('http://localhost:1986/' + SERVER_PATH, {
+var res = http.post('http://localhost:1986/' + SERVER_PATH, {
   headers: {'Content-Type': 'text/plain'},
   body: '',
 })
+
+// eslint-disable-next-line
+output.result = json(res.body).appviewDid