mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-01 01:25:45 -04:00
39 lines
809 B
JavaScript
39 lines
809 B
JavaScript
const fs = require("fs");
|
|
|
|
beforeAll(() => {
|
|
fs.rmdirSync("./data/test", {
|
|
recursive: true,
|
|
});
|
|
});
|
|
|
|
afterAll(() => {
|
|
|
|
});
|
|
|
|
describe("Very Simple Test", () => {
|
|
const title = "Uptime Kuma";
|
|
|
|
beforeAll(async () => {
|
|
await page.goto("http://127.0.0.1:3002");
|
|
});
|
|
|
|
it(`should be titled "${title}"`, async () => {
|
|
await expect(page.title()).resolves.toMatch(title);
|
|
});
|
|
|
|
it("Create an admin account", async () => {
|
|
await page.evaluate(() => document.);
|
|
});
|
|
});
|
|
|
|
describe("Status Page", () => {
|
|
const title = "Uptime Kuma";
|
|
beforeAll(async () => {
|
|
await page.goto("http://127.0.0.1:3002/status");
|
|
});
|
|
it(`should be titled "${title}"`, async () => {
|
|
await expect(page.title()).resolves.toMatch(title);
|
|
});
|
|
});
|
|
|