diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-04-07 08:35:25 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-04-07 08:35:25 +0900 |
commit | 853034b43df029033433dfa5993bf86fcfab4b6e (patch) | |
tree | bac2af972698f9c369627e1311ecb599c6d98675 /e2e/zoom.test.js | |
parent | 4f63499aa9e687ad21a683812b989a3497ee95bc (diff) |
Add console e2e test
Diffstat (limited to 'e2e/zoom.test.js')
-rw-r--r-- | e2e/zoom.test.js | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/e2e/zoom.test.js b/e2e/zoom.test.js index bc89628..e8e586e 100644 --- a/e2e/zoom.test.js +++ b/e2e/zoom.test.js @@ -6,20 +6,8 @@ const eventually = require('./eventually'); const Key = lanthan.Key; -const newApp = () => { - let app = express(); - app.get('/', (req, res) => { - res.send(`<!DOCTYPEhtml> -<html lang="en"> -</html">`); - }); - return app; -}; - describe("zoom test", () => { - const port = 12321; - let http; let firefox; let session; let browser; @@ -27,8 +15,6 @@ describe("zoom test", () => { let body; before(async() => { - http = newApp().listen(port); - firefox = await lanthan.firefox(); await firefox.session.installAddon(path.join(__dirname, '..')); session = firefox.session; @@ -40,11 +26,10 @@ describe("zoom test", () => { if (firefox) { await firefox.close(); } - http.close(); }); beforeEach(async() => { - await session.navigateTo(`http://127.0.0.1:${port}`); + await session.navigateTo('about:blank'); body = await session.findElementByCSS('body'); }); |