This commit is contained in:
kandrusyak
2023-09-05 01:35:21 +03:00
parent dc65af6c83
commit 4915cf2506
5 changed files with 9111 additions and 61 deletions

25
test/specs/test.e2e.js Normal file
View 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");
});
});