From 2a54781ce0e9f0764a9bb70008ef7c7798a1f5e0 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 28 Aug 2025 06:20:06 -0500 Subject: Update dev env (#8921) * Update dev-env * Integrate appviewDid value from dev-env * Use correct env value to disable policy update overlay * Remove log --- __e2e__/mock-server.ts | 13 +++++++++++-- __e2e__/setupApp.yml | 5 +++++ __e2e__/setupServer.js | 5 ++++- 3 files changed, 20 insertions(+), 3 deletions(-) (limited to '__e2e__') 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 -- cgit 1.4.1