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_position_spec.js 808B

12345678910111213141516171819202122
  1. const helpers = require("./global-setup");
  2. describe("Position of modules", function () {
  3. beforeAll(function (done) {
  4. helpers.startApplication("tests/configs/modules/positions.js");
  5. helpers.getDocument(done, 1000);
  6. });
  7. afterAll(function () {
  8. helpers.stopApplication();
  9. });
  10. const positions = ["top_bar", "top_left", "top_center", "top_right", "upper_third", "middle_center", "lower_third", "bottom_left", "bottom_center", "bottom_right", "bottom_bar", "fullscreen_above", "fullscreen_below"];
  11. for (const position of positions) {
  12. const className = position.replace("_", ".");
  13. it("should show text in " + position, function () {
  14. const elem = document.querySelector("." + className);
  15. expect(elem).not.toBe(null);
  16. expect(elem.textContent).toContain("Text in " + position);
  17. });
  18. }
  19. });