From 9fe09eba97e962b96088f2b79a8364d51972b58a Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 13 Apr 2019 09:38:59 +0900 Subject: Follow the master in lanthan --- e2e/console.test.js | 4 ++-- e2e/mark.test.js | 2 +- e2e/navigate.test.js | 4 ++-- e2e/scroll.test.js | 2 +- e2e/tab.test.js | 2 +- e2e/zoom.test.js | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/e2e/console.test.js b/e2e/console.test.js index a7c6c63..6f6341f 100644 --- a/e2e/console.test.js +++ b/e2e/console.test.js @@ -20,7 +20,7 @@ const newApp = () => { }; -describe("zoom test", () => { +describe("console test", () => { const port = 12321; let http; let firefox; @@ -31,7 +31,7 @@ describe("zoom test", () => { before(async() => { firefox = await lanthan.firefox(); - await firefox.session.installAddon(path.join(__dirname, '..')); + await firefox.session.installAddonFromPath(path.join(__dirname, '..')); session = firefox.session; browser = firefox.browser; http = newApp().listen(port); diff --git a/e2e/mark.test.js b/e2e/mark.test.js index 8f350b7..8716c1e 100644 --- a/e2e/mark.test.js +++ b/e2e/mark.test.js @@ -29,7 +29,7 @@ describe("mark test", () => { 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; }); diff --git a/e2e/navigate.test.js b/e2e/navigate.test.js index 5c4e2d4..62be469 100644 --- a/e2e/navigate.test.js +++ b/e2e/navigate.test.js @@ -43,7 +43,7 @@ const newApp = () => { return app; }; -describe("zoom test", () => { +describe("navigate test", () => { const port = 12321; let http; @@ -59,7 +59,7 @@ describe("zoom test", () => { 'browser.startup.homepage': `http://127.0.0.1:${port}#home`, } }); - await firefox.session.installAddon(path.join(__dirname, '..')); + await firefox.session.installAddonFromPath(path.join(__dirname, '..')); session = firefox.session; browser = firefox.browser; }); diff --git a/e2e/scroll.test.js b/e2e/scroll.test.js index 32b0012..0ce3ec6 100644 --- a/e2e/scroll.test.js +++ b/e2e/scroll.test.js @@ -28,7 +28,7 @@ describe("scroll test", () => { 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; }); diff --git a/e2e/tab.test.js b/e2e/tab.test.js index 39338aa..16d61ae 100644 --- a/e2e/tab.test.js +++ b/e2e/tab.test.js @@ -28,7 +28,7 @@ describe("tab test", () => { before(async() => { firefox = await lanthan.firefox(); - await firefox.session.installAddon(path.join(__dirname, '..')); + await firefox.session.installAddonFromPath(path.join(__dirname, '..')); session = firefox.session; browser = firefox.browser; http = newApp().listen(port); diff --git a/e2e/zoom.test.js b/e2e/zoom.test.js index e8e586e..186f67f 100644 --- a/e2e/zoom.test.js +++ b/e2e/zoom.test.js @@ -16,7 +16,7 @@ describe("zoom test", () => { before(async() => { 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] -- cgit v1.2.3