/
githubmirror
/
marktext
Обзор
Документация
Войти
/
githubmirror
/
marktext
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v0.16.1
test/e2e/utils.js
32 строки
695 B
Felix Häusler
Add XSS e2e test and fix error handler issue (#700)
27 фев 2019, 17:16
27 фев 2019, 17:16
7aa723b
Код
Авторство
О чём код?
import electron from 'electron' import { Application } from 'spectron' export default { afterEach () { this.timeout(20000) if (this.app && this.app.isRunning()) { return this.app.stop() } }, beforeEach () { this.timeout(20000) this.app = new Application({ path: electron, args: ['dist/electron/main.js'], startTimeout: 20000, waitTimeout: 20000 }) return this.app.start() }, beforeXss () { this.timeout(20000) this.app = new Application({ path: electron, args: ['dist/electron/main.js', 'test/e2e/data/xss.md'], startTimeout: 20000, waitTimeout: 20000 }) return this.app.start() } }