mirror of
https://github.com/heyman/heynote.git
synced 2025-08-14 08:48:36 +02:00
Add tests for creating new Note buffers
This commit is contained in:
@ -56,4 +56,16 @@ export class HeynotePage {
|
||||
async getStoredSettings() {
|
||||
return await this.page.evaluate(() => JSON.parse(window.localStorage.getItem("settings")))
|
||||
}
|
||||
|
||||
async getStoredBufferList() {
|
||||
return await this.page.evaluate(() => window.heynote.buffer.getList())
|
||||
}
|
||||
|
||||
async getStoredBuffer(path) {
|
||||
return await this.page.evaluate((path) => window.heynote.buffer.load(path), path)
|
||||
}
|
||||
|
||||
agnosticKey(key) {
|
||||
return key.replace("Mod", this.isMac ? "Meta" : "Control")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user