mirror of
https://github.com/marktext/marktext.git
synced 2025-05-01 22:39:29 +08:00

* 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.
23 lines
558 B
JavaScript
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()
|
|
})
|
|
})
|