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,24 +1,26 @@
const helpers = require("./global-setup");
describe("Display of modules", function () {
describe("Display of modules", () => {
beforeAll(function (done) {
helpers.startApplication("tests/configs/modules/display.js");
helpers.getDocument(done);
});
afterAll(async function () {
afterAll(async () => {
await helpers.stopApplication();
});
it("should show the test header", function () {
it("should show the test header", (done) => {
helpers.waitForElement("#module_0_helloworld .module-header").then((elem) => {
done();
expect(elem).not.toBe(null);
// textContent gibt hier lowercase zurück, das uppercase wird durch css realisiert, was daher nicht in textContent landet
expect(elem.textContent).toBe("test_header");
});
});
it("should show no header if no header text is specified", function () {
it("should show no header if no header text is specified", (done) => {
helpers.waitForElement("#module_1_helloworld .module-header").then((elem) => {
done();
expect(elem).not.toBe(null);
expect(elem.textContent).toBe("undefined");
});