diff options
Diffstat (limited to 'e2e/lib/Console.ts')
-rw-r--r-- | e2e/lib/Console.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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<string> { + const wrapper = await this.webdriver.findElement(By.css("div[data-theme]")); + const theme = await wrapper.getAttribute("data-theme"); + return theme; + } + async close(): Promise<void> { const input = await this.webdriver.findElement(By.css("input")); await input.sendKeys(Key.ESCAPE); |