remove old logging

This commit is contained in:
Jon Staab 2026-08-29 06:59:28 -07:00
parent 8dca2a7035
commit a2c5ef57fe
2 changed files with 0 additions and 40 deletions

View file

@ -376,15 +376,6 @@ test("US-058 drafts survive navigating away", async ({seed, as}) => {
// Drafts live in memory, so every move here is an in-app navigation — a reload would clear them // Drafts live in memory, so every move here is an in-app navigation — a reload would clear them
// whether or not they were kept. // whether or not they were kept.
const page = await as(users.alice, chatPath(users.bob.pubkey)) const page = await as(users.alice, chatPath(users.bob.pubkey))
// TEMPORARY DIAGNOSTIC
page.on("console", message => {
if (message.text().startsWith("DIAG") || message.type() === "error") {
console.log("DIAG console:", message.type(), message.text().slice(0, 300))
}
})
page.on("pageerror", error => console.log("DIAG pageerror:", String(error).slice(0, 300)))
// END TEMPORARY DIAGNOSTIC
const editor = composer(page) const editor = composer(page)
const rooms = page.locator(".secondary-nav") const rooms = page.locator(".secondary-nav")
@ -394,11 +385,6 @@ test("US-058 drafts survive navigating away", async ({seed, as}) => {
await editor.pressSequentially("still thinking about this") await editor.pressSequentially("still thinking about this")
await page.locator('.primary-nav [data-tip="space"]').click() await page.locator('.primary-nav [data-tip="space"]').click()
// TEMPORARY DIAGNOSTIC
await page.waitForTimeout(10000)
// END TEMPORARY DIAGNOSTIC
await rooms.getByRole("link", {name: "General"}).click() await rooms.getByRole("link", {name: "General"}).click()
await expect(timeline(page).getByText("morning all")).toBeVisible() await expect(timeline(page).getByText("morning all")).toBeVisible()

View file

@ -45,32 +45,6 @@
} }
let term = $state("") let term = $state("")
// TEMPORARY DIAGNOSTIC
$effect(() => {
try {
console.log(
"DIAG rooms",
url,
"userRooms",
JSON.stringify($userRooms),
"otherRooms",
JSON.stringify($otherRooms),
"listRooms",
JSON.stringify($roomLists.roomsForUrl($user.pubkey, url).get()),
"spaceRooms",
JSON.stringify(
$rooms
.forUrl(url)
.get()
.map(room => room.h),
),
)
} catch (error) {
console.log("DIAG rooms threw", String(error))
}
})
// END TEMPORARY DIAGNOSTIC
</script> </script>
{#snippet content()} {#snippet content()}