mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-04-02 10:05:43 +00:00
17 lines
589 B
JavaScript
17 lines
589 B
JavaScript
const { test, expect } = require("@playwright/test");
|
|
const { prepareE2eSession } = require("./helpers");
|
|
|
|
test.describe("HTTP API (via Vite proxy)", () => {
|
|
test.beforeEach(async ({ request }) => {
|
|
await prepareE2eSession(request);
|
|
});
|
|
|
|
test("database backups list returns JSON", async ({ request }) => {
|
|
const res = await request.get("/api/v1/database/backups");
|
|
expect(res.ok()).toBeTruthy();
|
|
const body = await res.json();
|
|
expect(body).toHaveProperty("backups");
|
|
expect(Array.isArray(body.backups)).toBeTruthy();
|
|
});
|
|
});
|