From f4aa393ba4216bac48bd34181700e0d545590ead Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Mon, 4 May 2020 17:23:06 +0900 Subject: Add test cases for colorscheme --- e2e/lib/Console.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'e2e/lib/Console.ts') diff --git a/e2e/lib/Console.ts b/e2e/lib/Console.ts index 68c0e10..0bae2f7 100644 --- a/e2e/lib/Console.ts +++ b/e2e/lib/Console.ts @@ -76,6 +76,12 @@ export class Console { }); } + async getTheme(): Promise { + const wrapper = await this.webdriver.findElement(By.css("div[data-theme]")); + const theme = await wrapper.getAttribute("data-theme"); + return theme; + } + async close(): Promise { const input = await this.webdriver.findElement(By.css("input")); await input.sendKeys(Key.ESCAPE); -- cgit v1.2.3