Merge pull request #2561 from Akin909/bugfix/fix-hero-screenshot-test

Bugfix/fix hero screenshot test
This commit is contained in:
Manuel Hornung 2018-09-10 09:13:07 +02:00 committed by GitHub
commit 5c5beef05c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 10 deletions

View File

@ -8,19 +8,10 @@ import * as path from "path"
import { remote } from "electron"
import { getCompletionElement } from "../ci/Common"
import { getDistPath, getRootPath } from "./DemoCommon"
// tslint:disable:no-console
const getCompletionElement = () => {
const elements = document.body.getElementsByClassName("autocompletion")
if (!elements || !elements.length) {
return null
} else {
return elements[0]
}
}
const getNotificationText = () => {
const elements = document.body.getElementsByClassName("notification-description")