/** * Tests for App. */ /// import { $, browser, by } from "protractor"; describe("App", () => { it("the title is set", (done) => { const uniteThemeJson = require("../../../assetsSrc/theme/unite-theme.json"); browser.uniteLoadAndWaitForPage("/") .then(() => { browser.getTitle() .then((title) => { expect(title).toEqual(uniteThemeJson.title); done(); }); }); }); it("the child text is set", (done) => { browser.uniteLoadAndWaitForPage("/") .then(() => { $(".child").getText() .then((rootContent) => { expect(rootContent).toEqual("Hello UniteJS World!"); done(); }); }); }); it("the font size is set", (done) => { browser.uniteLoadAndWaitForPage("/") .then(() => { $(".child").getCssValue("font-size") .then((fontSize) => { expect(fontSize).toEqual("20px"); done(); }); }); }); }); // Generated by UniteJS