aboutsummaryrefslogtreecommitdiff
path: root/e2e
diff options
context:
space:
mode:
authorShin'ya UEOKA <ueokande@i-beam.org>2019-09-25 13:32:12 +0000
committerShin'ya UEOKA <ueokande@i-beam.org>2019-09-25 13:32:12 +0000
commitfff371ae6e7bb78c4c53adfe08751dc3a0bd7c10 (patch)
treec2de088ce8bb707ed5fd0767101f66e63286039a /e2e
parent8e5e6bfcdd45f9e2cd572e02eb4fad527a0094df (diff)
Scroll option page for Firefox 60
Diffstat (limited to 'e2e')
-rw-r--r--e2e/lib/OptionPage.ts5
-rw-r--r--e2e/options_form.test.ts2
2 files changed, 6 insertions, 1 deletions
diff --git a/e2e/lib/OptionPage.ts b/e2e/lib/OptionPage.ts
index 6b66f41..c183b06 100644
--- a/e2e/lib/OptionPage.ts
+++ b/e2e/lib/OptionPage.ts
@@ -32,5 +32,8 @@ export default class OptionPage {
// TODO validate current page
return new JSONOptionPage(this.lanthan);
}
-}
+ scrollTo(x: number, y: number): Promise<void> {
+ return this.webdriver.executeScript(`window.scrollTo(${x}, ${y})`);
+ }
+}
diff --git a/e2e/options_form.test.ts b/e2e/options_form.test.ts
index bed8490..41d5f55 100644
--- a/e2e/options_form.test.ts
+++ b/e2e/options_form.test.ts
@@ -38,6 +38,8 @@ describe("options form page", () => {
it('add blacklist', async () => {
let page = await OptionPage.open(lanthan);
let forms = await page.switchToForm();
+ // Scroll is required to click a button on Firefox 60
+ await page.scrollTo(0, 1000);
// assert default
let settings = (await browser.storage.local.get('settings')).settings;