diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-04-14 12:35:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-14 12:35:37 +0000 |
commit | 640ac38fb6d486159057d1bc8d78d1792f1d1784 (patch) | |
tree | f9b4f6da33a445856f8dc22487588ba6b69323cd /e2e/zoom.test.js | |
parent | 859d0372b5bb7297a0b8ed37a559d88a425f3799 (diff) | |
parent | 908973a0a246474342246c2bad09a6db809e9084 (diff) |
Merge pull request #564 from ueokande/lanthan-integration-test
Use lanthan to do E2E testing
Diffstat (limited to 'e2e/zoom.test.js')
-rw-r--r-- | e2e/zoom.test.js | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/e2e/zoom.test.js b/e2e/zoom.test.js index bc89628..186f67f 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,10 +15,8 @@ describe("zoom test", () => { let body; before(async() => { - http = newApp().listen(port); - firefox = await lanthan.firefox(); - await firefox.session.installAddon(path.join(__dirname, '..')); + await firefox.session.installAddonFromPath(path.join(__dirname, '..')); session = firefox.session; browser = firefox.browser; tab = (await browser.tabs.query({}))[0] @@ -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'); }); |