26 lines
662 B
JavaScript
26 lines
662 B
JavaScript
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");
|
|
});
|
|
});
|