first webextension test
This commit is contained in:
parent
bb5b6d367c
commit
f6f64297aa
10 changed files with 149 additions and 0 deletions
19
e2e/contents/scroll.test.js
Normal file
19
e2e/contents/scroll.test.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
import { expect } from "chai";
|
||||
import * as windows from "../ambassador/src/client/windows";
|
||||
|
||||
describe("scroll test", () => {
|
||||
let targetWindow;
|
||||
before(() => {
|
||||
return windows.create().then((win) => {
|
||||
targetWindow = win;
|
||||
});
|
||||
});
|
||||
|
||||
after(() => {
|
||||
return windows.remove(targetWindow.id);
|
||||
});
|
||||
|
||||
it('runs test', () => {
|
||||
expect(targetWindow.id).be.a('number');
|
||||
});
|
||||
});
|
Reference in a new issue