mirror of
				https://github.com/MichMich/MagicMirror.git
				synced 2025-10-31 18:54:51 +00:00 
			
		
		
		
	fix e2e tests not failing on errors, disable recurring-event-tests of calendar
This commit is contained in:
		| @@ -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"); | ||||
| 		}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user