aboutsummaryrefslogtreecommitdiffstats
path: root/test-ark-invoice.mjs
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-11 20:10:43 -0800
committerAdam Soltys <[email protected]>2026-02-11 20:10:43 -0800
commit56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 (patch)
treed6bc2557c56b93177bb14aa376847c6e123a4862 /test-ark-invoice.mjs
parent13466248004327e9a026cb89f94926f9b060d1c1 (diff)
downloadcoinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.tar.gz
coinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.zip
format
Diffstat (limited to 'test-ark-invoice.mjs')
-rw-r--r--test-ark-invoice.mjs20
1 files changed, 4 insertions, 16 deletions
diff --git a/test-ark-invoice.mjs b/test-ark-invoice.mjs
index 887691ea..5bd59abb 100644
--- a/test-ark-invoice.mjs
+++ b/test-ark-invoice.mjs
@@ -9,20 +9,13 @@ const API_KEY = "test-playwright-key";
const context = await browser.newContext({ ignoreHTTPSErrors: true });
const page = await context.newPage();
- page.on("console", (msg) =>
- console.log(`[browser:${msg.type()}]`, msg.text()),
- );
+ page.on("console", (msg) => console.log(`[browser:${msg.type()}]`, msg.text()));
page.on("pageerror", (err) => console.log("[page error]", err.message));
// Monitor relevant requests
page.on("request", (req) => {
const u = req.url();
- if (
- u.includes("ark") ||
- u.includes("sync") ||
- u.includes("invoice") ||
- u.includes("ws")
- ) {
+ if (u.includes("ark") || u.includes("sync") || u.includes("invoice") || u.includes("ws")) {
if (
!u.includes("__data") &&
!u.includes(".png") &&
@@ -35,16 +28,11 @@ const API_KEY = "test-playwright-key";
});
page.on("response", (resp) => {
const u = resp.url();
- if (
- u.includes("ark/sync") ||
- (u.includes("invoice") && !u.includes("__data"))
- ) {
+ if (u.includes("ark/sync") || (u.includes("invoice") && !u.includes("__data"))) {
resp
.text()
.then((t) =>
- console.log(
- `[resp] ${resp.status()} ${u.substring(0, 80)} -> ${t.substring(0, 300)}`,
- ),
+ console.log(`[resp] ${resp.status()} ${u.substring(0, 80)} -> ${t.substring(0, 300)}`),
)
.catch(() => {});
}