marktext/test/e2e/launch.spec.js
bolshoytoster 2ed5a85012
Removed the space in 'Mark Text' (#2763) (#2782)
* Removed the space in 'Mark Text' (#2763)

Literally just replaced all occurances of 'Mark Text' with 'MarkText' using sed.

This is directly related to #2763.

* Revert changes to .github directory

Reverted changelog etc.

* Added `cs` alias for `csharp` in code blocks (Fixes #2760)

* Added error handler in the renderer process (should fix #2758)

The `src/muya/lib/contentState/clickCtrl.js` file will now return if
`document.querySelector` fails to find an element.
2021-12-25 21:05:58 +08:00

23 lines
558 B
JavaScript

const { expect, test } = require('@playwright/test')
const { launchElectron } = require('./helpers')
test.describe('Check Launch MarkText', async () => {
let app = null
let page = null
test.beforeAll(async () => {
const { app: electronApp, page: firstPage } = await launchElectron()
app = electronApp
page = firstPage
})
test.afterAll(async () => {
await app.close()
})
test('Empty MarkText', async () => {
const title = await page.title()
expect(/^MarkText|Untitled-1 - MarkText$/.test(title)).toBeTruthy()
})
})