fix e2e tests not failing on errors, disable recurring-event-tests of calendar

This commit is contained in:
Karsten Hassel
2022-09-20 23:43:06 +02:00
parent e917f40542
commit fb96cc3c72
14 changed files with 412 additions and 333 deletions

View File

@@ -1,32 +1,34 @@
const helpers = require("../global-setup");
describe("Test helloworld module", function () {
afterAll(async function () {
describe("Test helloworld module", () => {
afterAll(async () => {
await helpers.stopApplication();
});
describe("helloworld set config text", function () {
beforeAll(function (done) {
describe("helloworld set config text", () => {
beforeAll((done) => {
helpers.startApplication("tests/configs/modules/helloworld/helloworld.js");
helpers.getDocument(done);
});
it("Test message helloworld module", function () {
it("Test message helloworld module", (done) => {
helpers.waitForElement(".helloworld").then((elem) => {
done();
expect(elem).not.toBe(null);
expect(elem.textContent).toContain("Test HelloWorld Module");
});
});
});
describe("helloworld default config text", function () {
beforeAll(function (done) {
describe("helloworld default config text", () => {
beforeAll((done) => {
helpers.startApplication("tests/configs/modules/helloworld/helloworld_default.js");
helpers.getDocument(done);
});
it("Test message helloworld module", function () {
it("Test message helloworld module", (done) => {
helpers.waitForElement(".helloworld").then((elem) => {
done();
expect(elem).not.toBe(null);
expect(elem.textContent).toContain("Hello World!");
});