mirror of
https://github.com/heyman/heynote.git
synced 2024-11-22 07:54:11 +01:00
Fix tests
This commit is contained in:
parent
68c741ea46
commit
95c20975dd
@ -11,7 +11,7 @@ test.beforeEach(async ({ page }) => {
|
|||||||
|
|
||||||
|
|
||||||
test("test restore cursor position", async ({ page, browserName }) => {
|
test("test restore cursor position", async ({ page, browserName }) => {
|
||||||
await heynotePage.setContent(`{"formatVersion":"1.0", "cursors":{"ranges":[{"anchor":13,"head":13}],"main":0}}
|
await heynotePage.setContent(`{"formatVersion":"1.0.0", "cursors":{"ranges":[{"anchor":13,"head":13}],"main":0}}
|
||||||
∞∞∞text
|
∞∞∞text
|
||||||
Textblock`)
|
Textblock`)
|
||||||
await page.locator("body").press((heynotePage.isMac ? "Meta" : "Control") + "+Alt+Enter")
|
await page.locator("body").press((heynotePage.isMac ? "Meta" : "Control") + "+Alt+Enter")
|
||||||
@ -24,7 +24,7 @@ block`)
|
|||||||
|
|
||||||
|
|
||||||
test("test save cursor positions", async ({ page, browserName }) => {
|
test("test save cursor positions", async ({ page, browserName }) => {
|
||||||
await heynotePage.setContent(`{"formatVersion":"1.0", "cursors":{"ranges":[{"anchor":9,"head":9}],"main":0}}
|
await heynotePage.setContent(`{"formatVersion":"1.0.0", "cursors":{"ranges":[{"anchor":9,"head":9}],"main":0}}
|
||||||
∞∞∞text
|
∞∞∞text
|
||||||
this
|
this
|
||||||
is
|
is
|
||||||
@ -48,7 +48,7 @@ block`)
|
|||||||
})
|
})
|
||||||
|
|
||||||
test("unknown note metadata keys is kept", async ({ page, browserName }) => {
|
test("unknown note metadata keys is kept", async ({ page, browserName }) => {
|
||||||
await heynotePage.setContent(`{"yoda":[123], "formatVersion":"1.0", "cursors":{"ranges":[{"anchor":15,"head":15}],"main":0}}
|
await heynotePage.setContent(`{"yoda":[123], "formatVersion":"1.0.0", "cursors":{"ranges":[{"anchor":15,"head":15}],"main":0}}
|
||||||
∞∞∞text
|
∞∞∞text
|
||||||
block 1`)
|
block 1`)
|
||||||
await page.locator("body").pressSequentially("hello")
|
await page.locator("body").pressSequentially("hello")
|
||||||
|
Loading…
Reference in New Issue
Block a user