add e2e
This commit is contained in:
25
test/specs/test.e2e.js
Normal file
25
test/specs/test.e2e.js
Normal file
@@ -0,0 +1,25 @@
|
||||
const { expect } = require("@wdio/globals");
|
||||
|
||||
describe("Smoke test", function () {
|
||||
it("should display login page", async function () {
|
||||
await browser.url("/");
|
||||
|
||||
await $("#app").waitForDisplayed();
|
||||
expect(await browser.getUrl()).toMatch("/#/login");
|
||||
});
|
||||
|
||||
it("should display login page", async function () {
|
||||
await browser.url("/");
|
||||
|
||||
await $("#app").waitForDisplayed();
|
||||
|
||||
await $("input[type=text]").setValue("admin");
|
||||
await $("input[type=password]").setValue("123");
|
||||
|
||||
await $("button[type=button]").click();
|
||||
|
||||
await $("img[alt=Logo]").waitForDisplayed();
|
||||
|
||||
expect(await browser.getUrl()).toMatch("/#/calendar");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user