Follow the master in lanthan

jh-changes
Shin'ya Ueoka 6 years ago
parent dbbd6d704e
commit 9fe09eba97
  1. 4
      e2e/console.test.js
  2. 2
      e2e/mark.test.js
  3. 4
      e2e/navigate.test.js
  4. 2
      e2e/scroll.test.js
  5. 2
      e2e/tab.test.js
  6. 2
      e2e/zoom.test.js

@ -20,7 +20,7 @@ const newApp = () => {
}; };
describe("zoom test", () => { describe("console test", () => {
const port = 12321; const port = 12321;
let http; let http;
let firefox; let firefox;
@ -31,7 +31,7 @@ describe("zoom test", () => {
before(async() => { before(async() => {
firefox = await lanthan.firefox(); firefox = await lanthan.firefox();
await firefox.session.installAddon(path.join(__dirname, '..')); await firefox.session.installAddonFromPath(path.join(__dirname, '..'));
session = firefox.session; session = firefox.session;
browser = firefox.browser; browser = firefox.browser;
http = newApp().listen(port); http = newApp().listen(port);

@ -29,7 +29,7 @@ describe("mark test", () => {
http = newApp().listen(port); http = newApp().listen(port);
firefox = await lanthan.firefox(); firefox = await lanthan.firefox();
await firefox.session.installAddon(path.join(__dirname, '..')); await firefox.session.installAddonFromPath(path.join(__dirname, '..'));
session = firefox.session; session = firefox.session;
browser = firefox.browser; browser = firefox.browser;
}); });

@ -43,7 +43,7 @@ const newApp = () => {
return app; return app;
}; };
describe("zoom test", () => { describe("navigate test", () => {
const port = 12321; const port = 12321;
let http; let http;
@ -59,7 +59,7 @@ describe("zoom test", () => {
'browser.startup.homepage': `http://127.0.0.1:${port}#home`, '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; session = firefox.session;
browser = firefox.browser; browser = firefox.browser;
}); });

@ -28,7 +28,7 @@ describe("scroll test", () => {
http = newApp().listen(port); http = newApp().listen(port);
firefox = await lanthan.firefox(); firefox = await lanthan.firefox();
await firefox.session.installAddon(path.join(__dirname, '..')); await firefox.session.installAddonFromPath(path.join(__dirname, '..'));
session = firefox.session; session = firefox.session;
}); });

@ -28,7 +28,7 @@ describe("tab test", () => {
before(async() => { before(async() => {
firefox = await lanthan.firefox(); firefox = await lanthan.firefox();
await firefox.session.installAddon(path.join(__dirname, '..')); await firefox.session.installAddonFromPath(path.join(__dirname, '..'));
session = firefox.session; session = firefox.session;
browser = firefox.browser; browser = firefox.browser;
http = newApp().listen(port); http = newApp().listen(port);

@ -16,7 +16,7 @@ describe("zoom test", () => {
before(async() => { before(async() => {
firefox = await lanthan.firefox(); firefox = await lanthan.firefox();
await firefox.session.installAddon(path.join(__dirname, '..')); await firefox.session.installAddonFromPath(path.join(__dirname, '..'));
session = firefox.session; session = firefox.session;
browser = firefox.browser; browser = firefox.browser;
tab = (await browser.tabs.query({}))[0] tab = (await browser.tabs.query({}))[0]