Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

modules_display_spec.js 850B

123456789101112131415161718192021222324
  1. const helpers = require("./global-setup");
  2. describe("Display of modules", function () {
  3. beforeAll(function (done) {
  4. helpers.startApplication("tests/configs/modules/display.js");
  5. helpers.getDocument(done);
  6. });
  7. afterAll(function () {
  8. helpers.stopApplication();
  9. });
  10. it("should show the test header", function () {
  11. const elem = document.querySelector("#module_0_helloworld .module-header");
  12. expect(elem).not.toBe(null);
  13. // textContent gibt hier lowercase zurück, das uppercase wird durch css realisiert, was daher nicht in textContent landet
  14. expect(elem.textContent).toBe("test_header");
  15. });
  16. it("should show no header if no header text is specified", function () {
  17. const elem = document.querySelector("#module_1_helloworld .module-header");
  18. expect(elem).not.toBe(null);
  19. expect(elem.textContent).toBe("undefined");
  20. });
  21. });