mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 10:19:12 +08:00
setup jest-puppeteer
This commit is contained in:
21
test/test.spec.js
Normal file
21
test/test.spec.js
Normal file
@@ -0,0 +1,21 @@
|
||||
beforeAll(() => {
|
||||
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
return console.log("Cleanup");
|
||||
});
|
||||
|
||||
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);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user