aboutsummaryrefslogtreecommitdiff
path: root/e2e/lib/JSONOptionPage.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-05-02 17:25:56 +0900
committerGitHub <noreply@github.com>2020-05-02 17:25:56 +0900
commit5df0537bcf65a341e79852b1b30379c73318529c (patch)
treeaee5efe52412855f620cb514a13a2c14373f27b7 /e2e/lib/JSONOptionPage.ts
parent685f2b7b69218b06b5bb676069e35f79c5048c9b (diff)
parent75abd90ecb8201ad845b266f96220d8adfe19b2d (diff)
Merge pull request #749 from ueokande/qa-0.28
QA 0.28
Diffstat (limited to 'e2e/lib/JSONOptionPage.ts')
-rw-r--r--e2e/lib/JSONOptionPage.ts20
1 files changed, 13 insertions, 7 deletions
diff --git a/e2e/lib/JSONOptionPage.ts b/e2e/lib/JSONOptionPage.ts
index d6ed7ee..1c2db5b 100644
--- a/e2e/lib/JSONOptionPage.ts
+++ b/e2e/lib/JSONOptionPage.ts
@@ -1,5 +1,5 @@
-import { Lanthan } from 'lanthan';
-import { WebDriver, By } from 'selenium-webdriver';
+import { Lanthan } from "lanthan";
+import { WebDriver, By } from "selenium-webdriver";
export default class JSONOptionPage {
private webdriver: WebDriver;
@@ -9,14 +9,20 @@ export default class JSONOptionPage {
}
async updateSettings(value: string): Promise<void> {
- const textarea = await this.webdriver.findElement(By.css('textarea'));
- await this.webdriver.executeScript(`document.querySelector('textarea').value = '${value}'`)
- await textarea.sendKeys(' ');
- await this.webdriver.executeScript(() => document.querySelector('textarea')!!.blur());
+ const textarea = await this.webdriver.findElement(By.css("textarea"));
+ await this.webdriver.executeScript(
+ `document.querySelector('textarea').value = '${value}'`
+ );
+ await textarea.sendKeys(" ");
+ await this.webdriver.executeScript(() =>
+ document.querySelector("textarea")!!.blur()
+ );
}
async getErrorMessage(): Promise<string> {
- const error = await this.webdriver.findElement(By.css('.settings-ui-input-error'));
+ const error = await this.webdriver.findElement(
+ By.css(".settings-ui-input-error")
+ );
return error.getText();
}
}