Follow the master in lanthan

This commit is contained in:
Shin'ya Ueoka 2019-04-13 09:38:59 +09:00
parent dbbd6d704e
commit 9fe09eba97
6 changed files with 8 additions and 8 deletions

View file

@ -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);

View file

@ -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;
});

View file

@ -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;
});

View file

@ -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;
});

View file

@ -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);

View file

@ -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]