marktext/test/e2e/specs/Launch.spec.js
Felix Häusler 5f08b381e0 Adjust titlebar title when using native window (#1137)
* Adjust titlebar title when using native window

* Fix untitled tab e2e test
2019-07-04 10:52:51 +08:00

18 lines
503 B
JavaScript

import utils from '../utils'
describe('Launch', function () {
beforeEach(utils.beforeEach)
afterEach(utils.afterEach)
it('shows the proper application title', function () {
return this.app.client.getTitle()
.then(title => {
const result = /^Mark Text|Untitled-1 - Mark Text$/.test(title)
if (!result) {
console.error(`AssertionError: expected '${title}' to equal 'Mark Text' or 'Untitled-1'`)
expect(false).to.equal(true)
}
})
})
})