You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
uptime-kuma/test/test.spec.js

39 lines
809 B

3 years ago
const fs = require("fs");
3 years ago
beforeAll(() => {
fs.rmdirSync("./data/test", {
recursive: true,
});
});
afterAll(() => {
3 years ago
});
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);
});
3 years ago
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);
});
});